Forum › Forums › New users › New Users and General Questions › [SOLVED] how to mount automatically a partition
- This topic has 5 replies, 2 voices, and was last updated Apr 16-7:25 am by Xecure.
-
AuthorPosts
-
April 14, 2020 at 3:42 pm #34716Member
paulineb
hello, is it possible to have a partition automatically mounted at startup?
- This topic was modified 3 years ago by paulineb.
pb
d2Vsa2pnd3JlaW9ld2FyaWpob2FpHnJaxaCg
April 14, 2020 at 4:00 pm #34723Member
Xecure
::Yes. First enable automount and add the partitions to your fstab file.
1. Enabling automount (I think it works mainly for external partitions):
1a. Control Center > Disk > Configure Automount.
1b. Edit the file ~/.desktop-session/automount.conf2. Updating fstab
2.1. Make a copy of your fstab (located in /etc/fstab just in case)
2.2. Connect the devices and manually mount the partitions you wish will automount
2.3. Open a terminal and execute
sudo make-fstab
2.4. Open your /etc/fstab file (with root privilegies) and check if the partitions are added. Change “noauto” to “auto” for all interested partitions. Save file once finished editing.antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 16, 2020 at 4:39 am #34798Member
paulineb
::i followed your instructions and they worked.
thanks for help!
something weird happened: i have now ALL the partitions mounted …
also ones i didn’t choose at 2.1 .if it got too complicated to fix, i can mark the thread solved anyway.
pb
d2Vsa2pnd3JlaW9ld2FyaWpob2FpHnJaxaCg
April 16, 2020 at 5:24 am #34802Member
Xecure
::something weird happened: i have now ALL the partitions mounted …
Make sure to only change noauto to auto for the partitions you WANT mounted and not all partitions.
Worst case scenario, restore your fstab with the one you had originally and that you saved somewhere
2.1. Make a copy of your fstab (located in /etc/fstab just in case)
and start over (after restarting).
From there you could identify the partition you want automounted and manually add the info to the fstab instead of using make-fstab to update everything. Reading this file you can learn a lot about how partitions are mounted on your system.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 16, 2020 at 6:10 am #34804Member
paulineb
::i forgot to save the file!
🙂ok, it’s fine anyway, i mark the thread solved.
… i am trying to use command line whenever possible,
but it in case, i found in antix repos gnome disks.thanks for help!
pb
d2Vsa2pnd3JlaW9ld2FyaWpob2FpHnJaxaCg
April 16, 2020 at 7:25 am #34810Member
Xecure
::You can always edit manually fstab and delete all lines related to partitions you do not want antiX to see.
i forgot to save the file!
🙂This happened a lot to me. Now, every time I want to change something, I always make a copy of the original files. You never know when a mistake will force you to reinstall the program/system and must start from zero.
Good luck with your system!
antiX Live system enthusiast.
General Live Boot Parameters for antiX. -
AuthorPosts
- You must be logged in to reply to this topic.