Archive

Posts Tagged ‘uuid’

mount an NTFS partition automatically upon boot

July 30, 2015 Leave a comment

Problem
You want to mount an NTFS partition automatically upon boot.

Solution
It is nicely explained here: https://wiki.archlinux.org/index.php/NTFS-3G#Configuring . 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

Problem
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.

Solution

$ 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.

U

Categories: bash Tags: , , ,