Format a drive in Ubuntu

Do you happen to know the device name?Something like /dev/sdb or /dev/hdb

have a look at dmesg to see if you can find what name it has.

Code:
dmesg | less

************************************************** ************

WARNING!!!! The following will destroy any information on the partition.
Use with caution as you could wipe all information on your system

************************************************** ************

Note – Do the following as root or insert sudo in front of the following commands.

Lets say the device name is /dev/sdb

I like cfdisk but I am sure others will have different suggestions

***** WARNING – Did you read the warning above about wiping your disk *****

Code:
cfdisk /dev/sdb

That will let you make a partition for Linux. You can delete the old ntfs partition to free up space.

Once you have a partition you refer to it with /dev/sdb1 or /dev/sdb2 etc depending on how you set up the partitions.

Everyone has there own thoughts on what file system type is best for what type of load but for this lets just use the default ext3 on the first partition on the sdb drive.

***** WARNING – Just to get the message across this will destroy the information on /dev/sdb1 so make sure you have the correct partition *****

Code:
mke2fs -j /dev/sdb1

Now you have a file system on the partition so we need to mount it.

If you have an existing web root like /var/www then move that out of the way.

Code:
mv /var/www /var/www.orig

Now make the mount point and mount the new file system.

Code:
mkdir /var/www
mount /dev/sdb1 /var/www

Check that it all worked. See that the system can find the new disk

Code:
df -h

To get the system to auto mount the new disk at each boot you need to add an entry to the /etc/fstab file. I will leave that for you

 

https://help.ubuntu.com/community/Fstab