Updated to use UUID for mounting

Anthony Vadala 2019-05-15 09:09:23 -04:00
parent 2c80ab84e6
commit e36e1f6e81

@ -16,7 +16,7 @@ Create a mount point for the NTFS game disk:
$ sudo mkdir /media/gamedisk $ sudo mkdir /media/gamedisk
``` ```
Find the User ID, Group ID, and attached disk partition using the following commands: Find the User ID, Group ID, attached disk partition, and the UUID using the following commands:
**User ID** **User ID**
``` ```
@ -37,14 +37,29 @@ It should be labeled similar to `/dev/sda2`
*The trailing letter and number (a2) will depend on how many disks are attached.* *The trailing letter and number (a2) will depend on how many disks are attached.*
**UUID**
```
$ sudo blkid
```
Find the line where the first column matches the label of the `fdisk` command.
For example, `/dev/sda2` would match this line:
```
...
/dev/sda2: UUID="38CE9483CE943AD8" TYPE="ntfs"
...
```
Copy the UUID.
## Editing fstab ## Editing fstab
Edit the *fstab* file to mount the partition: Edit the *fstab* file to mount the partition:
``` ```
$ sudo nano /etc/fstab $ sudo nano /etc/fstab
``` ```
At the bottom of the file, add the following line (changing sda2, uid, and gid to where needed): At the bottom of the file, add the following line (changing UUID, uid, and gid where needed):
``` ```
/dev/sda2 /media/gamedisk ntfs uid=1000,gid=1000,rw,user,exec,umask=000 0 0 UUID=38CE9483CE943AD8 /media/gamedisk ntfs uid=1000,gid=1000,rw,user,exec,umask=000 0 0
``` ```
*On Ubuntu, as long as `ntfs-3g` is installed using `ntfs` as the filesystem type will work* *On Ubuntu, as long as `ntfs-3g` is installed using `ntfs` as the filesystem type will work*