root@TS-WXL-EM3B3:~# mkdir /mnt/debinst root@TS-WXL-EM3B3:~# mount /dev/md1 !$ mount /dev/md1 /mnt/debinst EXT3-fs: unable to read superblock EXT2-fs: unable to read superblock mount: mounting /dev/md1 on /mnt/debinst failed: Input/output error root@TS-WXL-EM3B3:~#ん?
root@TS-WXL-EM3B3:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] unused devices:md1 がない。root@TS-WXL-EM3B3:~#
md をセットアップする。
root@TS-WXL-EM3B3:~# /etc/init.d/startSysMd.sh -- rebuild mdadm.conf for BOOT, ROOTFS with Intelligent routine -- md: md10 stopped. md: bind今度こそマウント。raid1: raid set md10 active with 1 out of 2 mirrors mdadm: /dev/md10 has been started with 1 drive (out of 2). md: md1 stopped. md: bind raid1: raid set md1 active with 1 out of 2 mirrors mdadm: /dev/md1 has been started with 1 drive (out of 2). md: md0 stopped. md: bind raid1: raid set md0 active with 1 out of 2 mirrors mdadm: /dev/md0 has been started with 1 drive (out of 2). -- setup max error counts -- /sys/block/md0/md/maxerr_cnt is setted to 20 /sys/block/md1/md/maxerr_cnt is setted to 20 /sys/block/md10/md/maxerr_cnt is setted to 20 root@TS-WXL-EM3B3:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] md10 : active raid1 sda5[0] 999872 blocks [2/1] [U_] md1 : active raid1 sda2[0] 4999936 blocks [2/1] [U_] md0 : active raid1 sda1[0] 999872 blocks [2/1] [U_] unused devices: root@TS-WXL-EM3B3:~#
root@TS-WXL-EM3B3:~# mount /dev/md1 /mnt/debinst kjournald starting. Commit interval 5 seconds EXT3 FS on md1, internal journal EXT3-fs: mounted filesystem with ordered data mode. root@TS-WXL-EM3B3:~# ls /mnt/debinst/ bin etc lib modules sbin usr boot home lost+found proc sys var dev initrd mnt root tmp www root@TS-WXL-EM3B3:~#できた。
root@TS-WXL-EM3B3:~# cd /mnt/debinst/ root@TS-WXL-EM3B3:/mnt/debinst# mkdir .buffalo root@TS-WXL-EM3B3:/mnt/debinst# mv * !$ mv * .buffalo root@TS-WXL-EM3B3:/mnt/debinst# ls root@TS-WXL-EM3B3:/mnt/debinst# ls -a . .. .buffalo root@TS-WXL-EM3B3:/mnt/debinst# ls -l .buffalo/ drwxr-xr-x 2 root root 4096 Dec 3 23:20 bin drwxr-xr-x 2 root root 4096 Dec 3 23:17 boot drwxr-xr-x 6 root root 12288 Feb 23 22:24 dev drwxr-xr-x 26 root root 4096 Feb 23 22:24 etc drwxrwxrwx 3 root root 4096 Dec 3 23:19 home drwxr-xr-x 2 root root 4096 Dec 3 23:17 initrd drwxr-xr-x 4 root root 4096 Jan 25 23:49 lib drwx------ 2 root root 16384 Jan 25 23:46 lost+found drwxrwxrwx 11 root root 4096 Feb 23 22:05 mnt drwxr-xr-x 3 root root 4096 Feb 23 22:05 modules drwxr-xr-x 2 root root 4096 Jul 17 2008 proc drwx------ 3 root root 4096 Jan 26 00:10 root drwxr-xr-x 2 root root 4096 Feb 23 22:05 sbin drwxr-xr-x 2 root root 4096 Dec 3 23:17 sys lrwxrwxrwx 1 root root 8 Feb 23 22:05 tmp -> /mnt/ram drwxr-xr-x 10 root root 4096 Dec 3 23:20 usr drwxr-sr-x 11 root root 4096 Feb 23 22:05 var drwxr-xr-x 6 root root 4096 Dec 3 23:18 www root@TS-WXL-EM3B3:/mnt/debinst#
root@TS-WXL-EM3B3:/mnt/debinst# cd /tmp root@TS-WXL-EM3B3:/tmp# wget http://ftp.jp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.22_all.deb wget: bad address 'ftp.jp.debian.org' root@TS-WXL-EM3B3:/tmp# cat /etc/resolv.conf nameserver 192.168.2.39 nameserver 192.168.1.2 search yamasita.jp root@TS-WXL-EM3B3:/tmp#むむ。なぜ?
仕方がないので、IP アドレスで。
root@TS-WXL-EM3B3:/tmp# wget http://61.115.118.67/debian/pool/main/d/debootstrap/debootstrap_1.0.22_all.deb Connecting to 61.115.118.67 (61.115.118.67:80) debootstrap_1.0.22_a 100% |*******************************| 57090 00:00:00 ETA root@TS-WXL-EM3B3:/tmp#あっという間に get.
root@TS-WXL-EM3B3:/tmp# ar -xv debootstrap_1.0.22_all.deb rw-r--r-- 0/0 4 Feb 23 04:54 2010 debian-binary rw-r--r-- 0/0 1176 Feb 23 04:54 2010 control.tar.gz rw-r--r-- 0/0 55721 Feb 23 04:54 2010 data.tar.gz root@TS-WXL-EM3B3:/tmp#
root@TS-WXL-EM3B3:/tmp# cd / root@TS-WXL-EM3B3:/# tar zxvf tmp/data.tar.gz root@TS-WXL-EM3B3:/# tar zxvf tmp/data.tar.gz ./ ./usr/ ./usr/sbin/ ./usr/sbin/debootstrap : : ./usr/share/debootstrap/scripts/testing ./usr/share/debootstrap/scripts/unstable ./usr/share/debootstrap/scripts/hardy root@TS-WXL-EM3B3:/#
root@TS-WXL-EM3B3:/# usr/sbin/debootstrap --arch armel lenny /mnt/debinst http://ftp.jp.debian.org/debian E: No pkgdetails available; either install perl, or build pkgdetails.c from source root@TS-WXL-EM3B3:/#?
|
← ar と wget |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 標準ファームで debootstrap |