Saturday, October 12, 2013

Auto Mount Partitions In Ubuntu 13.10 (12.**)




Step1: Install ntfs-3g

sudo apt-get install ntfs-3g

Step2:

Get the “sda” number for the partition which needs to be auto mounted. To find this use the two commands


sudo fdisk -l

sudo blkid







STEP 3:


Then, create the mount point for that device:
sudo mkdir /media/musicdrive

STEP 4

Open /etc/fstab file for editing:
gksudo gedit /etc/fstab


and add the line of code below to the last part of the file:
/dev/sda2 /media/musicdrive ntfs-3g defaults 0 0                     


for windows partition instead of /dev/sda.. UUID number is used.


Copy of fstab


# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda9 during installation
UUID=01a9cdf0-e55c-4669-9220-ecd9bd5d38cb /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda7 during installation
UUID=0758fa40-d29b-4975-940f-4942ea0adc8c none            swap    sw              0       0
/dev/sda3 /media/Academic ntfs-3g defaults 0 0
/dev/sda5 /media/Media ntfs-3g defaults 0 0
UUID=84C23259C2324FA2 /media/Windows          ntfs-3g defaults 0 0   

No comments:

Post a Comment