ComTech: IT Support Stirling
TwitterFacebookGoogle

How to format a hard drive using GParted


Yesterday I showed you how to format a hard drive using FDisk but a lot of people are not comfortable using the command line so today I will show you how to use GParted – which uses a GUI.

For the purpose of this tutorial I will be using GParted on Ubuntu 12.04 and formatting a 131Mb USB penstick (remember those!!) with ntfs.  GParted is not installed by default on most Linux distributions so either download and install it using your package manager or open up a terminal and type:

sudo apt-get install gparted

Type your password when prompted.  When you open up GParted you should get a screenshot similar to the one below.

First thing we need to check is that the hard drive is not mounted so highlight it, right click and go to unmount.

Now we need to clear any existing partitions on the hard drive so again highlight the drive and click on Delete the selected partition (shown below).

Now it is time to make a new partition so click on Partition and then New.

For the purpose of this tutorial I will be using the whole device and changing File System to ntfs.  When you are happy click Add.  You will then be asked to confirm your selection.

All that is left to do is apply the operation so click on Apply All Operations (shown below)

GParted will now format the hard drive and install the ntfs file system on it.

About the Author

P1020114

Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter

 

How to format a hard drive on Ubuntu 12.04 using Fdisk


Today I will show you how to format a hard disk using Fdisk.  Fdisk comes already installed on most modern Linux distributions by default.

For the purpose of this tutorial I will be using Fdisk on Ubuntu 12.04 to format a 16Gb USB penstick with the ntfs file system.

First we need to see what our 16Gb USB penstick is mounted as so open up a terminal and type:

sudo fdisk -l

and type your password when prompted.  You should get a screenshot similar to the one below.

In this case my 16Gb USB penstick is mounted at /dev/sdc1.

Next type:

sudo fdisk /dev/sdc1

and you should get the command prompt shown below.

Now we need to check the existing partitions on the penstick so type:

p

to get the screenshot below.

Now we know what is on the drive it is time to delete it so type:

d

You will then be asked for the partition number (1-4).  In my case I have 4 partitions on the disk and I need to delete them all.  So I will type 1 and this will erase the 1st partition only.  I would then be left with partitions 2 – 4 and to remove these I would repeat the procedure until all the partitions have been erased.

We now need to set up the new partition so in your terminal type:

n

Because this is the first partition on the drive type:

p

You will now be asked for a partition number.  Choose 1 and then press return.  When asked to specify the First Sector choose the default by pressing Return.  Again accept the default Last Sector by pressing Return.

Now that the partition parameters have been specified we need to write them to the hard drive and we do that by typing:

w

All that is left to do is to make the filesystem on the hard drive and to do that we type:

sudo mkfs -t ntfs /dev/sdc1

Next time I will show you how to accomplish the same task using GParted (for those who like a GUI).

About the Author

P1020114

Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter

 

CyberChimps
Follow

Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates