Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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.
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
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?
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.
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.
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.
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.
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.
@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)
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.