Quantcast
Viewing all articles
Browse latest Browse all 18

Adding a Second Drive to your Ubuntu Server

Finding the New Hard Drive in Ubuntu
Only One Drive you should see this

ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5

Adding a second drive you should see this
ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb

Creating Linux Partitions

sudo fdisk /dev/sdb

Then type P

Then N

Then P

Select 1

After this take the defaults.

Then W

Now you shod see this
ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb /dev/sdb1

Creating a File system
sudo mkfs.ext3 -L /ocdata /dev/sdb1

Mounting
sudo mkdir /ocdata
sudo mount /dev/sdb1 /ocdata

Auto Mounting when rebooting
sudo nano /etc/fstab
Add this line to the bottom of the file.
/dev/sdb1 /ocdata auto defaults 0 0


Viewing all articles
Browse latest Browse all 18

Trending Articles