/dev/sda1 /boot /dev/sda2 /usr /dev/sda3 /home /dev/sda6 /tmp /dev/sda7 / /dev/sda8 /var /dev/sda9 /home/localhost/douga/dev/sdaから vine linuxは起動していて /dev/sdbは umountの状態。
[root]# tar zxvf grub-0.96.tar.gz |
[root]# cd grub-0.96 |
[root]# configure |
[root]# make |
[root]# make install |
[root]# cd /boot [root]# tar cvf /tmp/boot050422.tar . ./ ./lost+found/ ./kernel.h-2.4.22 ./kernel.h ./initrd-2.4.22-0vl2.16.img ./System.map-2.4.22-0vl2.17 ./autoconf-up.h-2.4.22-0vl2.17 ./module-info-2.4.22-0vl2.17 ./vmlinuz 途中略 ./vmlinuz-2.4.22-0vl2.16 [root]# cd /tmp [root]# dd if=/dev/sda of=MBR050422.dat bs=1 count=447 読み込んだブロック数は 447+0 書き込んだブロック数は 447+0 [root]# |
[root]# grub-install /dev/sda |
[root]# grub-install /dev/sda 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 (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb |
default=0 timeout=3 title Vine Linux 2.17 root (hd0,0) kernel /vmlinuz-2.4.22-0vl2.17 ro root=/dev/sda7 initrd=/initrd-2.4.22-0vl2.17.img |
[root]# mount /dev/sdb7 /mnt [root]# mount /dev/sdb1 /mnt/boot |
[root]# grub-install --root-directory=/mnt /dev/sdb |
default=0 timeout=30 title Vine Linux 2.17-1 root (hd0,0) kernel /vmlinuz-2.4.22-0vl2.17 ro root=/dev/sda7 initrd=/initrd-2.4.22-0vl2.17.img title Vine Linux 2.17-2 root (hd0,0) kernel /boot/vmlinuz-2.4.22-0vl2.17 ro root=/dev/sda7 initrd=/boot/initrd-2.4.22-0vl2.17.img title Vine Linux 2.17-3 root (hd0,6) kernel /vmlinuz-2.4.22-0vl2.17 ro root=/dev/sda7 initrd=/initrd-2.4.22-0vl2.17.img title Vine Linux 2.17-4 root (hd0,6) kernel /boot/vmlinuz-2.4.22-0vl2.17 ro root=/dev/sda7 initrd=/boot/initrd-2.4.22-0vl2.17.img |
[root]# grub-install /dev/sdd /dev/sdd does not have any corresponding BIOS drive. [root]# |