Call Now - 1-800-921-IRON
Main Menu
Support Center Home
Open a Ticket
My Ticket History
Browse Knowledgebase
My Account

Login
 E-mail:
 Password:
Register | Forgot Password?

Knowledgebase
Ask a question using natural language. Try to include as much information as possible:


Contact Us
Iron Systmes Inc.
540 Dado St.
San Jose, CA 95131
USA

Phone: (408) 943-8000 x 216

Fax: (408) 943-8101

Knowledgebase
Mouting more than 2TB under Linux
Top : Linux

Article ID: 000005
Rating: 5.0 / 5.0 (4 votes)
Views: 4247

Problem
Default formatter under Linux fdisk doesnt format partitions more than 2TB. Workaround is described below.

Solution
Enter a shell script, and type: parted /dev/sda or wahever drives need to be formatted

We will have to make the label for the partition.
At the (parted prompt, type:

(parted)mklabel gpt <enter>

The disk geometry for your disk array will be displayed.

Next type:

(parted)p <enter>

This will show you the disk geometry in megabytes for your array (/dev/sda). In your case it would show:

Disk geometry for /dev/sda: 0.000-4800GB

(parted) mkpart
Partition type? [primary]? primary
File system type? [ext2]? ext2
Start? 0
End? 4800
The partition is now created. You can use mkfs to format it.

(parted)mkfs 1 /dev/sda1).

(parted)q



Note: When you use parted to display the partition size (e.g. the p command in parted), it will show an incorrect value for the 'End'. However, the 'Disk geometry' will be displayed correctly.
This would be the display for a 4.3 TByte array with parted:

(parted) p
Disk geometry for /dev/sda: 0.000-4800GB
Disk label type: gpt
Minor Start End Filesystem Name Flags
1 0.017 525335.983 ext3

The '4800' value is correct for GB, but the '525335.983' is incorrect for the End value (it is too small).

After doing this we have to make the partition ext3 as parted doesnt support ext3.

# tune2fs -j /dev/sda2

And you are done. Dont forget to make entries in the fstab file to mount the new made filesystem.

Rating
Did you find this article helpful?

Related Articles
Mounting more than 2TB under FreeBSD

Copyright © 1996-2009 Iron Systems, Inc. All Rights Reserved.