adam98
October 28th, 2008, 04:23 PM
Hello all,
I have been experimenting with ubuntu in a vm and i have decided to install it in a external hard drive. So i have done the following:
*partitioned the hard drive and created a ext3 partition ( sdb5 ) and a swap one (sdb6).
* installed ubuntu in the ext3 partition.
* intalled grub in the external disk ( sdb) so i can boot from the internal disk when the usb cable of the disk is disconnected.
* configured BIOS to boot first from the usb drive and then from the internal hard drive ( /dev/sda1 which contains a windows xp OS).
Now when i boot with the external disk connected grub runs correctly but when i select the ubuntu os to run it displays an error message "error 22 cannot find the partition" ( or something like that :) )
Now i understand that this is a problem in the /dev/.../menu/lst of grub. But i cannot do the corrections myself, even though i have read some relevant post in the forum :( . The relevant entries in the file are the following:
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=212a8d0f-df92-4ced-bd$
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=212a8d0f-df92-4ced-bd$
title Ubuntu 8.04, memtest86+
root (hd1,4)
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 NT/2000/XP (loader)
root (hd0,0)
savedefault
chainloader +1
I know that i have to change the root values in the configuration file but i don't know how.
p.s. I also read in the forum that one solution is to disable the internal hard disk from the BIOS and then install ubuntu but this option is not available to my BIOS and moreover i would like to correct the configuration file.
I have been experimenting with ubuntu in a vm and i have decided to install it in a external hard drive. So i have done the following:
*partitioned the hard drive and created a ext3 partition ( sdb5 ) and a swap one (sdb6).
* installed ubuntu in the ext3 partition.
* intalled grub in the external disk ( sdb) so i can boot from the internal disk when the usb cable of the disk is disconnected.
* configured BIOS to boot first from the usb drive and then from the internal hard drive ( /dev/sda1 which contains a windows xp OS).
Now when i boot with the external disk connected grub runs correctly but when i select the ubuntu os to run it displays an error message "error 22 cannot find the partition" ( or something like that :) )
Now i understand that this is a problem in the /dev/.../menu/lst of grub. But i cannot do the corrections myself, even though i have read some relevant post in the forum :( . The relevant entries in the file are the following:
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=212a8d0f-df92-4ced-bd$
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=212a8d0f-df92-4ced-bd$
title Ubuntu 8.04, memtest86+
root (hd1,4)
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 NT/2000/XP (loader)
root (hd0,0)
savedefault
chainloader +1
I know that i have to change the root values in the configuration file but i don't know how.
p.s. I also read in the forum that one solution is to disable the internal hard disk from the BIOS and then install ubuntu but this option is not available to my BIOS and moreover i would like to correct the configuration file.