[SOLVED] problem formatting a 3TB hard drive.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] problem formatting a 3TB hard drive.

Postby arminius » Aug 14th, '12, 04:59

Ok, I used mkfs to format the entire drive in ext4 but it only created a 2TB partition.
I tried to expand it in kde partition manager, but kept coming up with error messages.

I couldn't even create a separate partition in ext4, it would only let me use the rest of that space if I used ext3.
I looked up ext4 on wikipedia and it should be good till you get to 1EB?

The hard drive was listed as " 3TB Western Digital 3.5" 5400rpm SATA 6Gb/s HDD PN WD30EZRX" where I got it.

so is there a trick to getting more then 2TB's?
Last edited by arminius on Aug 15th, '12, 15:30, edited 1 time in total.
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: problem formatting a 3TB hard drive.

Postby tom_ » Aug 14th, '12, 08:36

arminius wrote:Ok, I used mkfs to format the entire drive in ext4 but it only created a 2TB partition.


mkfs builds a filesystem, doesn't change partition size,
so probably you already had a 2 GB partition.

diskdrake (as root) should permit you to add/resize partitions
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: problem formatting a 3TB hard drive.

Postby arminius » Aug 14th, '12, 08:46

I'll try that when I get home, was weird that the partition managers couldn't grow the partition though.
Is that a common problem?
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: problem formatting a 3TB hard drive.

Postby arminius » Aug 14th, '12, 14:00

tom_ wrote:
arminius wrote:Ok, I used mkfs to format the entire drive in ext4 but it only created a 2TB partition.


mkfs builds a filesystem, doesn't change partition size,
so probably you already had a 2 GB partition.

diskdrake (as root) should permit you to add/resize partitions


ok diskdrake didn't work, here's what I tried in terminal, it's rather long but I don't know what's relevant and irelevant.

Code: Select all
[root@localhost arminius]# diskdrake
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/lib/libDrakX/mygtk2.pm line 20.
Gtk-CRITICAL **: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed at /usr/lib/libDrakX/interactive/gtk.pm line 520.
mke2fs 1.42.2 (27-Mar-2012)
tune2fs 1.42.2 (27-Mar-2012)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@localhost arminius]# diskdrake\
>
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/lib/libDrakX/mygtk2.pm line 20.
tune2fs 1.42.2 (27-Mar-2012)
[root@localhost arminius]# diskdrake
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/lib/libDrakX/mygtk2.pm line 20.
dumpe2fs 1.42.2 (27-Mar-2012)
resize2fs 1.42.2 (27-Mar-2012)
Resizing the filesystem on /dev/sdb1 to 732565752 (4k) blocks.
Begin pass 1 (max = 5973)
Extending the inode table     resize2fs: Invalid argument while trying to resize /dev/sdb1
Please run 'e2fsck -fy /dev/sdb1' to fix the filesystem
after the aborted resize operation.
[root@localhost arminius]# e2fsck -fy /dev/sdb1
e2fsck 1.42.2 (27-Mar-2012)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
newvids: 11/134217728 files (0.0% non-contiguous), 8474650/536870911 blocks
[root@localhost arminius]# diskdrake
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/lib/libDrakX/mygtk2.pm line 20.
dumpe2fs 1.42.2 (27-Mar-2012)

(diskdrake:13329): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
dumpe2fs 1.42.2 (27-Mar-2012)
resize2fs 1.42.2 (27-Mar-2012)
Resizing the filesystem on /dev/sdb1 to 732565752 (4k) blocks.
Begin pass 1 (max = 5973)
Extending the inode table     resize2fs: Invalid argument while trying to resize /dev/sdb1
Please run 'e2fsck -fy /dev/sdb1' to fix the filesystem
after the aborted resize operation.


nothing I tried allowed me to resize it above 2TB.
anyone got idea's?
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: problem formatting a 3TB hard drive.

Postby arminius » Aug 14th, '12, 14:15

I was able to split the drive into 2 X 1.3 TB drives, that's better then nothing, but really want it to be 1 whole partition.
so if anyone can suggest a solution I would be hugely grateful.
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: problem formatting a 3TB hard drive.

Postby tom_ » Aug 14th, '12, 20:30

try as normal user:

Code: Select all
su -
diskdrake


the command "su -" is mandatory if you want to use a graphic application when you are root
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: problem formatting a 3TB hard drive.

Postby madeye » Aug 14th, '12, 20:50

Are you using MBR or GPT partition table? If I remember correctly there may be problems using MBR for such a large partition.

You could try using parted (or gparted if you want GUI version) to do the partitioning. It can also create a GPT table on the drive instead of the MBR if you want to try that.

EDIT: Found the following info on wikipedia
Code: Select all
For disks with 512-byte sectors, the MBR partition table entries allow up to a maximum of 2.20 TB (2.20 × 1012 bytes)

https://en.wikipedia.org/wiki/GUID_Partition_Table
- Madeye

When I supply commands in an answer, please make sure you understand them before you run them! Use google or man to check!
User avatar
madeye
 
Posts: 110
Joined: Jul 23rd, '11, 12:36
Location: Aabenraa, Denmark

Re: problem formatting a 3TB hard drive.

Postby arminius » Aug 15th, '12, 07:25

Can mkfs be made to format in GPT?
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: problem formatting a 3TB hard drive.

Postby madeye » Aug 15th, '12, 09:27

mkfs doesn't care if it is MBR or GPT. So that will not be a problem.

But not all partitioning tools can use GPT. parted can handle just about anything. But fdisk and cfdisk can only handle MBR.
There is also a tool called gdisk (or gptdisk) that can handle GPT partitions.

For parted see:
http://plone.lucidsolutions.co.nz/linux/io/using-gnu-parted-to-create-a-gpt-for-a-device-2tb

for gptdisk see:
http://rodsbooks.com/gdisk/
- Madeye

When I supply commands in an answer, please make sure you understand them before you run them! Use google or man to check!
User avatar
madeye
 
Posts: 110
Joined: Jul 23rd, '11, 12:36
Location: Aabenraa, Denmark

Re: (SOLVED) problem formatting a 3TB hard drive.

Postby arminius » Aug 15th, '12, 15:31

thank you madeye, that's now formatted to 2.5TB
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby hintzy64 » Jan 30th, '13, 02:19

Thanks for this. I just bought the same drive and ran into the same problem. I installed the new, unformatted drive and diskdrake only saw it as 2 TB. I tried to create the 3 TB partition with palimpsest instead, but then diskdrake said the partition table was corrupted so it wouldn't mount it. Gparted was able to create a GPT table and a 3 TB partition that diskdrake recognizes. The drive is mounted and data is copying to its new home. :)
There are 10 types of people in this world: those who understand binary and those who don't.
---
Biostar A770E3, AMD Phenom II X4 975 Black Edition (Quad 3.6 GHz), 8 GB DDR3, Sapphire Radeon Pulse RX 580, 8 GB GDDR5
User avatar
hintzy64
 
Posts: 29
Joined: Oct 29th, '12, 01:50
Location: Maryland, USA

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby magfan » Feb 1st, '13, 09:59

Here is, once again, to be mentioned that diskdrake seems to use fdisk per default. After installing gdisk from the repositories mcc/diskdrake should be able to handle huge harddrives properly.

https://forums.mageia.org/en/viewtopic.php?f=7&t=3855
https://forums.mageia.org/de/viewtopic.php?f=7&t=596&p=7129&hilit=gdisk#p7125
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby hintzy64 » Feb 1st, '13, 16:07

Good to know, thanks. I've got the disk set up now, but will go ahead and install gdisk anyway. Will diskdrake know to use gdisk or will I have to change a setting?
There are 10 types of people in this world: those who understand binary and those who don't.
---
Biostar A770E3, AMD Phenom II X4 975 Black Edition (Quad 3.6 GHz), 8 GB DDR3, Sapphire Radeon Pulse RX 580, 8 GB GDDR5
User avatar
hintzy64
 
Posts: 29
Joined: Oct 29th, '12, 01:50
Location: Maryland, USA

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby magfan » Feb 1st, '13, 16:16

I did not have to change any settings. After installing gdisk with mcc I immediately switched to diskdrake in mcc - and everything was working. There were no problems when I tried to partition a 10TB RAID.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby hintzy64 » Feb 1st, '13, 17:05

As I mentioned in the other thread, the default should probably be changed to gdisk for upcoming releases. I bought my 3 TB drive because prices are dropping, and large RAIDs like yours are becoming increasingly popular. I was mildly surprised it didn't "just work" with MCC/diskdrake, but was confident I'd find a quick solution here. (And I did!) Unfortunately, many other people aren't that patient. Seeing the reactions some new users have posted when wireless (which is notoriously fickle) doesn't always work OOTB, it would be bad if the Mageia installer couldn't handle their hard drives. Just my two cents. :)
There are 10 types of people in this world: those who understand binary and those who don't.
---
Biostar A770E3, AMD Phenom II X4 975 Black Edition (Quad 3.6 GHz), 8 GB DDR3, Sapphire Radeon Pulse RX 580, 8 GB GDDR5
User avatar
hintzy64
 
Posts: 29
Joined: Oct 29th, '12, 01:50
Location: Maryland, USA

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby doktor5000 » Feb 1st, '13, 20:56

magfan wrote:I did not have to change any settings. After installing gdisk with mcc I immediately switched to diskdrake in mcc - and everything was working. There were no problems when I tried to partition a 10TB RAID.

Would you be so kind to document that in Errata? https://wiki.mageia.org/en/Mageia_2_Err ... are_Issues
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby magfan » Feb 6th, '13, 12:20

doktor5000 wrote:
magfan wrote:I did not have to change any settings. After installing gdisk with mcc I immediately switched to diskdrake in mcc - and everything was working. There were no problems when I tried to partition a 10TB RAID.

Would you be so kind to document that in Errata? https://wiki.mageia.org/en/Mageia_2_Err ... are_Issues


Done.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: [SOLVED] problem formatting a 3TB hard drive.

Postby doktor5000 » Feb 6th, '13, 21:26

Thanks, looks fine :D
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest