Is it possible to make the device filesystem name , /dev/sd?1 , stay constant every time we reconnect the SanDisk USB Cruzer drive?

Frank

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?

Julie Pelletier

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

SanDisk Cruzer Blade on Ubuntu 16.04

From Dev

USB drive device name missing partition number

From Dev

usb drive filesystem?

From Dev

Problem with reformatting Sandisk read-only USB drive

From Dev

Python: get name of a USB flash drive device [windows]

From Dev

USB drive "is not a block device"

From Dev

Is there a way to make a pc look like a USB drive to a device that reads content from a USB drive?

From Dev

Same device name for identical USB sound cards after every reboot

From Dev

Reconnect USB Modem every 12 hours

From Dev

Reconnect USB Modem every 12 hours

From Dev

Is it possible to make a EFI file to boot Yumi USB flash drive?

From Dev

Reuse SQLite connection or reconnect every time?

From Dev

Broken Sandisk usb stick

From Dev

Assigning name to usb device

From Dev

Wipe a USB flash drive and recreate a filesystem

From Dev

Partition table & filesystem for a USB flash drive

From Dev

Reconnect USB device (ACR122U) without unplugging

From Dev

Reconnect USB device (ACR122U) without unplugging

From Dev

How to make device mappings stay after reboot?

From Dev

Android TextSwitcher: how to make every text stay?

From Dev

Make IPhone X think it is connecting to a usb drive when plugging into PC - possible using virtual usb drive created with imdisk?

From Dev

Reconnect drive to raid-1 array with mdadm

From Dev

How can I run a Bash script every time is plugged an USB device?

From Dev

Make a USB drive read only

From Dev

Make NAS appear as a USB drive

From Dev

Make external USB drive bootable

From Dev

Get USB Device Name In UBUNTU

From Dev

Every time I reconnect to a MySQL database, all the tables are empty

From Dev

Every time I reconnect to a MySQL database, all the tables are empty

Related Related

  1. 1

    SanDisk Cruzer Blade on Ubuntu 16.04

  2. 2

    USB drive device name missing partition number

  3. 3

    usb drive filesystem?

  4. 4

    Problem with reformatting Sandisk read-only USB drive

  5. 5

    Python: get name of a USB flash drive device [windows]

  6. 6

    USB drive "is not a block device"

  7. 7

    Is there a way to make a pc look like a USB drive to a device that reads content from a USB drive?

  8. 8

    Same device name for identical USB sound cards after every reboot

  9. 9

    Reconnect USB Modem every 12 hours

  10. 10

    Reconnect USB Modem every 12 hours

  11. 11

    Is it possible to make a EFI file to boot Yumi USB flash drive?

  12. 12

    Reuse SQLite connection or reconnect every time?

  13. 13

    Broken Sandisk usb stick

  14. 14

    Assigning name to usb device

  15. 15

    Wipe a USB flash drive and recreate a filesystem

  16. 16

    Partition table & filesystem for a USB flash drive

  17. 17

    Reconnect USB device (ACR122U) without unplugging

  18. 18

    Reconnect USB device (ACR122U) without unplugging

  19. 19

    How to make device mappings stay after reboot?

  20. 20

    Android TextSwitcher: how to make every text stay?

  21. 21

    Make IPhone X think it is connecting to a usb drive when plugging into PC - possible using virtual usb drive created with imdisk?

  22. 22

    Reconnect drive to raid-1 array with mdadm

  23. 23

    How can I run a Bash script every time is plugged an USB device?

  24. 24

    Make a USB drive read only

  25. 25

    Make NAS appear as a USB drive

  26. 26

    Make external USB drive bootable

  27. 27

    Get USB Device Name In UBUNTU

  28. 28

    Every time I reconnect to a MySQL database, all the tables are empty

  29. 29

    Every time I reconnect to a MySQL database, all the tables are empty

HotTag

Archive