Automount windows NTFS partition in fedora on dual boot system

Hi, I have a dual boot windows/fedora.

The ntfs windows partition is not automatically mounted on fedora. From the file explorer (Dolphin) I need to click on the ntfs partition and manually mount it. I am required for root password in order to do so. All this is quite annoying. I just want my partition mounted on boot.

Here is howwe solved this:

We need to add a line in /etc/fstab file corresponding to our partition.

We can  identify the partition by its device name or UUID. With so many devices connected through usb ports which can result in device name to change it is better to identify the partition by its UUID.

1. Search UUID identifier (found on this post)

blkid
#Ouput is
/dev/sda3: LABEL="OS" UUID="6804ED3B04ED0D3E" TYPE="ntfs"
/dev/sda5: UUID="e2383c91-8f8f-4538-be86" TYPE="swap"
/dev/sda6: LABEL="_Fedora-16-x86_6" UUID="147697b5-22" TYPE="ext4"

2. Search for your user name and group, in the file /etc/password. In mine, I find:

esalagea:x:1000:1000:my full name:/home/esalagea:/bin/bash

Mu uid and gid are 1000 and 1000.

3. Add a new entry in the file /etc/fstab

UUID=6804ED3B04ED0D3E   /media/OS       ntfs    defaults,uid=1000,gid=1000,rw   0 0

I needed to specify uid and gid in the fstab entry so that the partition does not get mounted with owner root.

We can try it now (without reboot)

 mount /media/OS

That’s it. It will automatically mount on boot.

Advertisements
This entry was posted in linux and tagged , , , , , . Bookmark the permalink.

One Response to Automount windows NTFS partition in fedora on dual boot system

  1. revanth says:

    Hi,Thats a very nice trick but if I mount the drives using this technique I feel the total performance of disk read and write decreased.Are their any such drawbacks with this technique or is it just me?

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