chainloader +1, again

Tom Killian tom.killian at gmail.com
Mon Mar 22 18:09:45 UTC 2010


>Snipped from that shell:
>device (hd0,0) /dev/sdb
>grub> root (hd0,1)
>root (hd0,1)
> Filesystem type unknown, partition type 0x82
>grub> setup (hd0,1)
>setup (hd0,1)

i think you're close.  'device' refers to the whole drive, and grub
counts partitions from 0 (partition type 0x82 is a swap partition,
/dev/sdb2).  so you probably want:

device (hd0) /dev/sdb
root (hd0,0)
setup (hd0) # write mbr of device, not partition!

on the other hand, if you got here via 'chainloader' from /dev/sda,
the bios (and therefore grub) likely thinks that /dev/sdb is drive 1,
so that 'hd1' may be what you need instead of 'hd0'.


More information about the users mailing list