Step 1. If you are trying to format or partition your hard drive it is assumed that bios is able to detect the device. To determine the path and other specific information about your drive open a terminal window and enter this command:
"sudo lshw -C disk"
Step 2. After entering this command Ubuntu should return something similar to this. Take note of the "logical name" because this will be used throughout the partitioning process if done via terminal window.
Step 3. The part we will be most concerned with will be the hard drive information that is displayed in the terminal window.
If you plan on using the hard drive only for Ubuntu then the recommended filesystem to use is either ext3/ext4 depending on whether or not you need backwards compatibility with previous versions of Linux. If you will need to share files between Ubuntu and Windows machines fat 32 is the recommended file system to use, but NTFS will also work well also.
Step 4. After clicking Create a Partition you will see a screen similar to the one above. Here you can adjust the size of your partition as well as its type and name. You can also have Ubuntu take ownership of the filesystem. This prevents you from loading a different OS on it. Also you may be unable to read the drive from certain OS.
Finish. That's it. Your drive is now formatted/partitioned. Repeat as needed.
You can change the type of partition that will be created based on your own needs. This website will provide you with all the information you will need to decide which partition scheme to use, as well as the partition type most appropriate for your needs.
The program you will use to do this is fdisk. You will need to refer back to the logical name of your drive found earlier to use this method.
Step 1. Start fdisk with this command
Step 2. Press "m" then hit enter. This will return a menu like the one below showing all of the available commands for the fdisk program.
If you want to make a new partition on an already partitioned drive you will need to free up space for the new partition be re-sizing the old one.
If you navigate to system, then administration, then partition editor you will be able to re-size the existing partition.
First you will need to un-mount the drive if it is currently mounted. You will never be able to alter partitions on a mounted drive.
To resize the partition simply click re-size and drag the handles to the appropriate size or type the size you want into the free space Mib box.First you will need to open Terminal and edit the file /etc/fstab using the following command:
sudo gedit /etc/fstabThen add this line to the end of the file for ext3 filesystems:
With the disk now partitioned and formatted you will need to create a place to mount this drive. Use this command to make a new directory, in this example "/media/yourdirve" will be the mount point.
sudo mkdir /media/yourdrive
To manually mound this drive use the command below.
sudo mount /dev/sdb1 /media/yourdrive