Adding new hard drive to (Ubuntu) home subversion server

Fitted 500 Gig hard drive to machine
Booted into BIOS and auto detected new drive
sudo fdisk -l (and note the name of the new drive, in my case sdb)
sudo mkdir /mnt/nameofnewmountpoint
sudo chmod 777 /mnt/nameofnewmountpoint
sudo mkfs.ext3 /dev/sdb
sudo gedit /etc/fstab
Added the following line (seperate each field with a tab)
/dev/sdb /mnt/nameofnewmountpoint ext3 defaults 0 0
Mounted the drive without rebooting
sudo mount -a
df to see results

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s