diff --git a/Using-a-NTFS-disk-with-Linux-and-Windows.md b/Using-a-NTFS-disk-with-Linux-and-Windows.md index 16facf0..5663288 100644 --- a/Using-a-NTFS-disk-with-Linux-and-Windows.md +++ b/Using-a-NTFS-disk-with-Linux-and-Windows.md @@ -16,7 +16,7 @@ Create a mount point for the NTFS game disk: $ 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** ``` @@ -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.* +**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 Edit the *fstab* file to mount the partition: ``` $ 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*