Page 1 of 1

Mounting disk partitions automatically without fstab

PostPosted: Feb 29th, '20, 14:38
by msdobrescu
Hello,

I need to have a network accessible computer with the ability of booting if some disk is removed.
I have took a case that has disk racks. It even supports hot pluggable/unplugabble disks, but it is not the case.
I need to take some disks away from it and, while booting from a non re-movable one, to be able to start the system.
So far, I have an internal drive where Mageia lays, and up to 4 disks to plug/unplug.
But, if the disks are registered to fstab and one is taken away (between shutdown/startups), the system simply refuses to start.
I find this absurd, as long as there is nothing related to the system. Even some softweare that might have needed them, should stop running, but not the entire OS.

So, is there some way to have them mounted if plugged or not mounted if not plugged and simply have them accessible over Samba when plugged in (from boot time and further)?

It would be enough if they are one partition per disk and mounted as /dev/sdb1, /dev/sdc1, etc...

Thank you in advance.

Re: Mounting disk partitions automatically without fstab

PostPosted: Feb 29th, '20, 18:00
by doktor5000
msdobrescu wrote:But, if the disks are registered to fstab and one is taken away (between shutdown/startups), the system simply refuses to start.

If you don't add nofail as an option, that is expected.

For the automount, you should probably look at systemd.mount and the corresponding fstab mount options: https://wiki.archlinux.org/index.php/fs ... th_systemd
You may also want to look at e.g. https://wiki.archlinux.org/index.php/Ud ... s_in_rules and the links there.

Re: Mounting disk partitions automatically without fstab

PostPosted: Feb 29th, '20, 20:30
by msdobrescu
Thank you, I'll start learning all these settings.