MindBlank
August 15th, 2009, 11:55 AM
Hello everyone!
I installed Ubuntu 9.04 3 days ago on my external hard disk and being a beginner in all things Ubuntu/Linux related i can't seem to fix this problem I'm having.
Like i said, i have Ubuntu on an external hard disk and Windows 7 on the internal hard disk. GRUB works only when the external hard disk is connected. If it's not plugged it the it says that it can't find Stage1.5 and can't boot into Windows. (or Ubuntu of course, but it can't do that because the hard disk is not connected :D)
I've googled and googled for the last few days and found many solutions to this kind of problem but the ones I've tried don't seem to work for me...
I firstly tried to write GRUB to the MBR on hd0 - my internal drive, and did not proceed with this in the end since I was/am afraid not to screw up my Windows MBR.
I decided to use Windows 7's boot loader and NeoGrub. I copied the contents of my menu.lst to NeoGrub's menu.lst but it doesn't work. I get "Error 17 : File not found"
I use "find /boot/grub/stage1" in the NeoGrub prompt and it says the same thing : Error 17 : File not found.
However, if i try the same thing in my "original" GRUB it points to my Linux partition - (hd1,4) which is to be expected. For some reason, it doesn't work with NeoGrub and i can't for the life of me figure out why.
It "sees" my external drive because it responds to "root (hd1,0...6) accordingly but doesn't find /boot/grub/stage1 anywhere.
Anyway, i just want to have the possibility to boot into Windows with the external hard drive disconnected, and the possibility to choose where i want to boot to when i have it connected. Preferably using Windows boot-loader...
Here's my "sudo fdisk -l" output :
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfb2d239e
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3917 31457280 7 HPFS/NTFS
/dev/sda2 3917 17099 105881600 7 HPFS/NTFS
/dev/sda3 17099 38914 175228928 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080
Device Boot Start End Blocks Id System
/dev/sdb2 3305 10315 56307712 7 HPFS/NTFS
/dev/sdb3 10315 19458 73441280 7 HPFS/NTFS
/dev/sdb4 16 3304 26418892+ 5 Extended
/dev/sdb5 16 1260 10000431 83 Linux
/dev/sdb6 1261 1509 2000061 82 Linux swap / Solaris
/dev/sdb7 1510 3304 14418306 83 Linux
And here's my NeoGrub menu.lst which sadly doesn't work...
title Ubuntu 9.04, kernel 2.6.28-14-generic
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro quiet splash
initrd /boot/initrd.img-2.6.28-14-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro single
initrd /boot/initrd.img-2.6.28-14-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/memtest86+.bin
quiet
I installed Ubuntu 9.04 3 days ago on my external hard disk and being a beginner in all things Ubuntu/Linux related i can't seem to fix this problem I'm having.
Like i said, i have Ubuntu on an external hard disk and Windows 7 on the internal hard disk. GRUB works only when the external hard disk is connected. If it's not plugged it the it says that it can't find Stage1.5 and can't boot into Windows. (or Ubuntu of course, but it can't do that because the hard disk is not connected :D)
I've googled and googled for the last few days and found many solutions to this kind of problem but the ones I've tried don't seem to work for me...
I firstly tried to write GRUB to the MBR on hd0 - my internal drive, and did not proceed with this in the end since I was/am afraid not to screw up my Windows MBR.
I decided to use Windows 7's boot loader and NeoGrub. I copied the contents of my menu.lst to NeoGrub's menu.lst but it doesn't work. I get "Error 17 : File not found"
I use "find /boot/grub/stage1" in the NeoGrub prompt and it says the same thing : Error 17 : File not found.
However, if i try the same thing in my "original" GRUB it points to my Linux partition - (hd1,4) which is to be expected. For some reason, it doesn't work with NeoGrub and i can't for the life of me figure out why.
It "sees" my external drive because it responds to "root (hd1,0...6) accordingly but doesn't find /boot/grub/stage1 anywhere.
Anyway, i just want to have the possibility to boot into Windows with the external hard drive disconnected, and the possibility to choose where i want to boot to when i have it connected. Preferably using Windows boot-loader...
Here's my "sudo fdisk -l" output :
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfb2d239e
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3917 31457280 7 HPFS/NTFS
/dev/sda2 3917 17099 105881600 7 HPFS/NTFS
/dev/sda3 17099 38914 175228928 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080
Device Boot Start End Blocks Id System
/dev/sdb2 3305 10315 56307712 7 HPFS/NTFS
/dev/sdb3 10315 19458 73441280 7 HPFS/NTFS
/dev/sdb4 16 3304 26418892+ 5 Extended
/dev/sdb5 16 1260 10000431 83 Linux
/dev/sdb6 1261 1509 2000061 82 Linux swap / Solaris
/dev/sdb7 1510 3304 14418306 83 Linux
And here's my NeoGrub menu.lst which sadly doesn't work...
title Ubuntu 9.04, kernel 2.6.28-14-generic
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro quiet splash
initrd /boot/initrd.img-2.6.28-14-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro single
initrd /boot/initrd.img-2.6.28-14-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a851b3b2-b702-4751-b5f6-8038d0770995 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid a851b3b2-b702-4751-b5f6-8038d0770995
kernel /boot/memtest86+.bin
quiet