LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-09-2015, 04:58 AM   #1
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Rep: Reputation: 0
Question 4TB HD on Kubuntu 14.10 - shows as 2tb (1.7 actually) but Fdisk says 4TB. - What can I do?


I've read a number of different reasons for this drive not showing up. I'm running a WD 4Tb Red NAS drive - not pro version (ext4 I believe, possibly ext3). I have 2 of these in a 3+ year old Zyxel NAS320 which originally only supported 2TB, but reads my 4TB fine.

My system is a Asus P8Z77-V Deluxe and a 3770K. I'm not sure the Bios, but I checked about 4-6 months ago and I believe it was updated at that point.

I'm also considering getting a 5-6TB external HD and am wondering if that is going to work with this system.

The major question I have is if I have to re-format/partition the drive, will I have to copy all the data off it when doing that or is there a way to retain the info?
 
Old 12-09-2015, 05:15 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
And we are supposed to precognisant ?.
What does "fdisk -l" (or parted) have to say.

First guess would be non-gpt partitioning.
 
Old 12-09-2015, 05:47 AM   #3
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
And we are supposed to precognisant ?.
What does "fdisk -l" (or parted) have to say.

First guess would be non-gpt partitioning.
I'm Sorry, I apologize. I didn't think I needed to say more than that Fdisk shows 4TB and that it is 83 Linux (ext3 or EXT4).

Disk /dev/sdf: 4000.8 GB, 4000787030016 bytes
90 heads, 3 sectors/track, 28940878 cylinders, total 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x1ffd8ae3

Device Boot Start End Blocks Id System
/dev/sdf1 2048 4294967294 2147482623+ 83 Linux



ON another note, I just loaded gparted and it looks like it is giving me the option to expand the 2TB sector (1.64 un-allocated). THe strange thing is that when I installed the drive, I created the partition in Fdisk, wrote changes, then did a mkfs.ext4 /dev/sdxx. When I created the partitions, I did all defaults, which should have taken up all the drive space from what I have experienced in the past.

In gparted, there is a padlock next to the partition and FS type which I guess is there because it is mounted at the time. If I unmount the drive, open gparted again, resize to maximum, is there anything that I should know or be worried about before doing this?

Thanks again for the help and I'm sorry I didin't include the Fdisk info - I'm not doing admin work a regularaly as I had been so some things slip my mind. :
 
Old 12-09-2015, 06:10 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
That doesn't show what I expected - no line like "Disklabel type: "?.

I'll presume "msdos" - i.e non-gpt. If so, 2 Gig is the limit. To get to the rest you'll need to re-define the partition structure as gpt - there are tools that attempt conversion "in-place"; gdisk for example. That may be safe for your data, maybe not. With only the one partition, I'd probably try it - after a back up.

Update: forgot to mention, do it all from a liveCD.

Last edited by syg00; 12-09-2015 at 06:11 AM.
 
Old 12-09-2015, 06:27 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,148

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
With 512e drives you need to make sure that your partitions are aligned on 8-sector boundaries. Parted will try to do this by default.
 
Old 12-09-2015, 06:37 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Why partition if the drive is used for a single filesystem?
 
Old 12-09-2015, 08:27 AM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,148

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Quote:
Originally Posted by Emerson View Post
Why partition if the drive is used for a single filesystem?
Why label bags in your freezer?
 
1 members found this post helpful.
Old 12-09-2015, 03:38 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Code:
# file -s /dev/sdb
/dev/sdb: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)

# xfs_admin -l /dev/sdb
label = "home"
Maybe it helps if you put a bag into another bag when dealing with goods in the freezer. In technical world adding another layer is usually adding another point of failure.
 
Old 12-09-2015, 09:29 PM   #9
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Original Poster
Rep: Reputation: 0
Just out of curiosity, I have has some really strange occurances on this system with drives vanishing and becoming un-recoverable to my methods (somewhat advanced, did this at work for 3-4 years). The data has just been "gone" with what seems corrupted data in place.

On a side note, when I installed another 4TB drive (one of my original 4TB reds) about 15 months ago, it seemed to partition the whole 4TB w/o problem and I used the same method this time.

Could this be a sign of a bad drive or is this more of an OS issue?

Thanks again to those who help. I appreciate everyone who has given assistance here and in the past!
 
Old 12-13-2015, 11:43 AM   #10
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,142

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by smallpond View Post
Why label bags in your freezer?
Who labels bags in the freezer. It's more exciting to guess...
 
Old 12-14-2015, 06:34 PM   #11
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Mint, Debian
Posts: 238

Rep: Reputation: 29
I recalled that fdisk had problems with GPT drives in the past, has this been fixed?
Otherwise, I would only use gdisk or gparted.

As for the corrupted data, it could be loose cable, hd about to die, improper shutdown of Linux, etc. Check your logs for errors as some errors will show up there!
So I would suggest doing a full backup and then scanning the disks to see if everything is fine (from a Live CD/DVD).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about partitioning a 4TB drive wtdedula Linux - Newbie 8 02-19-2015 10:32 AM
3.6T useable on a 4TB HDD? luckyknight Slackware 15 11-15-2014 12:28 PM
4TB HDD on bios question babbab Linux - Hardware 2 06-19-2014 01:31 PM
[SOLVED] 4TB drives and GPT fskmh Slackware 12 06-27-2012 09:54 AM
4Tb Server nutthick Linux - Hardware 6 03-29-2005 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:11 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