LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2013, 05:54 PM   #1
someshpr
Member
 
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 143

Rep: Reputation: 28
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
 
Old 09-13-2013, 07:48 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,976

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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.
 
Old 09-16-2013, 04:14 PM   #3
someshpr
Member
 
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 143

Original Poster
Rep: Reputation: 28
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
 
  


Reply

Tags
centos5, hard disk, mount, sector


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How does one determine a USB hard drive capacity in sectors? Equinn Linux - Software 2 03-25-2011 05:40 AM
Mounting USB hard drive Skillz Linux - Hardware 5 09-22-2010 01:29 AM
Mounting usb hard-drive ewingnoah Fedora 2 02-09-2006 12:49 PM
mounting usb hard drive frostedthorns Fedora 4 07-01-2004 10:51 PM
mounting a usb hard drive yocompia Slackware 5 10-19-2003 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration