Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a sata disk formatted in a NAS that use it in linux raid 1.

I have removed the disk from the NAS ed mounted it internally in a PC with linux.

Linux correctly recognize the disk and I'm able to assemble the raid and mount partitions.

fdisk correctly give me:

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

The problem is I need to use it inside a USB sata external enclosure. I have installed the same disk on the external enclosure e connect the USB to the linux PC. But now fdisk report a wrong disk geometry:

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

And I'm not able to assembly the raid and mount partitions.

How I can solve this?

Thank you

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Was a problem with HPA

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

hdparm -N /dev/sdX
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.