LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-02-2013, 02:05 PM   #1
a2z
LQ Newbie
 
Registered: May 2013
Posts: 7

Rep: Reputation: Disabled
WD USB disk shown with much smaller size


Hi,
we have a brand new 3TB USB disk plugged into the server ( running Linux 2.6.18-238.5.1.el5 #1 SMP Mon Feb 21 05:52:39 EST 2011 x86_64 x86_64 x86_64 GNU/Linux)
However the /var/log/messages shows the disk is only 800GB.

May 1 22:01:44 server5 kernel: usb 1-3: new high speed USB device using ehci_hcd and address 86
May 1 22:01:44 server5 kernel: usb 1-3: configuration #1 chosen from 1 choice
May 1 22:01:44 server5 kernel: scsi1535 : SCSI emulation for USB Mass Storage devices
May 1 22:01:49 server5 kernel: Vendor: WDC WD30 Model: EURS-63SPKY0 Rev:
May 1 22:01:49 server5 kernel: Type: Direct-Access ANSI SCSI revision: 02
May 1 22:01:49 server5 kernel: SCSI device sdas: 1565565872 512-byte hdwr sectors (801570 MB)
May 1 22:01:49 server5 kernel: sdas: Write Protect is off
May 1 22:01:49 server5 kernel: sdas: assuming drive cache: write through
May 1 22:01:49 server5 kernel: SCSI device sdas: 1565565872 512-byte hdwr sectors (801570 MB)
May 1 22:01:49 server5 kernel: sdas: Write Protect is off
May 1 22:01:49 server5 kernel: sdas: assuming drive cache: write through
May 1 22:01:49 server5 kernel: sdas: unknown partition table
May 1 22:01:49 server5 kernel: sd 1535:0:0:0: Attached scsi disk sdas
May 1 22:01:49 server5 kernel: sd 1535:0:0:0: Attached scsi generic sg45 type 0

What could have gone wrong? Any way to fix it?
Thanks.
 
Old 05-02-2013, 02:22 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Rep: Reputation: 43
Greetings,

Well, considering how old the kernel is (2.6.18 versus current 3.7.x), I figure this is an older server.

First question would be; Does the mobo support 3TB drives? (Had an issue with certain older systems with the 2TB drives.)

Also, is the drive completely unformatted? I was noting the following snippet from the log:
Quote:
Originally Posted by a2z
May 1 22:01:49 server5 kernel: SCSI device sdas: 1565565872 512-byte hdwr sectors (801570 MB)
May 1 22:01:49 server5 kernel: sdas: Write Protect is off
May 1 22:01:49 server5 kernel: sdas: assuming drive cache: write through
May 1 22:01:49 server5 kernel: sdas: unknown partition table
May 1 22:01:49 server5 kernel: sd 1535:0:0:0: Attached scsi disk sdas
HTH. Let us know.
 
Old 05-02-2013, 03:41 PM   #3
a2z
LQ Newbie
 
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi,
Not sure if 3TB is supported or not by it. However certainly 2TB is supported, since I have 2TB USB disks that are plugged in and recognized. I would be OK if I can get 2TB use out of the disk.
Yes, the disk is not partitioned yet.
Thanks!
 
Old 05-02-2013, 08:03 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,554

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
Originally Posted by ShadowCat8 View Post
Greetings,

Well, considering how old the kernel is (2.6.18 versus current 3.7.x), I figure this is an older server.
HTH. Let us know.
not entirely so. RHEL 6.x is still using 2.6.x kernel.

to the OP, partition and format the drive, then you will know better if you are having size issues. at least partition it and look at fdisk -l to get a better idea of what the system is seeing.
 
Old 05-03-2013, 12:46 PM   #5
a2z
LQ Newbie
 
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi,
Used parted to partition it. Only 802GB is available.

# /sbin/parted /dev/sdas
GNU Parted 1.8.1
Using /dev/sdas
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) mkpart primary 0.0 100%
(parted) print
Model: WDC WD30 EURS-63SPKY0 (scsi)
Disk /dev/sdas: 802GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 802GB 802GB primary

# fdisk -l /dev/sdas

WARNING: GPT (GUID Partition Table) detected on '/dev/sdas'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdas: 801.5 GB, 801569726464 bytes
255 heads, 63 sectors/track, 97451 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdas1 1 97452 782782935+ ee EFI GPT
 
Old 05-07-2013, 01:48 PM   #6
a2z
LQ Newbie
 
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Any insights?
Thank you.
 
Old 05-07-2013, 02:32 PM   #7
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Looks like an 800G drive. Can you try plugging it into another machine (preferably one with a newer kernel) to see what it says?
 
Old 05-07-2013, 03:01 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,554

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
Originally Posted by suicidaleggroll View Post
Looks like an 800G drive. Can you try plugging it into another machine (preferably one with a newer kernel) to see what it says?
this is not a kernel issue, im running basically the same kernel he is and have both a 1.5Tb and a 2.0Tb drive with zero issues. i have also on many occasions connected 1.0-3.0TB drives via USB 2.0 with zero issues.

something else is going on here. by the looks of his output he has some odd partitions that maybe causing the issue. If fdisk is unable to remove all partitions then it should tell you what tool to use. In addition to that, was this drive ever part of a raid, or an LVM?
 
Old 05-07-2013, 03:04 PM   #9
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Quote:
Originally Posted by lleb View Post
this is not a kernel issue
I really just meant another, different computer (IE: not an identical machine running an identical OS). Variety is good for tracking down problems like this, the more different the machines, the more you can trust that something is wrong with the drive or its partition table when both machines give you the same output.
 
Old 05-07-2013, 03:33 PM   #10
a2z
LQ Newbie
 
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi,
Actually this is a brand new disk. Even before I partitioned it, /var/log/messages showed that OS sees it as a 802GB disk. Partition only confirms that only 802GB was available.
 
Old 05-07-2013, 04:50 PM   #11
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Quote:
Originally Posted by a2z View Post
Hi,
Actually this is a brand new disk.
Yes, but it's an external drive, right? External drives are pre-partitioned by the manufacturer, often with a very crazy (and very broken) partition table. The first thing I do whenever I get an external drive is wipe the entire partition table and create a new one from scratch.
 
Old 05-07-2013, 06:54 PM   #12
a2z
LQ Newbie
 
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
But when I used parted to check the disk for the first time, it showed no partition. What other tool can I use to check and wipe the built-in partition?
Thanks.
 
Old 05-08-2013, 12:38 AM   #13
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,554

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
fdisk the drive and remove all partitions. then create 1 partition and follow the defaults on the screen. again as long as that drive has never been part of a LVM or RAID this will work.

@suicidaleggroll yes more systems to test = excellent for reducing the variables that can cause issues.
 
Old 05-13-2013, 05:59 PM   #14
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Rep: Reputation: 43
Greetings all,

@a2z: Again, I would say that you need to check whether or not your motherboard *can handle* 3TB drives. I have had issues with certain older systems trying to read and/or use 2TB drives in the past because the motherboard *couldn't* support them.
Best way to do that is to go to the website of the manufacturer of your motherboard and see if there is a BIOS update available for it. *ALWAYS* check the description of any BIOS updates that you getting to make sure the update is actually resolving the issue you are experiencing.

@lleb: Yes, I know there is still some work going on some of the later 2.6.32 kernels in the hardened linux kernel source, however, 2.6.18 was officially released some time around May of 2006 (a few short months after you registered here, interestingly enough. hehe). As of this writing, the earliest stable of the hardened 2.6.x kernel in my portage tree is 2.6.32-r143 and the most recent is 2.6.32-r161. The "earliest" linux 2.6.x kernel version I have in my portage tree overall is 2.6.16.26 under xbox-sources.

This isn't running on an Xbox, by chance, is it? (I would figure that Xbox *should* support 3TB drives, but that is an assumption. :-p hehe)
 
Old 05-13-2013, 06:28 PM   #15
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 175

Rep: Reputation: 61
I just thought to google around, and found that this is a well-known issue with 3TB drives in older systems. You should search terms like "802 gb 3 tb" or "2.2 tb limit" or simply "3tb hard drive limitations" and you'll find plenty.

This looks like a useful article:
PC World, 06 July 2011 - Everything You Need to Know About 3TB Hard Drives

In short, some motherboards can only address up to 2.2 TB. In some cases, that leaves a fragment of 802 GB. Why you're not seeing only the 2.2 TB, or seeing both 2.2 TB and 802 GB in separate partitions, I don't know. I suspect a BIOS upgrade is what you need... or a new system?

Last edited by Beryllos; 05-13-2013 at 08:57 PM. Reason: mixup between GB and TB units
 
  


Reply


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
Fdisk shows logical sector size smaller than physical sector size after clonezilla narnie Linux - Hardware 12 07-03-2013 09:01 PM
What size USB disk is boot rescue disk? Lufbery Slackware - Installation 11 12-02-2007 02:36 PM
floppy only reads first disk, if new disk is inserted data from first disk is shown. lakosked Debian 3 02-18-2006 08:44 PM
Free disk space in '/' getting smaller and smaller. simjii Suse/Novell 5 12-16-2005 11:24 AM
Why is my screen size smaller? pablowablo Red Hat 5 05-25-2004 09:20 AM


All times are GMT -5. The time now is 12:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration