Is it possible to make the device filesystem name , /dev/sdi1 , shown by lsblk -f
stay constant every time we disconnect and reconnect the SanDisk USB Cruzer drive? I am running Ubuntu Linux 16.04 on an Lenovo Thinkstation desktop computer.
I believe the SanDisk USB Cruzer drive automatically mounts on insertion.
If it is possible, what are the steps necessary to make this possible?
You would need to specify the mounting point based on the device's UUID.
You should refer to the official Ubuntu documentation page on the subject for usage details.
Here are examples (your output will be different, but similarly formatted). The command:
sudo blkid
produces an output similar to:
/dev/sda1: TYPE="ntfs" UUID="72C0DE8EC0DE57C5" LABEL="windows"
/dev/sda2: UUID="30fcb748-ad1e-4228-af2f-951e8e7b56df" TYPE="ext4"
/dev/sda5: TYPE="swap" UUID="8c4e69f8-5074-42c0-8134-0b2429c4c02c"
/dev/sdb1: SEC_TYPE="msdos" UUID="4848-E35A" TYPE="vfat"
you would then have to change the entry in fstab
from:
/dev/sda2 /mnt/Mint ext4 defaults 0 0
to something like:
UUID=30fcb748-ad1e-4228-af2f-951e8e7b56df /mnt/Mint ext4 defaults 0 0
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments