2024-08-31, 06:24 PM
(This post was last modified: 2024-08-31, 06:29 PM by Exact3081. Edited 1 time in total.)
Thank you - I will try this now. One thing I am understanding though is that part of the command is a unique identifier for this particular external USB:
I just copied and pasted it from the other discussion, hence I think that this is the unique ID for the other posters drive, would that be correct?
I searched and found this command to try discover the IDs of my drives:
This was the output:
If I unplug the drive, this id disappears so I am guessing it is that:
So I make a new directory at /media/Library
and then add this line at the bottom of fstab?
Ah, I saw the other command you recommended and get this output:
It is the portable SSD, but which is the correct ID - with the part1 or without?
Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1
I just copied and pasted it from the other discussion, hence I think that this is the unique ID for the other posters drive, would that be correct?
I searched and found this command to try discover the IDs of my drives:
Code:
ls -lha /dev/disk/by-uuid
This was the output:
Code:
$ ls -lha /dev/disk/by-uuid
total 0
drwxr-xr-x 2 root root 100 Aug 31 20:18 .
drwxr-xr-x 8 root root 160 Aug 31 20:18 ..
lrwxrwxrwx 1 root root 15 Aug 31 10:26 9f295487-f64c-434d-b7c1-78a4262fc5e9 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Aug 31 10:26 B325-6B3A -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 10 Aug 31 20:18 e7b8530e-a74e-4e57-ad92-270edc94018e -> ../../sda1
If I unplug the drive, this id disappears so I am guessing it is that:
Code:
B325-6B3A
So I make a new directory at /media/Library
and then add this line at the bottom of fstab?
Code:
/dev/disk/by-id/B325-6B3A /media/Library/1TB_MEDIA/ ext4 defaults 0 0
Ah, I saw the other command you recommended and get this output:
Code:
dellxps13@dellxps13-XPS-13-9370:~$ [b]sudo ls -l /dev/disk/by-id/[/b]
total 0
lrwxrwxrwx 1 root root 13 Aug 31 10:26 nvme-eui.ace42e8170288bca -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-eui.ace42e8170288bca-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-eui.ace42e8170288bca-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 13 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34 -> ../../nvme0n1
lrwxrwxrwx 1 root root 13 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34_1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 9 Aug 31 20:27 usb-SanDisk_Portable_SSD_323234374739343031353332-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 31 20:27 usb-SanDisk_Portable_SSD_323234374739343031353332-0:0-part1 -> ../../sda1
It is the portable SSD, but which is the correct ID - with the part1 or without?