hack のためのネタ帳, etc,,,


HGST 純正の USB3.0 外付け HDD
TOURO DESK PC/TV シリーズの 2TB モデル
2TB なのだが GPT でフォーマットされているため、購入したまま状態では XP で利用不能。
XP で利用するには MBR 化する必要がある。

あと、HGST のこの筐体は分解し難いためトラブル対応まで考えると Linux から S.M.A.R.T が見えないのが痛いのだが、Windows で CrystalDiskInfo からは見えてるので、なんかやり方はあるはず。

初期状態

Debian GNU/Linux unstable(2012-07-17) に接続した場合の見え方

udisks

parted

Windows XP に接続した場合の見え方

CrystalDiskInfo 3.7.0

MBR 化

作業は Linux に接続して行った。
GPT では先頭の 34 セクタと末尾の 33 セクタにパーティションテーブルが記録されている。
ひょっとすると後で元に戻すかもしれないのでとりあえずバックアップを取っておいた。
dd if=/dev/sdc of=HGST_0S03539_GPT1.bin bs=512 count=34
dd if=/dev/sdc of=HGST_0S03539_GPT2.bin bs=512 skip=3907028955 

次に、GPT を MBR に変更して、(最近のドライブは最適なアライメントに癖がある場合もあるので)念のため出荷時と同じ位置に NTFS のパーティションを作成しておいた。
Microsoft reserved partition については放置。
fdisk の場合 32bit 環境だとセクタ指定が 2^31 で溢れてしまうため、パーティション割り当ては parted を用い、id の振り直しのみ fdisk で行っている。
# parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) p
Model: HitachiG ST (scsi)
Disk /dev/sdc: 3907028988s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start    End          Size         File system  Name                          Flags
 1      34s      262177s      262144s                   Microsoft reserved partition  msftres
 2      264192s  3907026943s  3906762752s  ntfs         Basic data partition

(parted) mklabel msdos
Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be
lost. Do you want to continue?
Yes/No? yes
(parted) mkpart p 264192s  3907026943s
(parted) p
Model: HitachiG ST (scsi)
Disk /dev/sdc: 3907028988s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start    End          Size         Type     File system  Flags
 1      264192s  3907026943s  3906762752s  primary  ntfs

(parted) q

# fdisk /dev/sdc

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 7
Changed system type of partition 1 to 7 (HPFS/NTFS/exFAT)

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

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

パフォーマンス

以下の環境にて計測
-----------------------------------------------------------------------
CrystalDiskMark 3.0.1 (C) 2007-2010 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :   120.724 MB/s
          Sequential Write :    97.346 MB/s
         Random Read 512KB :    51.764 MB/s
        Random Write 512KB :    64.149 MB/s
    Random Read 4KB (QD=1) :     0.752 MB/s [   183.7 IOPS]
   Random Write 4KB (QD=1) :     1.410 MB/s [   344.4 IOPS]
   Random Read 4KB (QD=32) :     0.798 MB/s [   194.8 IOPS]
  Random Write 4KB (QD=32) :     1.380 MB/s [   336.9 IOPS]

  Test : 100 MB [F: 10.9% (202.2/1862.9 GB)] (x5)
  Date : 2012/07/23 0:57:49
    OS : Windows XP Professional SP3 [5.1 Build 2600] (x86)
タグ

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます