LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting USB hard drive with 4kb sectors in CentOS 5.8 (https://www.linuxquestions.org/questions/linux-general-1/mounting-usb-hard-drive-with-4kb-sectors-in-centos-5-8-a-4175477057/)

someshpr 09-13-2013 05:54 PM

Mounting USB hard drive with 4kb sectors in CentOS 5.8
 
Hello,

I got a new 3TB external hard drive for backing up data from my Cent OS 5.8 machine. And I cannot mount it!

This is what I did:
Code:

somesh@mesozoic somesh$ sudo /sbin/fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          13      104391  83  Linux
/dev/sda2              14      12761  102398310  83  Linux
/dev/sda3          12762      13781    8193150  82  Linux swap / Solaris
/dev/sda4          13782      60801  377688150    5  Extended
/dev/sda5          13782      60801  377688118+  83  Linux
Note: sector size is 4096 (not 512)

WARNING: The size of this disk is 3.0 TB (3000558944256 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 3000.5 GB, 3000558944256 bytes
255 heads, 63 sectors/track, 45599 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      45600  2930232320    7  HPFS/NTFS

somesh@mesozoic somesh$ sudo mount -t ntfs-3g /dev/sdb1 usb/
Failed to read last sector (732558079): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
  or it was not setup correctly (e.g. by not using mdadm --build ...),
  or a wrong device is tried to be mounted,
  or the partition table is corrupt (partition is smaller than NTFS),
  or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Following the last line, I tried /dev/sdb instead of /dev/sdb1 with same error!
Then I searched some and found somewhere that I should really use parted for more info. And that got me here:
Code:

somesh@mesozoic somesh$ sudo /sbin/parted -l

Model: ATA Hitachi HDT72105 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End    Size    Type      File system  Flags
 1      32.3kB  107MB  107MB  primary  ext3        boot
 2      107MB  105GB  105GB  primary  ext3             
 3      105GB  113GB  8390MB  primary  linux-swap       
 4      113GB  500GB  387GB  extended                   
 5      113GB  500GB  387GB  logical  ext3             




You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

        http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

        http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (1.8.1)
along with the error message below, the output of

        parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Error: SEGV_MAPERR (Address not mapped to object)

Then finally I came across this webpage, which says:
Quote:

4 kilobyte physical sectors, 4 kilobyte logical sector harddisks require firmware and software modifications to function. This type of 4 kilobytes sector disks is currently not supported in Red Hat Enterprise Linux 5
Looking back at the fdisk output I see that the new hard disk has sector size of 4kb (I am not sure whether this is physical sector or logical sector).

This got me bummed. So my question is can I any way mount this hard drive on my Cent OS 5.8 machine?


TIA,
Somesh

lleb 09-13-2013 07:48 PM

hmm cent 5 might have an issue with that large of a drive even if it were formatted ext4. the older kernel might have have issues with that large of a drive specifically under NTFS non-native formatting under Linux.

it also looks like you have been provided this answer in the centos forums:

https://www.centos.org/modules/newbb...topic_id=36471

check this out for formatting and mounting the larger drive

http://www.newitperson.com/2011/02/c...ger-2tb-linux/

http://grokbase.com/t/centos/centos/...ive-wont-mount

in short it looks like you might have to upgrade your OS and then format the drive for Linux.

someshpr 09-16-2013 04:14 PM

Solved, but no solution ... :(
 
Thanks lleb.

I Googled it further, and it seems that I cannot really change the hardware physical sector size. Seems the only option is to upgrade the kernel. Given the legacy code I have to use, upgrading is not an option for me, at least now. So I have now returned the 3TB and settled for a 2TB drive.

Thanks,
Somesh


All times are GMT -5. The time now is 02:17 PM.