管理
# gzip -d bootld_255h_63s.mbr.gz # dd if=bootld_255h_63s.mbr of=/dev/sdb # sync;sync;sync
$ fdisk -l Disk /dev/sda: 40.9 GB, 40982151168 bytes 255 heads, 63 sectors/track, 4982 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 1 8001 83 Linux
$ fdisk -l /dev/sda Disk /dev/sda: 40.9 GB, 40982151168 bytes 255 heads, 63 sectors/track, 4982 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 1 8001 83 Linux /dev/sda2 2 39 305235 82 Linux swap /dev/sda3 40 2472 19543072+ 83 Linux
$ mkswap /dev/sda2 $ mkfs.reiserfs /dev/sda3 $ fsck.reiserfs /dev/sda3
$ mount /dev/sda3 /mnt $ cd /mnt $ wget http://eggplant.ddo.jp/www/download/kernel26/linux-2.6.22/base26-sh4-20070709-etch.tgz $ tar vxzpf base26-sh4-20070709-etch.tgz $ mv debian26/* . $ rm -rf debian26
# UNCONFIGURED FSTAB FOR BASE SYSTEM /dev/sda3 / reiserfs defaults 0 1 /dev/sda2 swap swap defaults 0 0
$ mkdir /mnt2 $ mount -t /dev/sda1 /mnt2 $ cp /mnt2/boot/bootld.conf /mnt/boot/ $ umount /mnt2
$ cd /mnt $ cat boot/bootld.conf … 省略 … 1 ) # search for /zImage /vmlinuz /boot/zImage /boot/vmlinuz IMAGE=/dev/sda3 APPEND="mem=64M console=ttySC1,9600 root=/dev/sda3" … 省略 …
$ rm vmlinuz $ cd /mnt $ ln -s boot/linux-2.6.22-rc2-landisk vmlinuz
$ cd / $ umount /mnt $ reboot
もし起動失敗したなら、再度レスキューモードで起動して問題を修復すればOKです。
#comment