Grub_Life

소프트레이드일때 /dev/sdb 에 grub 설치하기.

/dev/sda, /dev/sdb 하드 2개가 소프트레이드 구성되어 있을때, 
/dev/sda 하드 고장시 /dev/sdb 하드로 부팅을 해야 합니다. 
그럴때 /dev/sdb 에 grub 을 설치하지 않으면 부팅이 되지 않습니다.
 
 
 
grub> find /grub/stage1
find /grub/stage1
(hd0,2)
(hd1,2)

grub>

device (hd0) /dev/sdb
root (hd0,2)
setup (hd0)

 

댓글

댓글 본문
작성자
비밀번호
  1. [root@localhost ~]# grub-install /dev/sdb
    Installation finished. No error reported.
    This is the contents of the device map /boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.

    # this device map was generated by anaconda
    (hd0) /dev/sda
    (hd1) /dev/sdb
  2. centos6 64bit

    /usr/share/grub/x86_64-redhat/stage1
  3. Frank
    grub> find /boot/grub/stage1
    find /boot/grub/stage1
    (hd0,0)
    (hd1,0)
    grub> device (hd0) /dev/sdb
    device (hd0) /dev/sdb
    grub> root (hd0,0)
    root (hd0,0)
    Filesystem type is ext2fs, partition type 0xfd
    grub> setup (hd0)
    setup (hd0)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/e2fs_stage1_5" exists... yes
    Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 27 sectors are embedded.
    succeeded
    Running "install /boot/grub/stage1 (hd0) (hd0)1+27 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
    Done.
  4. Frank
    centos6 은 아래 처럼.

    grub> find /boot/grub/stage1
    find /boot/grub/stage1
    (hd0,0)
    (hd1,0)
graphittie 자세히 보기