random mount points for 3 USB flash drives

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ieee488
Level 1
Level 1
Posts: 30
Joined: Wed Aug 10, 2016 4:02 pm

random mount points for 3 USB flash drives

Post by ieee488 »

I have three (3) PNY 480 GB flash drives that are always connected to the same ports on my PC.

Their mount points changes from one bootup to another.

Sometimes, PNY #1 is mounted at /media/user1/PNY ELITE PSSD.
Sometimes it is mounted at /media/user1/PNY ELITE PSSD1 .
And more rarely it is mounted at /media/user1/PNY ELITE PSSD2.

What can I do to force PNY #1 to always be mounted at /media/user1/PNY ELITE PSSD ?

this is the result of blkid

Code: Select all

/dev/sda1: SEC_TYPE="msdos" LABEL_FATBOOT="DellUtility" UUID="5450-4444" TYPE="vfat" PARTUUID="551228fc-01"
/dev/sda2: LABEL="RECOVERY" UUID="4ADAF7ECDAF7D1E5" TYPE="ntfs" PARTUUID="551228fc-02"
/dev/sda3: LABEL="OS" UUID="A4A4FA87A4FA5B6E" TYPE="ntfs" PARTUUID="551228fc-03"
/dev/sda5: UUID="5d03ea96-17c3-4112-9c6b-82b7ab0414c7" TYPE="swap" PARTUUID="551228fc-05"
/dev/sda6: UUID="F7F3-DA74" TYPE="vfat" PARTUUID="551228fc-06"
/dev/sda7: UUID="c01b8ee6-eba6-42c3-b3bd-4badf6d0262d" TYPE="ext4" PARTUUID="551228fc-07"
/dev/sdb1: LABEL="PNY ELITE PSSD" UUID="FCF4-36B2" TYPE="exfat" PARTUUID="1c394079-01"
/dev/sdc1: LABEL="PNY ELITE PSSD" UUID="18E6-5A4A" TYPE="exfat" PARTUUID="c5771399-01"
/dev/sdd1: LABEL="PNY ELITE PSSD" UUID="C03A-9A9E" TYPE="exfat" PARTUUID="8d6061bb-01"
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
andy_van_isle
Level 1
Level 1
Posts: 36
Joined: Tue Aug 10, 2021 9:34 pm
Location: Vancouver Island

Re: random mount points for 3 USB flash drives

Post by andy_van_isle »

Hello ieee488,
this solution works for me:
"Automatically mount USB external drive"
https://linuxconfig.org/automatically-m ... ith-autofs
I use the second option "Automatically mount USB drive by UUID" because (as I understand it) even if the usb name changes the UUID remains the same. (Plus it's the first way I learned how to do it :) )
It's your choice of course.

Hope this helps, Andy
LM21 Cinnamon. LMDE5
"If it ain't broke, you ain't trying hard enough!" Red Green.
User avatar
deck_luck
Level 7
Level 7
Posts: 1577
Joined: Mon May 27, 2019 6:57 pm
Location: R-4808 North

Re: random mount points for 3 USB flash drives

Post by deck_luck »

ieee488 wrote: Sat May 21, 2022 10:24 am I have three (3) PNY 480 GB flash drives that are always connected to the same ports on my PC.

Their mount points changes from one bootup to another.

Sometimes, PNY #1 is mounted at /media/user1/PNY ELITE PSSD.
Sometimes it is mounted at /media/user1/PNY ELITE PSSD1 .
And more rarely it is mounted at /media/user1/PNY ELITE PSSD2.

What can I do to force PNY #1 to always be mounted at /media/user1/PNY ELITE PSSD ?

...

Code: Select all

/dev/sdb1: LABEL="PNY ELITE PSSD" UUID="FCF4-36B2" TYPE="exfat" PARTUUID="1c394079-01"
/dev/sdc1: LABEL="PNY ELITE PSSD" UUID="18E6-5A4A" TYPE="exfat" PARTUUID="c5771399-01"
/dev/sdd1: LABEL="PNY ELITE PSSD" UUID="C03A-9A9E" TYPE="exfat" PARTUUID="8d6061bb-01"
Since you are using three different flash storage devices with same PNY ELITE PSSD file system label, the removable media manager adds a numeric suffix to the mount points. You can work around this by modifying the label. You might consider using a more meaningful label to provide a more user friendly mount point.
🐧Linux Mint 20.3 XFCE (UEFI - Secure Boot Enabled) dual boot with Windows 11

Give a friend a fish, and you feed them for a day. Teach a friend how to fish, and you feed them for a lifetime. ✝️
Locked

Return to “Storage”