Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Disks set to noauto in fstab still mounted at boot.

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
mts
Posts: 4
Joined: 2019-04-28 00:25
Location: Queensland Australia

[Solved] Disks set to noauto in fstab still mounted at boot.

#1 Post by mts »

Using AV Linux with debian stretch.

I have spent days trying to troubleshoot this problem.
I used Gnome Disk Utility to set most of my drives to noauto at boot.
I can clearly see in fstab that they are set to noauto but still they are mounted.
For the life of me I can't work out why.
Reading the man for fstab it says drives marked noauto will not be mounted at boot.
This however is just not the case. I have to use Disks to unmount them all after booting up.

Any clues as to why this is happening would be greatly appreciated.
Thanks in advance.
Last edited by mts on 2019-04-28 05:12, edited 1 time in total.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Disks set to noauto in fstab still mounted at boot.

#2 Post by GarryRicketson »

The problem is, even though it is based on Debian, like many of the other distros , it is not Debian.
So what works for Debian, might not work for that distro. Did you try asking them at their support forum ? http://bandshed.net/forum/

Also did you try this ?
Disks set to no auto in fstab still mounted at boot on Debian 9
Several hits that probably answer this,
One ,
https://unix.stackexchange.com/question ... nt-on-boot

The 'noauto' option is interpreted by mount to not mount the entry implicitly. This has the consequence that it will not be mounted on boot on SysVInit systems.

Systemd does not interpret "automatic" to mean it can not mount it on-demand. Systemd only interprets 'noauto' to mean that it should not be a dependency of local-fs.target but if its a dependency of something else it will mount it. This is includes fsck, automount and mountpoints below the mountpoint.

You probably either have a mountpoint that is not noauto beneath the noauto mountpoint or the x-systemd.automount option is in the fstab entry.
And that leads to this, seems like it would be obvious, but guess it isn't. Some better details would make it easier for anyone to helpyou, for example showing us what your fstab file actually has in it, (please use code boxes), and also What kind of devices or partitions it is that you do not want to mount automatically ?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Disks set to noauto in fstab still mounted at boot.

#3 Post by 4D696B65 »

post your fstab, lets have a look

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Disks set to noauto in fstab still mounted at boot.

#4 Post by sunrat »

Yes you should be asking in AVLinux forums. AVL has a custom drive automount function set in /etc/rc.local, you may be able to change it there.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

mts
Posts: 4
Joined: 2019-04-28 00:25
Location: Queensland Australia

Re: Disks set to noauto in fstab still mounted at boot.

#5 Post by mts »

@sunrat

You hit the nail on the head. I knew it must be some system function overriding fstab.
The entries in fstab are ok because I used gnome disk utility to set noauto.
This is the culprit. /usr/bin/mountomatic &
Removed execute bit and all is as it should be.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Remove comment to enable automatic mounting of all partitions
/usr/bin/mountomatic &

exit 0
Thanks for the heads up! :D

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Disks set to noauto in fstab still mounted at boot.

#6 Post by sunrat »

mts wrote:Thanks for the heads up! :D
You're welcome. ;)
Luckily you caught one of the very few people here who use AVLinux, and I'm one of the small percentage of AVL users who know about the automount script.
AVLinux is the best-of-breed distro for multimedia production IMO. I use it regularly.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

mts
Posts: 4
Joined: 2019-04-28 00:25
Location: Queensland Australia

Re: [Solved] Disks set to noauto in fstab still mounted at b

#7 Post by mts »

@sunrat

When I signed up for the AV Linux forum I saw you had posts there so I was indeed lucky.
A search for /usr/bin/mountomatic gives no hits at all.
Again I really appreciate your help.
I am loving AV Linux. My Ardour install on Solus 4 is very slim pickings and the directories seem to be a mess.
I find I am booting AV Linux for every day Linux use. Sorry Solus :roll:
One thing I wonder about is how safe is it to keep AV Linux updated via Synaptic.
I have already updated everything since the ISO install and hope it doesn't cause problems.

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: [Solved] Disks set to noauto in fstab still mounted at b

#8 Post by sunrat »

mts wrote: One thing I wonder about is how safe is it to keep AV Linux updated via Synaptic.
I update regularly and haven't broken it yet.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

mts
Posts: 4
Joined: 2019-04-28 00:25
Location: Queensland Australia

Re: [Solved] Disks set to noauto in fstab still mounted at b

#9 Post by mts »

Cheers :D

Thanks again.

Post Reply