I removed the lines from /etc/exports/ and /etc/fstab and then I restarted. When I mounted the drive, the path changed to /run/media/user/X1, when it was /run/media/user/X before.
Everything under /run/ is temporary and not static. The path can change between every mount. Do not use /run/ for anything other temporary mounts thru your GUI. Do not expect the path to be static.
If you want to be a static path use a entry in fstab or a systemd mount unit. But do not mount it under /run/ with these methods.
normally, any drive that has got a Label
(a name which you have given it when you formatted the drive)
will appear under /run/media/$user
by that name
if your drive name was X and now it is X1
you might have changed the label
Did you actually call your drive just “X”? …
… or it has got no label and the system uses some other thing to decide the name under which it will appear in /run/media/$user
and that might change every time you connect the drive
Easiest is to set a label, a name
so what the drive appears as will be consistent and not change over time.
Since it is an NTFS drive and I have no experience with this filesystem I cannot tell you how to check for or set a name/Label.
And this is a good approach if you want to copy some files to or from it. Like an USB Thumbdrive, but not if you need a static and predictable path that always work. It is just temporary.
Not sure about KDE, but on Gnome and XFCE, there is none. Use a text editor and add line to fstab or create a systemd mount unit. And of course do not mount it under /run
I just don’t see why if this was necessary it wouldn’t be done by the operating system itself. Everybody else except the most tech savy users are using the default /run location without problems.
Ever heard the phrase “just because you could, doesn’t mean you should.”
/run is for user mounted stuff. So basically your file manager. It’ or its content can change at boot. Or even while using your computer. While /mnt isn’t, and obviously not that volatile.
In the end it’s up to you. But then unexpected consequences should be…expected.
Until something unexpected happens. Then, not so much.