Posts Tagged ‘uuid’

mount an NTFS partition automatically upon boot

July 30, 2015 Leave a comment

You want to mount an NTFS partition automatically upon boot.

It is nicely explained here: . To figure out the UUID of a partition, see my previous post.

Once you modified the /etc/fstab file, you can test your settings without restarting your machine. Make sure that the partition is unmounted and mount everything with the command “sudo mount -a“. Verify if it’s mounted correctly.

Categories: linux Tags: , ,

get the UUID of a partition

July 30, 2015 2 comments

You want to figure out the UUID of a partition. For instance, you want to mount a partition upon boot and thus you want to add it to your /etc/fstab.


$ sudo blkid

The blkid program … can determine the type of content (e.g. filesystem or swap) that a block device holds, and also the attributes (tokens, NAME=value pairs) from the content metadata (e.g. LABEL or UUID fields).” (source: man)

Update (20150803)
As msx pointed out in the comments, you can also write “lsblk -f“, which doesn’t require sudo rights at all.


Categories: bash Tags: , , ,