Forum › Forums › General › Software › [SOLVED] Change /media/user/myflashdrive to /media/myflashdrive
- This topic has 5 replies, 2 voices, and was last updated Apr 4-11:31 pm by kaye.
-
AuthorPosts
-
April 2, 2020 at 11:33 am #34250Member
kaye
Hello friends!
In Debian, my flash drive was automatically mounted at /media/user/myflashdrive.
I was able to change it to /media/myflashdrive by adding the following line to /etc/fstab :
UUID=2E7B-BA02 /media/myflashdrive vfat user,rw,noauto,x-systemd.device-timeout=5s 0 2
I was wondering if it’s safe to do this in antiX. The /etc/fstab in antiX says:
# Pluggable devices are handled by uDev, they are not in fstab
It is important to me to be able to do it in antiX.
Thank you for your time!
- This topic was modified 3 years, 1 month ago by kaye.
- This topic was modified 3 years, 1 month ago by kaye.
April 4, 2020 at 2:53 am #34325Memberkaye
April 4, 2020 at 4:00 am #34326Member
Xecure
::Man, you should not just simply copy stuff from the net. Start learning and understanding. You just published an answer using fstab for your ntfs partition. Simply try to understand thst code and use the same knowledge to apply for this other case. Both problems are similar, and can be solved the same way.
UUID=2E7B-BA02 /media/myflashdrive vfat user,rw,noauto,x-systemd.device-timeout=5s 0 2
The above code kames no sense in antiX because antiX doesn’t use systemd. Delete it from your fstab. If you want to know how fstab would mount it, you can turn your computer on with your USB device connected (before turning on) and then you can modify it’s entry in fstab latter to whatever you want.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 4, 2020 at 5:11 am #34328Memberkaye
::I’m just not sure if it’s ok to do the same in the /etc/fstab in antiX because the fstab file in antiX says:
# Pluggable devices are handled by uDev, they are not in fstabyou can turn your computer on with your USB device connected (before turning on) and then you can modify it’s entry in fstab latter to whatever you want.
Done that. The flash drive is never listed in /etc/fstab
Thank you!
- This reply was modified 3 years, 1 month ago by kaye.
April 4, 2020 at 7:33 am #34338Member
Xecure
::I will give you a fool-proof step-by-step guide
(user = your user; name-of-device = name of your device when mounted)
0. Start your antiX system
1. Make a copy of your fstab (just in case)
2. Connect your USB device and let it automount to whatever is set (for what you are saying, to /media/user/name-of-device)
3. Open a terminal and execute
sudo make-fstab
4. Open your /etc/fstab file and you should be able to see the USB device displayed there. Edit the mounting path from /media/user/name-of-device to /media/name-of-device. Save the file.
5. Create the mounting folder for your device
sudo mkdir /media/name-of-device
6. Restart your computer.From now on, your USB device should mount to the created directory every time you connect your USB device.
If you want all devices to mount this way, I am not sure how to do it. You may need to create some udev rule or maybe change some specific configuration file. I have no experience doing this. You may have to investigate this yourself or wait for some of the great experts in the forum to come in and very nicely explain what must be done.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 4, 2020 at 11:31 pm #34362Memberkaye
-
AuthorPosts
- You must be logged in to reply to this topic.