In a multi boot Windows-Linux scenario, there are cases that you may want your NTFS/vFat partitions to be automatically mounted during boot. Specially when you have a shared NTFS data partition.
There are several ways to accomplish this ..
.. the most definite solution is to edit `/etc/fstab`. The fstab file contains filesystem entries which is necessary for the mountall upstart init process to mount partitions during boot time.
But in my case, I’ll use hassle free ‘NTFS Configuration Tool‘ which will automate things for us. `ntfs-3g` driver is required to provide full read-write support for the NTFS partition and `gksu` to run NTFS Configuration GUI with root privileges.
sudo apt-get install ntfs-3g ntfs-config
sudo apt-get install gksu
Search for and open ‘NTFS Configuration Tool’ from the Unity Dash.
In the window that appears select the partitions you want to configure. Here, I would prefer to have only my storage partition mounted. Just tick ‘Enable write support for internal device’.
NTFS-Config Utility will backup the orginal fstab file, so we can easily review the changes that were made by the application. To review the changes,
|# Sample /etc/fstab for dual boot BTRFS system|
|# Entry for Linux root :|
|# Entry for EFI partition :|
|# Entry for Ubuntu Home :|
|# Entry for shared storage partition :|
- [DUMP] enables backing up of the device and is usually set to 0.
- [PASS] entry is used to enable disable fsck checks on the devices during boot time. Root partition is set to 1 for the highest priority, except for BTRFS filesystems which does not require integrity checks (according to btrfs.wiki.kernel.org), so should set to 0.
Non-Unix filesystem types such as ntfs and ntfs3g are set to 0.
EXT4, NTFS Fstab example:
To manually edit the fstab,
# List all your partitions with their corresponding UUIDs sudo lsblk --fs # Edit fstab sudo gedit /etc/fstab
Once saved, restart for the changes to take effect.