linux parted formatting

I am using a very large disk for data and fdisk doesn't work for anything over 2TB in size. This is where parted is need. Here are the command I used to get it partitioned and formatted.

I first ran fdisk -l to figure out the device name. In my case it was sdb
fdisk -l
Then once I got the device name I ran:
parted /dev/sdb
In the parted controls
(parted) mklabel
New disk label type? gpt
Then I ran:
(parted) mkpart                                                           
Partition name?  []?                                                      
File system type?  [ext2]? ext3                                           
Start? 0                                                                  
End? 5997.9GB
Then I exited:
(parted) quit
Now I formatted the new RAID device:
mkfs.ext3 -b 4096 /dev/sdb1
That is all, it takes a while to format large devices, have fun


Popular posts from this blog

Console over SSH (ONTAP)

Brocade Zone Setup

OpenSolaris ZFS Setup