Home / Uncategorized / How to manually mount a partition? | How to make partitions mount at startup?

How to manually mount a partition? | How to make partitions mount at startup?

Example of a fstab file on Ubutu

******

# /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/sdc6 during installation
UUID=11e1eab7-8af9-49e5-86b6-3b3762d58689 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc5 during installation
UUID=f105bb69-4849-448f-8774-2bf415ad33bf none swap sw 0 0

UUID=01D59648D6B649A0 /media/software ntfs errors=remount-ro,auto,exec,rw,user 0 0
#UUID=01D51E5BB88C5740 /media/backup ntfs errors=remount-ro,auto,exec,rw,user 0 0
UUID=01D52F0506F83750 /media/xampp ntfs errors=remount-ro,auto,exec,rw,user 0 0

******

On Terminal type and note the UUID
sudo blkid

Open the fstab file with terminal on nano or sublime

sudo subl /etc/fstab

Common setup:
UUID=<uuid> <pathtomount> <filesystem> defaults 0 0
Get a practical example (/media/software to mount it exactly on where partition gets mounted
when you click on them)
UUID=01D52F0506F83750 /media/xampp ntfs errors=remount-ro,auto,exec,rw,user 0 0

Hits: 35