PC

玄柴:eSATAのHDD

認識したeSATAのHDDを使えるようにする。まずは、テストということで、手持ちの適当なHDDをケースに入れてeSATAで接続。/dev/sdaとして認識した。

[   68.787778] ata2: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen
[   68.795209] ata2: edma_err_cause=00000010 pp_flags=00000000, dev connect
[   68.801970] ata2: SError: { PHYRdyChg DevExch }
[   68.806548] ata2: hard resetting link
[   69.716210] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   69.756240] ata2.00: ATA-8: WDC WD10EADS-00M2B0, 01.00A01, max UDMA/133
[   69.762887] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   69.806289] ata2.00: configured for UDMA/133
[   69.810594] ata2: EH complete
[   69.813836] scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EADS-00M 01.0 PQ: 0 ANSI: 5
[   69.861471] sd 1:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   69.869829] sd 1:0:0:0: [sda] Write Protect is off
[   69.874651] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   69.874747] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[   69.885150]  sda: sda1 sda2 sda3
[   69.931133] sd 1:0:0:0: [sda] Attached SCSI disk

で、パーティション作成(その前に不要なパーティションは削除したけど、割愛)

# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It’s strongly recommended to
switch off the mode (command ‘c’) and change display units to
sectors (command ‘u’).

Command (m for help): n
Command action
e   extended
p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-121601, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-121601, default 121601):
Using default value 121601

Command (m for help): p

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4830f7fe

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      121601   976760001   83  Linux

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

Calling ioctl() to re-read partition table.
Syncing disks.
#

HDDをフォーマット

# mkfs.ext3 /dev/sda1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61054976 inodes, 244190000 blocks
12209500 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
#

HDDの性能測定をしようと思ったら、hdparmがインストールされてなかったので導入

# aptitude install hdparm
The following NEW packages will be installed:
hdparm
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 95.5kB of archives. After unpacking 299kB will be used.
Get:1 http://ftp.jaist.ac.jp squeeze/main hdparm 9.27-2 [95.5kB]
Fetched 95.5kB in 0s (363kB/s)
Selecting previously deselected package hdparm.
(Reading database … 21799 files and directories currently installed.)
Unpacking hdparm (from …/hdparm_9.27-2_armel.deb) …
Processing triggers for man-db …
Setting up hdparm (9.27-2) …

#

測定

# hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads:  266 MB in  3.02 seconds =  88.10 MB/sec
#

ちなみに、起動に使用しているSDカードは

# hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads:   46 MB in  3.10 seconds =  14.82 MB/sec
#

かなり微妙…

Similar Posts

コメントを残す

メールアドレスが公開されることはありません。

*

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください