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 07-06-2017, 12:53 PM   #1
actinide
Member
 
Registered: Jan 2012
Posts: 333

Rep: Reputation: Disabled
Can't format 4tb portable hdd


I want to format a 4tb portable hdd but i keep getting this error
message.

error creating partition on /dev/sdb: command-line parted --align
optimal --script "/dev/sdb" mkpart primary ext2 1 mib 4000787029503b
exited with non-zero exit status 1:error: partition length of 7814035119 sectors exceeds the msdos partition table imposed maximum of 4294967295

(udisk error quark,0)

Any ideas


Thanks
 
Old 07-06-2017, 12:56 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Use a GPT partitioning scheme instead of an MBR one (which is normally limited to 2TiB partitions/disks).
 
Old 07-06-2017, 01:01 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
or just split it up keeping in mind MBR limits of partitions as well.
 
Old 07-06-2017, 01:16 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by BW-userx View Post
or just split it up keeping in mind MBR limits of partitions as well.
The 2 TiB MBR limit also applies to the disk as a whole.

Unless of course you indulge in jiggery-pokery or use 4096-byte logical sectors.
 
Old 07-06-2017, 01:40 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
The 2 TiB MBR limit also applies to the disk as a whole.

Unless of course you indulge in jiggery-pokery or use 4096-byte logical sectors.
I just eat saltine crackers and play with my 3TB hdd. hehe

its an 3tb external HDD all formatted ext4 no partitions.


But yeah -- I'd go GPT just cuz -- only added that as an option.

but I do think one can still split it and get 2TB each even tough it is not formatted to 2TB my 3TB isn't really even 3TB
Attached Thumbnails
Click image for larger version

Name:	Screenshot_3TB-2017-07-06_13-35-13.png
Views:	115
Size:	33.5 KB
ID:	25394  

Last edited by BW-userx; 07-06-2017 at 01:49 PM.
 
Old 07-06-2017, 01:47 PM   #6
actinide
Member
 
Registered: Jan 2012
Posts: 333

Original Poster
Rep: Reputation: Disabled
Thanks, that worked everyone
 
Old 07-06-2017, 01:58 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by BW-userx View Post
I just eat saltine crackers and play with my 3TB hdd. hehe

its an 3tb external HDD all formatted ext4 no partitions.


But yeah -- I'd go GPT just cuz -- only added that as an option.

but I do think one can still split it and get 2TB each even tough it is not formatted to 2TB my 3TB isn't really even 3TB
It shows it has one partition - /dev/sdc1.

But wait, my saltine cracker-eating friend. Are you telling me that the drive in question is MBR partitioned with its single partition 2.73 TiB? Seriously, how did you manage that? Can you provide the fdisk -l or parted -l output for the disk in question?
 
Old 07-06-2017, 02:04 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by actinide View Post
Thanks, that worked everyone
Glad to hear it. Since you're using GPT, note that if you ever use it as a boot disk, be aware that you will have to create an EFI System Partition or a BIOS Boot Partition, depending on whether you're booting it from EFI or BIOS.
 
Old 07-06-2017, 02:25 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
It shows it has one partition - /dev/sdc1.

But wait, my saltine cracker-eating friend. Are you telling me that the drive in question is MBR partitioned with its single partition 2.73 TiB? Seriously, how did you manage that? Can you provide the fdisk -l or parted -l output for the disk in question?
yeah I was wondering how to make sure of that -- hold on --
Code:
userx%slackwhere ⚡ ~ ⚡> sudo fdisk -l /dev/sdc1
Disk /dev/sdc1: 2.7 TiB, 3000556847104 bytes, 732557824 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
oops its been awhile sense I formatted this hdd - eating my crackers now
Code:
Model: WD My Passport 0827 (scsi)
Disk /dev/sdc: 3001GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags: 
Number  Start   End     Size    File system  Name  Flags
 1      1049kB  3001GB  3001GB  ext4         3TB
I could have sworn it was MBR -- though I did play with it a while back -- makes me wonder if I did have it all one drive in MBR ---

because it was and I remember moving everything off it just to see that GPT was all about and it was because of GPT more that 4 logical partitions - and I said self - I am not going to be spiting it up anyways and just reformatted it keeping it GPT and put everything back on it again.

makes me want to see if I can move everything off it again and switch it back to MBR just to see -- for myself.

Last edited by BW-userx; 07-06-2017 at 02:30 PM.
 
Old 07-06-2017, 02:41 PM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Thanks BW. You're using 4096-byte (Advanced Format) instead of the typical 512-byte logical sectors. That means that MBR can cope with up to 16TiB (the limit is actually 2^32 sectors), so you most probably were using it with MBR.

Cutting edge as usual...
 
Old 07-06-2017, 02:44 PM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
thanks bw. You're using 4096-byte (advanced format) instead of the typical 512-byte logical sectors. That means that mbr can cope with up to 16tib (the limit is actually 2^32 sectors), so you most probably were using it with mbr.

Cutting edge as usual...
...

 
  


Reply

Tags
format, hdd, portable



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
4TB HD on Kubuntu 14.10 - shows as 2tb (1.7 actually) but Fdisk says 4TB. - What can I do? cilbuper Linux - Hardware 10 12-14-2015 06:34 PM
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
How to format a 4TB external HDD into ext3 in CentOS? jollibee Linux - Newbie 12 08-19-2013 10:45 AM
redhat - format and then re-mount 4tb raid 5 part. ? raf_iso Linux - Software 1 10-25-2007 06:29 AM

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

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