Re: howto boot from the second disk in raid 1



Bob Proulx wrote:
# grub
grub> device (hd0) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Oh! I made an (hd0,0) assumption above and didn't explain it. That
valud may be different depending upon your configuration. But in the
old grub you can search for it like this:

grub> find /grub/stage1
(hd0,0)
(hd1,0)

On my system /boot is in /dev/md0 and that is actually /dev/sda1 and
/dev/sdb1 and so the files are found in (hd0,0) and (hd1,0).
Therefore mapping /dev/sdb to hd0 means (hd0,0) will be /dev/sdb1. If
you have /boot some place else then your information will need to be
different.

Again, the new grub is probably completely different. I haven't
worked with it enough to know how to drive it at this level.

Bob

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: GRUB trouble
    ... grub> root ... Submitting 'setup (hd0) claims all is fine and dandy, but a reboot gets me back to where I started. ... 'quit' is an unknown command as well. ...
    (Fedora)
  • Re: F8 installation in external usb disk (not USB key)
    ... map (hd0) ... the USB drive is hd0 when the chainload ... and it loads Grub from the USB drive. ...
    (Fedora)
  • Grub desperate need help
    ... I've installed openSUSE 10.2 in a second hard drive in my computer and ... grub does not work properly. ... I have the following setup files: ... grub> quit ...
    (alt.os.linux.suse)
  • Re: [opensuse] RAID1 boot problems
    ... do the following as root ... device (hd0) /dev/sda ... setup (hd0) ... how do i check these grub settings to verify if grub has been ...
    (SuSE)
  • Re: new hard drive, reinstalling grub
    ... partitions, then cpio'd everything over from the old drive, ... grub> setup ... The difference of setup (hd0,0) from the correct: setup, may be your problem... ...
    (Debian-User)