パーティションを削除した HDD を DISK2 にセットして起動、
標準ファームの「ディスク管理」→「フォーマット」で
ディスク2を XFS でフォーマット。
これで標準ファームの HDD がコピーできる。
済
エクスプローラで、\\LS-QLのホスト名\share\hackkit を作成し、 そこにハックキットのファイルを置く。
BUFFALO INC. LinkStation series LS-QL233 login: root No mail. root@LS-QL233:~#
root@LS-QL233:~# cd /mnt/disk1/share/hackkit/ root@LS-QL233:/mnt/disk1/share/hackkit# root@LS-QL233:/mnt/disk1/share/hackkit# ls hackkit_081209.tar.gz hackkit_090216.sh ramroot_081213.sh hackkit_081214.sh mkimage root@LS-QL233:/mnt/disk1/share/hackkit# sh ramroot_081213.sh Extracting initrd... 110157+1 records in 110157+1 records out gunzip: can't open 'initrd': File exists mounting initrd... editing linuxrc... clearing root's password... rebuilding initrd.buffalo... gziping initrd ... wait 5 minutes gzip: can't open 'initrd.gz': File exists Image Name: initrd Created: Wed Feb 18 00:57:46 2009 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7050070 Bytes = 6884.83 kB = 6.72 MB Load Address: 0x00000000 Entry Point: 0x00000000 root@LS-QL233:/mnt/disk1/share/hackkit#失敗。
root@LS-QL233:/mnt/disk1/share/hackkit# ls /boot conf_save.tgz initrd.buffalo.orig hddrootfs.buffalo.updated.done initrd.gz initrd u-boot.buffalo initrd.buffalo uImage.buffalo root@LS-QL233:/mnt/disk1/share/hackkit#telnet できるようにした時の initrd が残っていた。
掃除してもう一回。
root@LS-QL233:/mnt/disk1/share/hackkit# rm /boot/initrd root@LS-QL233:/mnt/disk1/share/hackkit# rm /boot/initrd.gz root@LS-QL233:/mnt/disk1/share/hackkit# rm /boot/initrd.buffalo.orig root@LS-QL233:/mnt/disk1/share/hackkit# ls /boot conf_save.tgz u-boot.buffalo hddrootfs.buffalo.updated.done uImage.buffalo initrd.buffalo root@LS-QL233:/mnt/disk1/share/hackkit# sh ramroot_081213.sh Extracting initrd... 110157+1 records in 110157+1 records out mounting initrd... mkdir: cannot create directory '/tmp/root': File exists editing linuxrc... clearing root's password... rebuilding initrd.buffalo... gziping initrd ... wait 5 minutes Image Name: initrd Created: Wed Feb 18 01:03:35 2009 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7017365 Bytes = 6852.90 kB = 6.69 MB Load Address: 0x00000000 Entry Point: 0x00000000 root@LS-QL233:/mnt/disk1/share/hackkit#
BUFFALO INC. LinkStation series LS-QL-EM233 login: root No mail. root@LS-QL-EM233:~#見事 EM モードで起動、ログインできた。
root@LS-QL-EM233:~# date Wed Feb 18 01:11:35 JST 2009 root@LS-QL-EM233:~# date 021820502009 Wed Feb 18 20:50:00 JST 2009 root@LS-QL-EM233:~#
root@LS-QL-EM233:~# mkdir /mnt/disk1 mkdir: cannot create directory '/mnt/disk1': File exists root@LS-QL-EM233:~# mount /dev/sda6 /mnt/disk1 root@LS-QL-EM233:~# cd /mnt/disk1/share/hackkit/ root@LS-QL-EM233:/mnt/disk1/share/hackkit# ls hackkit_081209.tar.gz hackkit_090216.sh ramroot_081213.sh hackkit_081214.sh mkimage root@LS-QL-EM233:/mnt/disk1/share/hackkit#
root@LS-QL-EM233:/mnt/disk1/share/hackkit# cp hackkit_090216.sh hackkit_090218.sh root@LS-QL-EM233:/mnt/disk1/share/hackkit# vi !$ : :
root@LS-QL-EM233:/mnt/disk1/share/hackkit# sh hackkit_090218.sh PRODUCTID = 0x00004000 building md... -- rebuild mdadm.conf for BOOT, ROOTFS -- mdadm: cannot open device /dev/disk1_1: Device or resource busy mdadm: /dev/disk1_1 has wrong uuid. mdadm: /dev/disk1_2 has wrong uuid. mdadm: /dev/md10 has been started with 1 drive (out of 4). mdadm: /dev/md1 has been started with 1 drive (out of 4). -- setup max error counts -- /sys/block/md0/md/maxerr_cnt is setted to -1 /sys/block/md1/md/maxerr_cnt is setted to -1 /sys/block/md10/md/maxerr_cnt is setted to -1 mounting root file system ... extracting hackkit archive ... ./ ./var/ ./var/lib/ ./var/lib/apt/ ./var/lib/apt/lists/ ./var/lib/apt/lists/partial/ ./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_lenny_Release ./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_lenny_main_binary-armel_Packages : : ./media/ ./initrd/ creating /etc/fstab ... creating miconapl ... creating kernelmon ... creating usb ... checking /dev/md0 fsck 1.40.5 (27-Jan-2008) e2fsck 1.40.5 (27-Jan-2008) /dev/md0 is mounted. WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?ん?
Do you really want to continue (y/n)? no check aborted. mounting /boot ... editing initrd ... 109646+1 records in 109646+1 records out gunziping /mnt/debinst/boot/initrd.gz ... gziping /mnt/debinst/boot/initrd ... wait 5 minutes Image Name: initrd Created: Wed Feb 18 21:08:49 2009 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7017700 Bytes = 6853.22 kB = 6.69 MB Load Address: 0x00000000 Entry Point: 0x00000000 unmount /boot ... root@LS-QL-EM233:/mnt/disk1/share/hackkit#できた。
さすがに一発通しとはいかなかった。楽し。
|
← initrd の /linuxrc を見る |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ fstab の修正 |