Mount hard drive partition for Linux user
I'm running Linux Mint 22 & wanted to mount a hard drive partition for a user & give them ownership. Here are the Linux command line incantations I used, based on this post:
I want to create a mount point to the data partition at /mnt/data.
1) We need the UUID of the partition to mount as /mnt/data. This command lists the partitions, including their relevant UUIDs:
$ sudo blkid
2) Create the mount point for the partition:
$ sudo mkdir /mnt/data
3) Assign the partition to this mount point by editing /etc/fstab, as root. Add this line:
UUID={uuid from step 1} /mnt/data ext4 defaults 0 0
4) Mount the drive by, as described by /etc/fstab:
$ sudo mount -a
5) Change owner of mount point so that my local account can use it:
$ sudo chown {user name} /mnt/data












