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
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.
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.
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.
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.