I have a computer that dual boots Windows 7 and Ubuntu through GRUB. Recently Windows failed to boot, and after trying various things to fix it, now when I choose Windows 7 in the GRUB menu, I get the message
error: no such device: 9A7AC1417AC11B41
error: hd2 cannot get C/H/S values
Press any key to continue...
and when I press a key it brings me back to the GRUB menu. The message appears in the same style (colors and font) as the GRUB loader.
I have noticed that windows uses two partitions, one called RECOVERY
(16 GB) and one called OS
(517 GB) and that the GRUB loader points to RECOVERY
but Windows is on the OS
partition. I can mount both partitions in Linux and the OS
disk seems to have the right files. I used the Windows 7 recovery disk and the automated repair thing no longer finds any errors.
How can I fix this an make Windows boot up again?
fdisk -l
outputs
Disk /dev/mapper/isw_bdhfaghdfb_dell: 640.1 GB, 640141230080 bytes
255 heads, 63 sectors/track, 77826 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x2dbec2f5
Device Boot Start End Blocks Id System
/dev/mapper/isw_bdhfaghdfb_dell1 1 5 40131 de Dell Utility
Partition 1 does not start on physical sector boundary.
/dev/mapper/isw_bdhfaghdfb_dell2 * 6 1918 15360000 7 HPFS/NTFS
Partition 2 does not start on physical sector boundary.
/dev/mapper/isw_bdhfaghdfb_dell3 1918 64772 504878877+ 7 HPFS/NTFS
Partition 3 does not start on physical sector boundary.
/dev/mapper/isw_bdhfaghdfb_dell4 64772 77827 104858625 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/mapper/isw_bdhfaghdfb_dell5 77578 77827 2000128 82 Linux swap / Solaris
/dev/mapper/isw_bdhfaghdfb_dell6 64772 67204 19531008 83 Linux
/dev/mapper/isw_bdhfaghdfb_dell7 67204 74498 58593536 83 Linux
/dev/mapper/isw_bdhfaghdfb_dell8 74498 77577 24731648 83 Linux
fdisk -l
and the content of/etc/grub.conf
, both from Ubuntu./etc/grub.conf
does not exist on my computer. Where else can I find it?/boot/grub/grub.cfg
./etc/grub.d
concatenated together. Are you sure that's the right one?