A
A
Andrey Raboy2015-08-24 03:48:12
Solid State Drives
Andrey Raboy, 2015-08-24 03:48:12

Why "error hd1 cannot get c/h/s values" on SSD?

It costs HDD and SSD on HDD - Ubuntu 14.04, on SSD Win 7
Both operating systems are loaded normally if you select Boot Menu and boot device.
You need to configure GRUB on the HDD so that you can choose which device to boot from. GRUB itself found everything, but for some reason it doesn't work... when choosing Win 7 on SSD - error hd1 cannot get c/h/s values
​​Script for Ubuntu:

recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  111438e5-a821-44a4-b3a2-e5e65a1408ef
else
  search --no-floppy --fs-uuid --set=root 111438e5-a821-44a4-b3a2-e5e65a1408ef
fi
linux	/boot/vmlinuz-3.19.0-26-generic root=/dev/sda7 ro  quiet splash $vt_handoff
initrd	/boot/initrd.img-3.19.0-26-generic

Scenario for WIn7:
insmod part_msdos
insmod ntfs
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  24A6F9DEA6F9B082
else
  search --no-floppy --fs-uuid --set=root 24A6F9DEA6F9B082
fi
parttool ${root} hidden-
chainloader +1

hd1,msdos1 - 350MB partition, active, numbering is correct, UUID is correct. AHCI1 - also, for sure, right.
Where else can you see something? SSD connected instead of DVD through a simple adapter.
Maybe not hd1 but some kind of sd1?
GRUB just restored.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question