Posted by: rakitha | February 1, 2010

How to Mount Windows Partition as a Separate Directory

First you need to get the UUID of the partition to be mount.

ls -l /dev/disk/by-uuid/

the terminal display

lrwxrwxrwx 1 root root 10 2010-01-31 17:29 00E8255CE82550E8 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-01-31 17:29 3ce8501a-eb40-41fb-8073-68d0913a130e -> ../../sda5
lrwxrwxrwx 1 root root 10 2010-01-31 17:29 4234D3E134C3D5C7 -> ../../sda2

and the file system. If the partition is a windows then it can be ntfs or FAT32.

Then create a directory to mount this partition.

mkdir MS_Vista

Now we need to edit the fstab file. First create a backup copy of that.

sudo scp /etc/fstab /etc/fstab_backup

Then open the fstab file.

emacs /etc/fstab

and enter the following entry

UUID=4234D3E134C3D5C7 /home/rakitha/MS_Vista ntfs defaults 0 0

The UUID is the third entry in the list of UUIDs.

Now mount the partition using,

sudo mount -a

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

Categories

%d bloggers like this: