How to Rename Sandisk 'Extreme Pro' mount point

Ubuntu Support Template

Ubuntu Version:
24.04.3 LTS

Desktop Environment (if applicable):
KDE Plasma

Problem Description:
I recently purchased a Sandisk ‘Extreme Pro’ 4TB SSD drive for additional storage. Plugging it in gives me the mount point ‘/media/scohen/Extreme Pro’. This works just fine in all the normal apps like Dolphin. But I do a lot of command line and python stuff and the space in the mount name causes confusion. I would rather name the mount point /media/scohen/Extreme_Pro or anything without spaces. But I can’t rename it. Either as sudo or me, it says the device is busy. How can I rename this mount point (which doesn’t exist until I plug the device in, at which point it’s too late)?

Relevant System Information:
Include any details that might help (e.g., hardware, drivers, or special configurations).

Screenshots or Error Messages:

What I’ve Tried:
/media/scohen$ sudo mv 'Extreme Pro' Extreme_Pro

Never Mind. Just creating a symlink works for my purposes.

2 Likes

Are you familiar with using fstab? You can look up your USB UUID and insert a line in your /etc/fstab file so that whenever that device is inserted, it will mount using your preferred mountpoint.

Thanks. Are you saying my symlink won’t survive reboot? There is no entry for the device now in /etc/fstab, so how does it get that name?

Fantastic solution. Simple. Easy. Elegant.

Well done.

1 Like

You found a solution, well done. I think you and I were typing at the same time, I had not seen that you worked it out.

Default mount of devices is often UUID, but can be label. You of course can create a mount point & manually mount. And if using fstab for a removeable devide best to add extra parameters.

You can label partitions with Disks, gparted or command line. Command line depends on format.

What format is drive. If only used with Ubuntu best to reformat to ext4 or other Linux format as external drives often default to Microsoft based formats.

To see labels:

lsblk -e 7 -o MODEL,NAME,FSTYPE,LABEL,partlabel,MOUNTPOINT,SIZE,fsused

1 Like

The last part of the name of the directory (in you case ‘Extreme Pro’) used as a mount point is the label of the filesystem being mounted. What tool you can use to set that label of course depends on the file system being used. For ext2, ext3, and ext4 you can use
tune2fs -L LABEL_NAME /dev/THE_DEVICEFILE_OF_THE_PARTITION' #(replace parts in caps)
or
e2label /dev/THE_DEVICEFILE_OF_THE_PARTITION LABEL_NAME' #(replace parts in caps)

For FAT you can use dosfslabel or fatlabel. For NTFS there is ntfslabel. Doing it that way assures you get the same name no matter as what user on what machine you connect the drive.

Will that solution also work for those “Sandisk” flash drive’s which the system shows an Error Message?

File System is exfat.

Then the tool to use is ‘exfatlabel’ which can be found in the package ‘exfatprogs’.

1 Like

No.

The error shown has nothing to do with this thread.

Ok, thank you.

I seen the word’s “Sandisk” and “media mount point” in the OP’s template info and thought I would ask.

WyattWhiteEagle. The error you posted is more likely the result of not properly unmounting or removing your ntfs drive or leaving it in a hibernated state while trying to accesss it from Ubuntu or any Linux. You need windows chkdsk to repair this, hopefully.