作業日記@HatenaBlog

各種の作業メモ

WD10EADSのディスクジオメトリ

WD10EADSのディスクジオメトリを調べる

# hdparm -g /dev/sda
geometry = 56065/255/63, sectors=1953525168, ...

Cylinders = 56065
heads = 255
sectors = 63

# hdparm -i /dev/sda

rawCHS=16383/16/63


FreeBSDをインストールする際のディスクジオメトリはrawCHSの数値を採用する。
(それが正しいかは分からない)

2009/11/28追記:これらの情報は全て誤りでした。The above article is all wrong.

FreeBSDにおけるディスクジオメトリの設定 (Settings of disk geometry in FreeBSD)

参考記事(Reference is written in Japanese)

  • ディスク容量が 1GB を越える場合は、M cylinders、 63 sectors/track (64 「ではなく」)、 255 heads を使用する。
    If the capacity of the hard disk drive exceeds 1 Gbyte, you set M cylinders, 63 sectors/track (not 64) and 255 heads.
  • 上記 `M' は MB 単位のディスク容量を 7.844238 で割った整数値。(小数点以下は切捨て)
    The above `M' is an integral value in which the capacity (the unit is Mbyte) of hard disk drive is divided by 7.844238. (The value below the decimal point is rounded down.)

WD10EADSの情報を取得する (The information of WD10EADS is obtained.)

  1. Ubuntuを起動する。(Ubuntu is started.)
  2. コマンドプロンプトを開く。(Open command prompt.)
  3. $ sudo hdparm -I /dev/sda
  4. device size with M = 1024*1024: 953869 MBytes
  5. 953869 / 7.844238 =~ 121601
  6. 121601 cylinders / 63 sectors/track / 255 heads
hdparm -I /dev/sda の実行結果。(The execution result of the command "hdparm -I /dev/sda" is as follows.)


/dev/sda:
 
ATA device, with non-removable media
        Model Number:       WDC WD10EADS-00L5B1
        Serial Number:      WD-************
        Firmware Revision:  01.01A01
        Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
Standards:
        Supported: 8 7 6 5
        Likely used: 8
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors: 1953525168
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:      953869 MBytes
        device size with M = 1000*1000:     1000204 MBytes (1000 GB)
        cache/buffer size  = unknown

(以下省略。The under from this is omitted.)

Ubuntu の GParted を使う (Use GParted in Ubuntu)

メニュー「表示(V)」→「デバイス情報(I)」を選択すると、ディスクジオメトリが表示される。
Disk Geometry of the hard disk drive is shown by system tool "Gparted".