これまで、
2.5 インチ HDD からミラーリングして 3.5 インチ HDD (WD3200) の
ファームウェア入り HDD を作り、
その 3.5 インチ HDD から
さらにミラーリングして株分けをするように
3.5 インチファームウェア入り HDD (Maxtor 6Y160M0)を作った。
この際、HDD のコピーはファームウェアに委せていたため、
ファイルシステムだけコピーしているのか、
ファイルシステム以外(例えばスーパーブロック)も含めて
コピーしているのか、わかっていない。
特に mdadm はスーパーブロックも使うようにもできるなので、
スーパーブロックを使う可能性がある。
さて、そろそろ debian をインストールしてみようと考えているが、
ファイルシステム以外(例えばスーパーブロック)を使うかどうかによって、
インストールする HDD の作り方が変ってくる。
スーパーブロックを使わないようなら株分けせずとも
新規にパーティションを切って
フォーマット、ディレクトリツリーを構築すれば良いが、
スーパーブロックを使うようだと
標準ファームの HDD のミラーリングで株分けをしていくか、
スーパーブロックまで操作するようにしないといけない。
どちらか確認するために、 新規の(まだ一度も LS-WSGL につないだことがない) HDD に 標準ファームのディレクトリツリーを作りそれが起動するか、 さらにもう一台新規の HDD をつなぎ、それをミラーリングさせて ミラーリングできるかどうかを確認する。
ただ、、、もう SATA HDD のストックはない。。。。(藁)
仕方がないので、LS-HGL ハックキットをインストールした HDD を
つぶすことにした。必要になればまた作ればいいし。
root@LS-WSGL678:~# tail -f /var/log/messages /sbin/hotplug [usb] /sbin/hotplug [usb] /sbin/hotplug [scsi_host] /sbin/hotplug [usb_device] [/etc/hotplug.d/usb_device/buffalo.hotplug] usb_device Nov 1 00:07:06 LS-WSGL678 kernel: usb 1-1: new high speed USB device using ehci_platform and address 2 Nov 1 00:07:07 LS-WSGL678 kernel: usb 1-1: configuration #1 chosen from 1 choice Nov 1 00:07:07 LS-WSGL678 kernel: scsi2 : SCSI emulation for USB Mass Storage devices *** /usr/local/bin/DirectCopy_wait.sh [usb_device] Vendor: ST325082 Model: 3ND06QAZ Rev: Type: Direct-Access ANSI SCSI revision: 02 /sbin/hotplug [scsi] SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) sdc: Write Protect is off sdc: assuming drive cache: write through SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) sdc: Write Protect is off sdc: assuming drive cache: write through /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] sd 2:0:0:0: Attached scsi disk sdc /sbin/hotplug [block] /sbin/hotplug [scsi_device] sd 2:0:0:0: Attached scsi generic sg2 type 0 /sbin/hotplug [scsi_generic] Nov 1 00:07:11 LS-WSGL678 kernel: Vendor: ST325082 Model: 3ND06QAZ Rev: Nov 1 00:07:11 LS-WSGL678 kernel: Type: Direct-Access ANSI SCSI revision: 02 Nov 1 00:07:11 LS-WSGL678 kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) Nov 1 00:07:11 LS-WSGL678 kernel: sdc: Write Protect is off Nov 1 00:07:11 LS-WSGL678 kernel: sdc: assuming drive cache: write through Nov 1 00:07:11 LS-WSGL678 kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) Nov 1 00:07:11 LS-WSGL678 kernel: sdc: Write Protect is off Nov 1 00:07:11 LS-WSGL678 kernel: sdc: assuming drive cache: write through Nov 1 00:07:12 LS-WSGL678 kernel: sdc: sdc1 sdc2 sdc3 sdc4 Nov 1 00:07:12 LS-WSGL678 kernel: sd 2:0:0:0: Attached scsi disk sdc Nov 1 00:07:12 LS-WSGL678 kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0 SUPPORT_DIRECT_COPY=on 1 USB_DEVICE=none *** /usr/local/bin/DirectCopy_wait.sh [stop] DEVNAME=sdc hotplug: make_list() fail. BASENAME=usbdisk1 MPT=/mnt/usbdisk1/ try vfat(usbdisk) /sbin/hotplug [module] /sbin/hotplug [module] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! FAT: bogus number of reserved sectors /sbin/hotplug [block] /sbin/hotplug [block] ## STATE_CHANGED ## Nov 1 00:07:22 LS-WSGL678 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Nov 1 00:07:22 LS-WSGL678 kernel: FAT: bogus number of reserved sectors Nov 1 00:07:22 LS-WSGL678 kernel: VFS: Can't find a valid FAT filesystem on dev sdc. Nov 1 00:07:23 LS-WSGL678 kernel: kjournald starting. Commit interval 5 seconds Nov 1 00:07:23 LS-WSGL678 kernel: EXT3 FS on sdc1, internal journal Nov 1 00:07:23 LS-WSGL678 kernel: EXT3-fs: mounted filesystem with ordered data mode. *** [/etc/hotplug.d/scsi_device/usb-buffalo.hotplug 4502] Restarting Daemons... *** /usr/local/bin/DirectCopy_wait.sh [] 1 USB_DEVICE=/mnt/usbdisk1 direct copy mode : ready /sbin/hotplug [module] /sbin/hotplug [module] /sbin/hotplug [module] Nov 1 00:07:30 LS-WSGL678 kernel: NET: Registered protocol family 5 clearing printer queue clearing printer queue Nov 1 00:07:33 LS-WSGL678 nmbd[1505]: [2007/11/01 00:07:33, 0] nmbd/nmbd.c:terminate(58) Nov 1 00:07:33 LS-WSGL678 nmbd[1505]: Got SIGTERM: going down... clearing printer queue root@LS-WSGL678:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md1 4993920 273620 4720300 5% / /dev/ram1 15360 168 15192 1% /mnt/ram /dev/md0 988064 109668 878396 11% /boot /dev/disk1_6 236216784 960 236215824 0% /mnt/disk1 /dev/disk2_6 236216784 928 236215856 0% /mnt/disk2 /dev/usbdisk1_1 194443 11612 172792 6% /mnt/usbdisk1 root@LS-WSGL678:~# ls /mnt/usbdisk1/ initrd.buffalo uImage.buffalo root@LS-WSGL678:~#sdc1 (/boot) がマウントされている。
root@LS-WSGL678:~# umount /mnt/usbdisk1/ /sbin/hotplug [block] root@LS-WSGL678:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md1 4993920 273640 4720280 5% / /dev/ram1 15360 168 15192 1% /mnt/ram /dev/md0 988064 109668 878396 11% /boot /dev/disk1_6 236216784 960 236215824 0% /mnt/disk1 /dev/disk2_6 236216784 928 236215856 0% /mnt/disk2 root@LS-WSGL678:~#
root@LS-WSGL678:~# fdisk -l /dev/sda Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 125 1004031 83 Linux /dev/sda2 126 748 5004247+ 83 Linux /dev/sda4 749 30401 238187722+ 5 Extended /dev/sda5 749 873 1004031 82 Linux swap /dev/sda6 874 30295 236332183+ 83 Linux root@LS-WSGL678:~#パーティションを削除。
root@LS-WSGL678:~# fdisk /dev/sdc The number of cylinders for this disk is set to 30401. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sdc: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 25 200781 83 Linux /dev/sdc2 26 281 2056320 83 Linux /dev/sdc3 282 313 257040 82 Linux swap /dev/sdc4 314 30401 241681860 83 Linux Command (m for help): d Partition number (1-4): 1 Command (m for help): d Partition number (1-4): 2 Command (m for help): d Partition number (1-4): 3 Command (m for help): d Selected partition 4 Command (m for help): p Disk /dev/sdc: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help):標準ファームに合わせてパーティションを作成
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-30401, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401): 125 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (126-30401, default 126): Using default value 126 Last cylinder or +size or +sizeM or +sizeK (126-30401, default 30401): 748 Command (m for help): n Command action e extended p primary partition (1-4) e Partition number (1-4): 4 First cylinder (749-30401, default 749): Using default value 749 Last cylinder or +size or +sizeM or +sizeK (749-30401, default 30401): Using default value 30401 Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (749-30401, default 749): Using default value 749 Last cylinder or +size or +sizeM or +sizeK (749-30401, default 30401): 873 Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (874-30401, default 874): Using default value 874 Last cylinder or +size or +sizeM or +sizeK (874-30401, default 30401): Using default value 30401 Command (m for help): p Disk /dev/sdc: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 125 1004031 83 Linux /dev/sdc2 126 748 5004247+ 83 Linux /dev/sdc4 749 30401 238187722+ 5 Extended /dev/sdc5 749 873 1004031 83 Linux /dev/sdc6 874 30401 237183628+ 83 Linux Command (m for help):保存して終了
Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) sdc: Write Protect is off sdc: assuming drive cache: write through /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) sdc: Write Protect is off sdc: assuming drive cache: write through /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [block] Syncing disks. root@LS-WSGL678:~#
root@LS-WSGL678:~# mkfs.ext3 /dev/sdc1 mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 125696 inodes, 251007 blocks 12550 blocks (5.00%) reserved for the super user First data block=0 8 block groups 32768 blocks per group, 32768 fragments per group 15712 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 25 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. root@LS-WSGL678:~# mkfs.xfs /dev/sdc2 meta-data=/dev/sdc2 isize=256 agcount=8, agsize=156383 blks = sectsz=512 data = bsize=4096 blocks=1251061, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 root@LS-WSGL678:~# mkswap /dev/sdc5 Setting up swapspace version 1, size = 1028120576 bytes root@LS-WSGL678:~# mkfs.xfs /dev/sdc6 meta-data=/dev/sdc6 isize=256 agcount=57, agsize=1048576 blks = sectsz=512 data = bsize=4096 blocks=59295907, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=28953, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 root@LS-WSGL678:~#
root@LS-WSGL678:~# mkdir /tmp/root root@LS-WSGL678:~# mount /dev/sdc2 /tmp/root XFS mounting filesystem sdc2 /sbin/hotplug [block] root@LS-WSGL678:~# mkdir /tmp/root/boot root@LS-WSGL678:~# mount /dev/sdc1 !$ mount /dev/sdc1 /tmp/root/boot /sbin/hotplug [block] root@LS-WSGL678:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md1 4993920 273496 4720424 5% / /dev/ram1 15360 168 15192 1% /mnt/ram /dev/md0 988064 109668 878396 11% /boot /dev/disk1_6 236216784 960 236215824 0% /mnt/disk1 /dev/disk2_6 236216784 928 236215856 0% /mnt/disk2 /dev/sdc2 4994004 144 4993860 0% /mnt/ram/root /dev/sdc1 988212 16428 921584 2% /mnt/ram/root/boot root@LS-WSGL678:~#
root@LS-WSGL678:~# cd / root@LS-WSGL678:/# ls -l drwxr-xr-x 2 root root 4096 Jul 22 2008 bin drwxr-xr-x 3 root root 4096 Nov 1 00:00 boot drwxr-xr-x 6 root root 8192 Nov 1 00:07 dev drwxr-xr-x 21 root root 4096 Nov 1 00:01 etc drwxrwxrwx 3 root root 36 Nov 1 00:15 home drwxr-xr-x 2 root root 6 Jul 22 2008 initrd drwxr-xr-x 4 root root 4096 Jul 22 2008 lib drwxr-xr-x 2 root root 16 Oct 18 22:12 libexec drwxrwxrwx 11 root root 126 Nov 1 00:00 mnt drwxr-xr-x 4 root root 30 Nov 1 00:00 modules dr-xr-xr-x 75 root root 0 Jan 1 1970 proc -rw-r--r-- 1 root root 0 Nov 1 00:28 pwrmgrlog drwx------ 3 root root 39 Nov 1 00:04 root drwxr-xr-x 2 root root 4096 Jul 22 2008 sbin drwxr-xr-x 10 root root 0 Jan 1 1970 sys lrwxrwxrwx 1 root root 8 Nov 1 00:00 tmp -> /mnt/ram drwxr-xr-x 10 root root 95 Jul 22 2008 usr drwxr-xr-x 10 root root 119 Nov 1 00:00 var drwxr-xr-x 5 root root 61 Jul 11 2008 www root@LS-WSGL678:/#mnt, proc と tmp 以外を /tmp/root にコピーする。
root@LS-WSGL678:/# tar cf - b* d* e* h* i* l* modules pwrmgrlog r* s* u* v* w* | (cd /tmp/root; tar xvf -) : : oot@LS-WSGL678:/# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md1 4993920 273196 4720724 5% / /dev/ram1 15360 168 15192 1% /mnt/ram /dev/md0 988064 109668 878396 11% /boot /dev/disk1_6 236216784 960 236215824 0% /mnt/disk1 /dev/disk2_6 236216784 928 236215856 0% /mnt/disk2 /dev/sdc2 4994004 39464 4954540 1% /mnt/ram/root /dev/sdc1 988212 126076 811936 13% /mnt/ram/root/boot root@LS-WSGL678:/#ん?なんで Used が違う?
root@LS-WSGL678:/# ls /boot SATA1 initrd.buffalo conf_save.tgz lost+found conf_save.tgz.orig uImage.buffalo hddrootfs.buffalo.updated.done root@LS-WSGL678:/# ls /mnt/ram/root/boot SATA1 initrd.buffalo conf_save.tgz lost+found conf_save.tgz.orig uImage.buffalo hddrootfs.buffalo.updated.done root@LS-WSGL678:/#?
proc, tmp, mnt を作る。
root@LS-WSGL678:/# mkdir /tmp/root/proc root@LS-WSGL678:/# ls -ld tmp lrwxrwxrwx 1 root root 8 Nov 1 00:00 tmp -> /mnt/ram root@LS-WSGL678:/# ln -s /mnt/ram /tmp/root/tmp root@LS-WSGL678:/# ls -ld /tmp/root/tmp lrwxrwxrwx 1 root root 8 Nov 1 00:35 /tmp/root/tmp -> /mnt/ram root@LS-WSGL678:/# pushd /tmp/root l/tmp/root / root@LS-WSGL678:/tmp/root# ls -ld tmp lrwxrwxrwx 1 root root 8 Nov 1 00:35 tmp -> /mnt/ram root@LS-WSGL678:/tmp/root# popd / root@LS-WSGL678:/#mnt はテキトーにディレクトリだけ作っておく。
root@LS-WSGL678:/# mkdir /tmp/root/mnt root@LS-WSGL678:/tmp/root/tmp# cd /tmp/root/mnt root@LS-WSGL678:/tmp/root/mnt# ls root@LS-WSGL678:/tmp/root/mnt# (cd /mnt; ls) array1 disk1 info ram usbdisk2 authtest disk2 msdfs_root usbdisk1 root@LS-WSGL678:/tmp/root/mnt# mkdir `!!` mkdir `(cd /mnt; ls)` root@LS-WSGL678:/tmp/root/mnt# ls array1 disk1 info ram usbdisk2 authtest disk2 msdfs_root usbdisk1 root@LS-WSGL678:/tmp/root/mnt# ls -l /mnt drwxr-xr-x 3 root root 18 Nov 1 00:01 array1 drwxrwxrwx 2 root root 6 Nov 1 2007 authtest drwxrwxrwx 3 root root 18 Nov 1 00:27 disk1 drwxrwxrwx 2 root root 6 Nov 1 00:27 disk2 drwxr-xr-x 4 root root 35 Jul 22 2008 info drwxrwxrwx 2 root root 6 Nov 1 2007 msdfs_root drwxrwxrwt 13 root root 520 Nov 1 00:38 ram drwxr-xr-x 2 root root 6 Jul 22 2008 usbdisk1 drwxr-xr-x 2 root root 6 Jul 22 2008 usbdisk2 root@LS-WSGL678:/tmp/root/mnt# chmod 777 authtest disk1 disk2 msdfs_root root@LS-WSGL678:/tmp/root/mnt# chmod 1777 ram root@LS-WSGL678:/tmp/root/mnt# ls -l drwxr-xr-x 2 root root 6 Nov 1 00:39 array1 drwxrwxrwx 2 root root 6 Nov 1 00:39 authtest drwxrwxrwx 2 root root 6 Nov 1 00:39 disk1 drwxrwxrwx 2 root root 6 Nov 1 00:39 disk2 drwxr-xr-x 2 root root 6 Nov 1 00:39 info drwxrwxrwx 2 root root 6 Nov 1 00:39 msdfs_root drwxrwxrwt 2 root root 6 Nov 1 00:39 ram drwxr-xr-x 2 root root 6 Nov 1 00:39 usbdisk1 drwxr-xr-x 2 root root 6 Nov 1 00:39 usbdisk2 root@LS-WSGL678:/tmp/root/mnt#mkdir `(cd /mnt; ls)` あたりが「ワザ」かな。
これで、できあがり。多分。
: : Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: ST3250823AS Firm: 3.02 Ser#: 3ND06QAZ Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 1757556 bytes read Image Name: Linux-2.6.16.16-arm1 Created: 2008-07-22 7:22:37 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1757492 Bytes = 1.7 MB Load Address: 00008000 Entry Point: 00008000 Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/initrd.buffalo 5622690 bytes read Image Name: initrd Created: 2008-07-22 7:23:07 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5622626 Bytes = 5.4 MB Load Address: 00000000 Entry Point: 00000000 Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (182)>No kernel_file 1 Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (237)>No init_file 1 Booting from Device 0 : : scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter ** BUFFALO Disable Command Queuing Function [0 0] ** Vendor: Seagate Model: ST3250823AS Rev: 3.02 Type: Direct-Access ANSI SCSI revision: 03 Linux IAL (ERROR) : retry command host=0, bus=0 SCpnt = c1449ba0 SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB) sda: Write Protect is off SCSI device sda: drive cache: write back SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB) sda: Write Protect is off SCSI device sda: drive cache: write back sda: sda1 sda2 sda4 < sda5 sda6 > sd 0:0:0:0: Attached scsi disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 : : -- rebuild mdadm.conf for BOOT, ROOTFS -- mdadm: No arrays found in config file -- setup max error counts -- /sys/block/md0/md/maxerr_cnt is setted to -1 Starting :fsck_disks(boot) ... [Failed. ] Starting :fsck_disks(rootfs) ... [Success.] Starting :mount(boot) ... [Failed. ] -- rebuild mdadm.conf for BOOT, ROOTFS -- mdadm: No arrays found in config file -- 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 /etc/init.d/startSysMd.sh: /etc/init.d/startSysMd.sh: 23: cannot create /sys/block/md10/md/maxerr_cnt: Directory nonexistent /dev/md1: Invalid argument mount: you must specify the filesystem type /dev/md1: Invalid argument mount: you must specify the filesystem type md: md0 stopped. mdadm: stopped /md: md1 stopped. dev/md0 mdadm: stopped /md: md10 stopped. dev/md1 mdadm: stopped /dev/md10 Freeing init memory: 112K init started: BusyBox v1.1.1 (2008.07.15-06:14+0000) multi-call binary Starting pid 455, console /dev/ttyS0: '/etc/init.d/rcS' --- rcStart (initrd) --- chmod: /home: No such file or directory Unable to find swap-space signature swapon: /dev/md10: Invalid argument create dir : /home create dir : /var/www -- rebuild mdadm.conf for BOOT, ROOTFS -- mdadm: No arrays found in config file -- 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 umount: /boot: not mounted mkdir: Cannot create directory `/boot': File exists /dev/md0: Invalid argument mount: you must specify the filesystem type md: md0 stopped. mdadm: stopped /md: md1 stopped. dev/md0 md: md10 stopped. mdadm: stopped /dev/md1 mdadm: stopped /dev/md10 configure files from Buffalo parameters. -- rebuild mdadm.conf for BOOT, ROOTFS -- mdadm: No arrays found in config file -- setup max error counts -- /sys/block/md0/md/maxerr_cnt is setted to -1 /dev/md0: Invalid argument mount: you must specify the filesystem type Restore previous configuration files /bin/tar: /boot/conf_save.tgz: Cannot open: No such file or directory : : BUFFALO INC. LinkStation series LS-WSGL-EM678 login:EM モードで立ち上がってきた。
LS-WSGL-EM678 login: admin Password: BusyBox v1.1.1 (2008.07.15-06:14+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 15351 13898 1453 91% / /dev/ram1 15360 24 15336 0% /mnt/ram ~ $ fdisk /dev/sda -sh: fdisk: not found ~ $ /sbin/fdisk /dev/sda You will not be able to write the partition table. The number of cylinders for this disk is set to 30401. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 125 1004031 83 Linux /dev/sda2 126 748 5004247+ 83 Linux /dev/sda4 749 30401 238187722+ 5 Extended /dev/sda5 749 873 1004031 83 Linux /dev/sda6 874 30401 237183628+ 83 Linux Command (m for help): q ~ $パーティションは見えているのに、、、
やっぱり、単にパーティション切って ディレクトリツリー作っただけではあかんか。
|
← Softbank Mobile X01T の接続 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ HDDが4台まで搭載可能な「玄箱」 / brand new KURO-BOX |