Allora ragazzi,
vorrei installare grub sulla penna usb per far partire ubuntu direttamente da li. Ecco quello che ho fatto. Prima di tutto ho installato ubuntu su penna usb come se fosse stato un disco rigido normale. Al riavvio del pc pero' mi sono accorto che grub non era stato installato sulla penna,ma sull' mbr del mio disco rigido primario,anche se il resto del sistema operativo risiede regolarmente sulla penna. Ecco il contenuto del file /boot/grub/menu.lst ivi presente : (debian e windows sono i sistemi operativi che ho sul primo disco rigido,in dual boot)
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 14a5cbb7-4a02-4c9c-aeb7-ce117b7748ba
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=14a5cbb7-4a02-4c9c-aeb7-ce117b7748ba ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 14a5cbb7-4a02-4c9c-aeb7-ce117b7748ba
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=14a5cbb7-4a02-4c9c-aeb7-ce117b7748ba ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 14a5cbb7-4a02-4c9c-aeb7-ce117b7748ba
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title Debian GNU/Linux, kernel 2.6.26-1-686 (on /dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/sda3 ro quiet
initrd /boot/initrd.img-2.6.26-1-686
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title Debian GNU/Linux, kernel 2.6.26-1-686 (single-user mode) (on /dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.26-1-686
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title Debian GNU/Linux, kernel 2.6.26-1-486 (on /dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-486 root=/dev/sda3 ro quiet
initrd /boot/initrd.img-2.6.26-1-486
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title Debian GNU/Linux, kernel 2.6.26-1-486 (single-user mode) (on /dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-486 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.26-1-486
savedefault
boot
dal momento che grub si era installato sul primo disco,ho dovuto ripristinarlo,perche' windows e debian non partivano piu'. Adesso questi sistemi partono,ma ubuntu da penna usb no. Percio' vorrei installare grub li. Allora sono andato sotto debian e dal terminale ho impartito i seguenti comandi :
marietto2009:/home/marietto# fdisk -l
Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f8000b1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3845 30884931 7 HPFS/NTFS
/dev/sda2 3846 4331 3903795 82 Linux swap / Solaris
/dev/sda3 4332 9730 43367467+ 83 Linux
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30402 244198584 4 FAT16 <32M
Disk /dev/sdb1: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sdb1p1 * 1 30402 244198584 4 FAT16 <32M
Disk /dev/sdc: 16.0 GB, 16028794368 bytes
255 heads, 63 sectors/track, 1948 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000f1083
Device Boot Start End Blocks Id System
/dev/sdc1 1 1948 15647278+ 83 Linux
marietto2009:/home/marietto# grub
grub>
root (hd2,0)
Filesystem type is ext2fs, partition type 0x83
grub>
setup (hd2,0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd2,0)"... failed (this is not fatal
)
Running "embed /boot/grub/e2fs_stage1_5 (hd2,0)"... failed (this is not fatal
)
Running "install /boot/grub/stage1 (hd2,0) /boot/grub/stage2 p /boot/grub/men
u.lst "... succeeded
Done.
ma non funziona,ubuntu continua a non voler partire.