From e36e1f6e812f2a919fd2be855761f9eda48a3612 Mon Sep 17 00:00:00 2001 From: Anthony Vadala Date: Wed, 15 May 2019 09:09:23 -0400 Subject: [PATCH] Updated to use UUID for mounting --- Using-a-NTFS-disk-with-Linux-and-Windows.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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*