パーティションをきる / partisioning

LS-WSGL/R1

パーティションを全部削除した 3.5 インチ HDD では、 動作しなかったので、次はパーティションを切ってみる。
Next, Connect a 3.5 inch hard drive which is create same partitions.

2.5 inch HDD の partition

オリジナルの HDD のパーティションは、、、
The partisions of original hard drive are,,,
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:~#

パーティションを切る / partisioning

WD 3200 にパーティションを切る。
partisioning the WD3200.
root@LS-WSGL678:~# fdisk /dev/sdb

The number of cylinders for this disk is set to 38913.
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/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38913, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-38913, default 38913): 125

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (126-38913, default 126):
Using default value 126
Last cylinder or +size or +sizeM or +sizeK (126-38913, default 38913): 748

Command (m for help): p

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         125     1004031   83  Linux
/dev/sdb2             126         748     5004247+  83  Linux

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 4
First cylinder (749-38913, default 749):
Using default value 749
Last cylinder or +size or +sizeM or +sizeK (749-38913, default 38913):
Using default value 38913

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (749-38913, default 749):
Using default value 749
Last cylinder or +size or +sizeM or +sizeK (749-38913, default 38913): 873

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (874-38913, default 874):
Using default value 874
Last cylinder or +size or +sizeM or +sizeK (874-38913, default 38913):
Using default value 38913

Command (m for help): p

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         125     1004031   83  Linux
/dev/sdb2             126         748     5004247+  83  Linux
/dev/sdb4             749       38913   306560362+   5  Extended
/dev/sdb5             749         873     1004031   83  Linux
/dev/sdb6             874       38913   305556268+  83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write back
/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 sdb: 625142448 512-byte hdwr sectors (320073 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write back
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
Syncing disks.
root@LS-WSGL678:~#

reboot

リブートした。
reboot.

ERROR LED が付いていたが、いつのまにか消えた。
ERROR LED is blinking. but soon it clear.

rebuild ?

BUFFALO INC. LinkStation series
LS-WSGL678 login: root
root@LS-WSGL678:~# mdadm -D /dev/md0
mdadm: md device /dev/md0 does not appear to be active.
root@LS-WSGL678:~# mdadm -D /dev/md1
mdadm: md device /dev/md1 does not appear to be active.
root@LS-WSGL678:~# mdadm -D /dev/md10
mdadm: md device /dev/md10 does not appear to be active.
root@LS-WSGL678:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2              4993920    273416   4720504   5% /
/dev/ram1                15360        92     15268   1% /mnt/ram
root@LS-WSGL678:~# ls /
bin        etc        lib        modules    root       tmp        www
boot       home       libexec    proc       sbin       usr
dev        initrd     mnt        pwrmgrlog  sys        var
root@LS-WSGL678:~#
なんで、sda2 が / にマウントされているの?
Why the sda2 mounted on / ?
つぶした?
broken ?

元に戻して再起動 / reconnect original hard drive and reboot

元の HDD に戻しして再起動
reconnect original hard drive and reboot

root@LS-WSGL678:~# mdadm -D /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Jun 19 16:33:50 2008
     Raid Level : raid1
     Array Size : 1003904 (980.54 MiB 1028.00 MB)
    Device Size : 1003904 (980.54 MiB 1028.00 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Nov  1 00:26:27 2007
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : adbe578f:b86ab25a:09937ff0:e2de4343
         Events : 0.1172

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8        1        1      active sync   /dev/sda1
root@LS-WSGL678:~# mdadm -D /dev/md1
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Jun 19 16:33:51 2008
     Raid Level : raid1
     Array Size : 5004160 (4.77 GiB 5.12 GB)
    Device Size : 5004160 (4.77 GiB 5.12 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Thu Nov  1 00:28:08 2007
          State : clean, degraded, recovering
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

 Rebuild Status : 88% complete

           UUID : db218435:100e25e7:d2ba170f:d67ec206
         Events : 0.14197

    Number   Major   Minor   RaidDevice State
       2       8       18        0      spare rebuilding   /dev/sdb2
       1       8        2        1      active sync   /dev/sda2
root@LS-WSGL678:~# RAID1 conf printout:
 --- wd:2 rd:2
 disk 0, wo:0, o:1, dev:sdb2
 disk 1, wo:0, o:1, dev:sda2
KERNELMOn (raidrecovery 1 0 0 1 8 18)

root@LS-WSGL678:~# mdadm -D /dev/md10
/dev/md10:
        Version : 00.90.03
  Creation Time : Thu Jun 19 16:33:54 2008
     Raid Level : raid1
     Array Size : 1003904 (980.54 MiB 1028.00 MB)
    Device Size : 1003904 (980.54 MiB 1028.00 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 10
    Persistence : Superblock is persistent

    Update Time : Thu Nov  1 02:02:07 2007
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : ba25aab6:f1bb3eab:c75c26a7:a754b72a
         Events : 0.18

    Number   Major   Minor   RaidDevice State
       0       8       21        0      active sync   /dev/sdb5
       1       8        5        1      active sync   /dev/sda5
root@LS-WSGL678:~#
戻った。ふ~
recoverd.

LinkStation Mini
LS-WSGL
楽天市場
Amazon
Yahoo!ショッピング
Livedoor デパート
Sofmap
TSUKUMO ネットショップ
ムラウチドットコム
ヤマダ電機WEB
パソQ


3.5 インチ HDD の接続 / connect 3.5 inch hard drive
ハックの記録
LinkStation/玄箱 をハックしよう

LS-HGL ハックキットのページ追加

Copyright (C) 2003-2008 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市