Hi everyone,
Using ubuntu 9.10 64-bit, dual-booting with Windows 7 and it was working perfectly. I updated ubuntu and plugged in an extra HD now grub will not boot Windows 7, grub menu says it is /dev/sdc2 when it is /dev/sdc3, looking for a way to change it so grub thinks Windows is on /dev/sdc3. I know this because /dev/sdc2 is only 100MB in size and is a backup partition that Windows 7 creates to boot in recovery mode.
It was working fine this morning and I have not booted Windows since then. I did update the kernel and I have plugged in another HD since I was last in Windows.
Command outputs of sudo update-grub and sudo fdisk -l outputs are here:
Now this mentions a problem in /boot/grub/device.mapCode:$ sudo update-grub [sudo] password for []: Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-16-generic Found initrd image: /boot/initrd.img-2.6.31-16-generic grub-probe: error: Cannot find a GRUB drive for /dev/sdc5. Check your device.map. grub-probe: error: Cannot find a GRUB drive for /dev/sdc5. Check your device.map. Found linux image: /boot/vmlinuz-2.6.31-15-generic Found initrd image: /boot/initrd.img-2.6.31-15-generic grub-probe: error: Cannot find a GRUB drive for /dev/sdc5. Check your device.map. grub-probe: error: Cannot find a GRUB drive for /dev/sdc5. Check your device.map. Found linux image: /boot/vmlinuz-2.6.31-14-generic Found initrd image: /boot/initrd.img-2.6.31-14-generic grub-probe: error: Cannot find a GRUB drive for /dev/sdc5. Check your device.map. grub-probe: error: Cannot find a GRUB drive for /dev/sdc5. Check your device.map. Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sdc2 grub-probe: error: Cannot find a GRUB drive for /dev/sdc2. Check your device.map. done me@mycomp:~$ sudo fdisk -l Disk /dev/sda: 1500.3 GB, 1500301910016 bytes 255 heads, 63 sectors/track, 182401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xabb35a2f Device Boot Start End Blocks Id System /dev/sda1 1 182402 1465136128 7 HPFS/NTFS Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x41592eb5 Device Boot Start End Blocks Id System /dev/sdb1 1 60801 488384001 42 SFS Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000e0958 Device Boot Start End Blocks Id System /dev/sdc1 1 6748 54203278+ 5 Extended /dev/sdc2 * 6749 6761 102400 7 HPFS/NTFS /dev/sdc3 6761 25884 153600000 7 HPFS/NTFS /dev/sdc4 25884 121601 768854016 7 HPFS/NTFS /dev/sdc5 1 5714 45897642 83 Linux /dev/sdc6 5715 6687 7815591 83 Linux /dev/sdc7 6688 6748 489951 82 Linux swap / Solaris Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes 1 heads, 63 sectors/track, 31008336 cylinders Units = cylinders of 63 * 512 = 32256 bytes Disk identifier: 0x01f21353 Device Boot Start End Blocks Id System /dev/sdd1 * 2 31008256 976760032+ 7 HPFS/NTFS
I removed the file and then ran sudo update-grub again and the output was as follows:
This all looks fine however as you can see it still points to /dev/sdc2, which is not Windows.Code:$ sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-16-generic Found initrd image: /boot/initrd.img-2.6.31-16-generic Found linux image: /boot/vmlinuz-2.6.31-15-generic Found initrd image: /boot/initrd.img-2.6.31-15-generic Found linux image: /boot/vmlinuz-2.6.31-14-generic Found initrd image: /boot/initrd.img-2.6.31-14-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sdc2 done
If anyone can help me I would be very grateful. Thanks.



Adv Reply
Bookmarks