I have installed elementary OS freya installed on a drive which also contains another ntfs partition which I would like to mount at system startup.
Is there a way I can do this?
elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up.Sign up to join this community
Easy to set up using fstab. Run
and you should get something like this:
/dev/sda1: UUID="b9377d9b-639f-47da-ae99-efe277eb56b3" TYPE="ext4" /dev/sdb1: LABEL="Backup 1" UUID="6177d371-80e4-49bd-bb77-de269e175c97" TYPE="ext4"
Save the UUID of the partition you want to mount. If you are unsure of the partition you want to mount use
sudo fdisk -l to get more details of the partition.
Now edit your
sudo -i scratch-text-editor /etc/fstab
Add the following lines to your file:
#Windows Partition UUID=<xxxxx> <mount point> ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000 0 0
You must replace the
<xxxx> with your UUID and
<mount point> with your desired mount point.
For the mount point you can choose something like
/media/<user>/windows (which is the standard mount point for other partitions) or create a folder (without spaces) in your home directory and use
/home/<user>/<folder> as the mount point.
Your file should look like this in the end:
# /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> # / was on /dev/sda1 during installation UUID=b9377d9b-639f-47da-ae99-efe277eb56b3 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation #UUID=89bfd6b9-b2be-41c1-8c9f-5e7e5cb738d3 none swap sw 0 0 /dev/mapper/cryptswap1 none swap sw 0 0 #Windows Partition UUID=b9377d9b-639f-47da-ae99-efe277eb56b3 /media/tim/windows ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000 0 0
After editing the file you should run:
sudo mount -a
If it returns any error, Do not Reboot (your PC may fail to restart), as you probably have some error in the mount point.
If everything goes well you should see your partition mounted.
i use PySDM, it easy way to auto mount my partitions, step to do: