Step 1.
sudo fdisk -l
This command will list down all devices (drives) connected to your machine
Sample output can be as follows
Disk /dev/sda: 20.0 GB, 20020396544 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 83 Linux
/dev/sda2 1276 2434 9309667+ 5 Extended
/dev/sda5 1276 2388 8940141 83 Linux
/dev/sda6 2389 2434 369463+ 82 Linux swap / Solaris
Step 2.
Install partion creator program in ubuntu
sudo apt-get update
sudo apt-get install gparted gksu
gksudo gparted
Step 3.
sudo mkdir /storage
This will create a directory where partition will be mounted
Step 4.
ls -l /dev/disk/by-uuid
List down uuids for all drive’s partitions.
Sample output can be as follows
lrwxrwxrwx 1 root root 10 2009-11-04 17:05 069427AD94279E65 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-11-04 17:05 82b11ae0-e4c9-4e95-9518-06a337659dfb -> ../../sda5
lrwxrwxrwx 1 root root 10 2009-11-04 17:05 EA902C94902C6971 -> ../../sda7
Step 5.
sudo cp /etc/fstab /etc/fstab_backup
Take back up of original file
sudo gedit /etc/fstab
Edit original file and add following line to that.
Step 6
sudo mount -a
Mount all partitions
Step 7
sudo chown -R username:usergroup /storage
sudo chmod -R 755 /storage
UUID=82b11ae0-e4c9-4e95-9518-06a337659dfb /storage ext3 defaults 0 0
No comments:
Post a Comment