Wednesday, 30 December 2009

Add a new hard drive in Ubuntu

There is a very good guide from Ubuntu community. (https://help.ubuntu.com/community/InstallingANewHardDrive)

1. Get the drive information; (sudo lshw -C disk)
2. Install GParted; (sudo apt-get install gparted)
3. Partition and format the hard drive;
4. Create a mounting point; (sudo mkdir /media/mynewdrive)
5. Automatic mount at boot; (Edit fstab and put line '/dev/sdb1 /media/mynewdrive ext3 defaults 0 2' at the end)
6. Allow the specific group user to access;
sudo chgrp plugdev /media/mynewdrive
sudo chmod g+w /media/mynewdrive
sudo chmod +t /media/mynewdrive

No comments: