Google

2006-08-08

Creating A New Partition in Ubuntu Dapper



When I was installing my Ubuntu Dapper, I had not really used up all the space. In fact, I had left about 250GB free space. Today I wanted to use up that space...

First, I checked my partitions
adil@ahlnx:/etc$ sudo fdisk -l Disk /dev/hde: 300.0 GB, 300090728448 bytes 255 heads, 63 sectors/track, 36483 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hde1 * 1 3187 25599546 7 HPFS/NTFS /dev/hde2 3188 36483 267450120 7 HPFS/NTFS Disk /dev/hdf: 300.0 GB, 300090728448 bytes 255 heads, 63 sectors/track, 36483 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdf1 1 4613 37053891 83 Linux /dev/hdf2 4614 4740 1020127+ 82 Linux swap / Solaris /dev/hdf3 4741 5633 7173022+ 83 Linux
So, I could have simply run
  • sudo mkfs.ext3 /dev/hdf4
but I wanted to use Gnome Partition Tool. So,
  • sudo apt-get install gparted
After the installation, I ran it (also available System > Administeration > Gnome Partition Editor)
  • gksudo gparted
Tool is very intuitive! Simply select the /dev/hdf from up on right side on the toolbar and then click the empty space, click "New" & choose the size. Then "Apply".

After partitioning done, it advised that I reboot the server...

No comments: