Adding a second hard drive in Ubuntu

Posted by on January 12, 2012 in Operating Systems, Ubuntu | 0 comments

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:

  1. 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
  2. Start the formatting.
    sudo fdisk /dev/sdb
    1. Press u & enter
    2. Press n & enter
    3. Press p & enter
    4. Press 1 & enter
    5. Press enter
    6. Press enter again
    7. Press w & enter
  3. Format the drive. It will take some time especially with large drives.
    sudo mkfs -t ext3 /dev/sdb1
  4. Create a mount point.
    sudo mkdir /path/to/newdrive
  5. Put your new drive in /etc/fstab so that it will mount automatically.
    /dev/sdb1 /path/to/newdrive ext3 defaults 0 2
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>