USB 磁碟上的磁碟幾何結構錯誤

USB 磁碟上的磁碟幾何結構錯誤

我有一個在 NAS 中格式化的 sata 磁碟,在 Linux raid 1 中使用它。

我已經從 NAS 中取出磁碟並將其安裝在裝有 Linux 的 PC 內部。

Linux 正確識別磁碟,我能夠組裝 raid 並掛載分割區。

fdisk 正確地給我:

root@ubuntu:/home/ubuntu# fdisk -l  /dev/sde

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes

255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

  Device Boot      Start         End      Blocks   Id  System

/dev/sde1            2048     4196351     2097152   fd  Linux raid autodetect

/dev/sde2         5244928  1953497087   974126080   fd  Linux raid autodetect
/dev/sde3         4196352     5244927      524288   fd  Linux raid autodetect

問題是我需要在 USB SATA 外殼內使用它。我已在外部外殼上安裝了相同的磁碟,並將 USB 連接到 Linux PC。但現在 fdisk 報告錯誤的磁碟幾何:

root@ubuntu:/home/ubuntu# fdisk -l  /dev/sde

Disk /dev/sde: 33 MB, 33348608 bytes

2 heads, 32 sectors/track, 1017 cylinders, total 65134 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

  Device Boot      Start         End      Blocks   Id  System

/dev/sde1            2048     4196351     2097152   fd  Linux raid autodetect

/dev/sde2         5244928  1953497087   974126080   fd  Linux raid autodetect

/dev/sde3         4196352     5244927      524288   fd  Linux raid autodetect

Partition table entries are not in disk order

而且我無法組裝 raid 和安裝分割區。

我該如何解決這個問題?

謝謝

答案1

HPA有問題

http://en.wikipedia.org/wiki/Host_protected_area

hdparm -N /dev/sdX

相關內容