Mount ntfs partition as before login
In Ubuntu ntfs partitions self-assemble the first time we opened from Nautilus. But sometimes this is not the most appropriate and need to be available any more into our session. For example, if your music collection is on the ntfs partition and open Rhythmbox, not being mounted lost collections.
Open a terminal in the usual way with CTRL + ALT + T or from Applications -> Accessories -> Terminal.
We need to know how they are distributed partitions on your hard drive. For this we use the following command:
sudo fdisk -l
We will show something like:
Device Boot Start End Blocks Id System
/ Dev/sda1 1 19123 153600000 7 HPFS / NTFS
/ Dev/sda2 19124 60801 334778504 + 5 Extended
/ Dev/sda5 19124 19366 1951866 82 Linux swap / Solaris
/ Dev/sda6 * 19367 21278 15358108 + 83 Linux
/ Dev/sda7 26662 60801 274229518 + 83 Linux
In my case the first partition (/ dev/sda1) is what we ride. Each must be tailored to your particular case.
We need a mount point for the partition to be visible in the Ubuntu file system. We do this with the following command:
sudo mkdir /media/ntfs
We have created a directory called "ntfs" where we can mount the partition "/ dev/sda1".
Let's make a backup of the file "fstab". As a precaution, in case we need to leave things as they were before. The file "fstab" contains a table of file systems to be mounted at boot Ubuntu. The copy we make the following order:
sudo cp /etc/fstab /etc/fstab.bak
In the next step we will edit the file "fstab" to add our ntfs partition. We adapt to our case. Remember that in my case is in "/ dev/sda1" and the mount point "/ media / ntfs". Open "fstab" with the following order:
sudo gedit /etc/fstab
and we add at the end of the file the following (adapted to each particular case):
/ Dev/sda1 / media / ntfs ntfs default 0 0
Save the file and do a Checkout causing it to reread the fstab with the following command:
sudo mount -a
with this should now be mounted ntfs partition every time you boot Ubuntu.





















February 6th, 2011 at 18:51
In Fedora not to do anything about it, self-assemble ntfs partitions alone.