LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-25-2011, 08:55 PM   #1
Ipozya
Member
 
Registered: Dec 2010
Distribution: Arch
Posts: 54

Rep: Reputation: 2
Western Digital External Hard Drive


I just bought a new Western Digital My Book Essential External Hard Drive (3 TB). I ran fdisk and deleted the four existing partition, created a new primary one that covered all sectors (type 83) and when I type w (write) I get:

Code:
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
I have rebooted and the partition scheme seems very strange. fdisk -l shows System type as HPFS/NTFS/exFAT; fdisk /dev/sdb1 (the device) > p shows what seems to be the whole external hard drive as Linux (type 83); cfdisk /dev/sdb1 shows the following partition scheme:

Code:
Name       Flags     Part Type    FS Type   [Label]   Size (MB)
                      Pri/Log     Free Space          0.14       *
sdb1p1                Primary     Linux               375069.61  *
                      Pri/Log     Free Space          2625488.16 *
Not exactly sure what is going. I would simply like to format everything on the hard drive, make an ext3 partition and use it to backup my arch linux system as a cron job (rsync). Thank you in advance for any help and let me know if there is any additional information that I could provide.
 
Old 03-25-2011, 09:06 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Personally, I would use gparted and see if I had any success with another program before digging down any deeper.
 
Old 03-25-2011, 09:16 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Common error when running fdisk is to specify a partition and not the entire disk. i.e.
fdisk /dev/sdb1 vs fdisk /dev/sdb

Try
fdisk -l /dev/sdb

If you used /dev/sdb1 when you first created the partitions then you will need to start over.
 
Old 03-25-2011, 09:37 PM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
fdisk/cfdisk does not deal very well with disks larger than 2TB. The traditional DOS/MBR partition table is also limited to 2TB. For your 3TB disk, you should be using parted/gparted which will be able to create a GPT partition table on this disk.
 
1 members found this post helpful.
Old 03-25-2011, 09:53 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
fdisk/cfdisk does not deal very well with disks larger than 2TB.
True, I missed that it was a 3TB disk. Your correct fdisk can not handle drives over 2TB.
 
Old 03-25-2011, 10:54 PM   #6
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Quote:
Originally Posted by ongte View Post
fdisk/cfdisk does not deal very well with disks larger than 2TB. The traditional DOS/MBR partition table is also limited to 2TB. For your 3TB disk, you should be using parted/gparted which will be able to create a GPT partition table on this disk.
And that's what I said in my first post
 
0 members found this post helpful.
Old 03-25-2011, 10:58 PM   #7
Ipozya
Member
 
Registered: Dec 2010
Distribution: Arch
Posts: 54

Original Poster
Rep: Reputation: 2
Ok, thanks for the responses. I tried with gparted and it does seem to have completed the steps successfully and made it ext3 (all 3 Tb). Now when I hit fdisk -l, /dev/sdb1 shows as a linux system.

When I do fdisk /dev/sdb1, however, I get:
Code:
Note: sector size is 4096 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI, or OSF disklabel
Building a new DOS disklabel with disk identifier 0x5f418a95.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help):
cfdisk /dev/sdb1 shows all 3TB as free space. So I am not sure if this relates back to what people were saying regarding the 2TB maxima and fdisk/cfdisk not being able to properly display the partition scheme. I am planning on backing up my system, so should I just go ahead and try it now and see what happens? Any way of seeing if the hard drive is set up as I want it to now?

Last edited by Ipozya; 03-25-2011 at 11:01 PM.
 
Old 03-25-2011, 11:03 PM   #8
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Yup. Go back in gparted. I use gparted for all drives I work with over 2 TB and it works like a charm every single time.
 
1 members found this post helpful.
Old 03-25-2011, 11:19 PM   #9
Ipozya
Member
 
Registered: Dec 2010
Distribution: Arch
Posts: 54

Original Poster
Rep: Reputation: 2
Well gparted shows the partition as ext3 so that's promising. It's only 2.73 TB (instead of 3), however, and already has 44.05 GB used?

Also, when gparted was loading the following error repeated (probably ~30 times). I am not sure if it is related to external hard drive since I did see that it had recognized it prior to this part:

Code:
[27.915696] Buffer I/O error on device sr0, logical block 58568
[29.161510] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[29.161520] sr 1:0:0:0: [sr0] Sense Key = Illegal Request [current]
[29.161725] Info fld=0xe4c7
[29.161781] sr 1:0:0:0: [sr0] Add. Sense: Illegal node for this track
[29.161510] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

Other similar errors about sectors and blocks, culminating with:

[30.799195] aufs: module is from the staging directory, the quality is unknown, you have been warned.
Are these anything to worry about (gparted worked just like it was supposed to otherwise). Should I just try to back up system? (would the 44 GB in use cause any problems?) Thanks for all the help!

EDIT: And I took MichaelK's advice and did fdisk /dev/sdb, which does seem to show the correct partition. But cfdisk /dev/sdb is strange (shows 0.14 MB free space, then sdb1 as 375,069.74 MB linux partition, and another free space of 2,625,489.08 MB....)

Last edited by Ipozya; 03-25-2011 at 11:38 PM.
 
Old 03-27-2011, 01:09 AM   #10
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
Basically just ignore everything that fdisk/cfdisk says and stop using them. They can't deal with GPT & everything they show will just be wrong. Stick with gparted & u should be alright.

The 44GB should be pretty normal after formatting such a large partition. The gparted errors don't seem to be related to your hard drive, so no worries there.
 
Old 03-27-2011, 02:47 PM   #11
Ipozya
Member
 
Registered: Dec 2010
Distribution: Arch
Posts: 54

Original Poster
Rep: Reputation: 2
Thanks for the help!
 
  


Reply

Tags
fdisk, gparted, harddrive, partition


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't mount Western Digital Elements 2TB external hard drive ChiVampir Linux - Hardware 6 09-08-2010 01:39 AM
Western Digital External Hard Drive jongriffiths Linux - Hardware 1 03-02-2010 11:30 PM
Can I install Linux on Western Digital USB external hard drive? priyankadeven Linux - Newbie 6 11-24-2009 09:12 PM
Western digital 160gb external hard drive 2.5" usb s1‏ Vegas9 Linux - Laptop and Netbook 4 01-09-2009 06:59 PM
External Hard Drive Not mounting (Western Digital) cxiii Linux - Hardware 5 06-16-2008 09:36 PM


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

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