Adding a second hard drive in Ubuntu
Adding drives in Ubuntu is fairly straightforward. When you install them, Ubuntu assigns them an sdX identifier, where X is a,b,c, etc. depending on how many drives you have installed. These instructions work with whatever number harddrive you’re installing, just change the b to whatever letter Ubuntu has assigned your new drive.
Steps:
- Find out what your new drive is assigned. You’ll see a drive with no details. That should be your new drive.
sudo fdisk -l
- Start the formatting.
sudo fdisk /dev/sdb
- Press u & enter
- Press n & enter
- Press p & enter
- Press 1 & enter
- Press enter
- Press enter again
- Press w & enter
- Format the drive. It will take some time especially with large drives.
sudo mkfs -t ext3 /dev/sdb1
- Create a mount point.
sudo mkdir /path/to/newdrive
- Put your new drive in /etc/fstab so that it will mount automatically.
/dev/sdb1 /path/to/newdrive ext3 defaults 0 2