• Re: Failed unmounting disk mes. on every restart

    From David Wright@21:1/5 to All on Mon Mar 31 04:50:01 2025
    On Sun 30 Mar 2025 at 17:35:18 (+0300), J wrote:
    Every time i restart the PC i have an error message while rebooting
    process: "[FAILED] failed unmounting *disk-mount-point*..."

    It didn't bother me really, because this message usually just immediately disappeared. But last time the *computer could get stuck* on this for a minute or two.

    These are *ext4* partitions.

    That pause sounds normal to me. If the power was cut to the computer,
    then on booting up, I will see an extra line, the first in this pair:

    noah03: recovering journal
    noah03: clean … … …

    (noah03 is the filesystem LABEL.)

    Mounting points were made with *Gnome-disks* and in *FSTAB* it looked like that

    */dev/disk/by-uuid/*8cd66b97-bde6-4475-b875-8f3928a8b14d /mnt/8cd66b97-bde6-4475-b875-8f3928a8b14d *auto nosuid,nodev,nofail,x-gvfs-show 0 0*

    Then i remade it manually this way

    *UUID=8cd66b97*-bde6-4475-b875-8f3928a8b14d /mnt/8cd66b97-bde6-4475-b875-8f3928a8b14d auto nosuid,nodev,nofail,x-gvfs-show 0 0

    Now it doesn't stuck trying to unmount it for a minute, but still i see the error warning

    I don't think that makes any difference. How long it takes to recover
    the journal depends on how much work is involved, so it's variable.
    I guess it increases with the time the system has been up and running.

    Of course, as expected *if i close all the apps* and processes which use these partitions, *there is no error*.

    But shouldn't PC do the unmount automatically after the apps are closed during the reboot process?

    Signals are sent on shutdown, but programs have to react to them or
    they get killed off after a certain period of time (a few seconds?).
    Even then, then system should be able to close files and unmount.

    Does it warns me that it couldn't unmount the disk completely? Or it just informs that it couldn't do it from the first time?

    AIUI, with ext4, it should normally be able to clean the partition,
    hence the second line quoted above.

    Should i be worried? Is it a* must *to close all the apps and/or unmount disks manually before reboot?

    Is there a risk of information loss or disk corruption?

    I would investigate why my ext4 disks were not being unmounted cleanly
    on shutdown if it were happening here. I suppose my suspicions would
    first fall on any network connections.

    (As you probably know, with FAT disks, it's completely different. You
    typically have to chkdsk them yourself (or not bother). It can be
    tricky to get scanners, cameras and phones to unmount their sticks
    and cards cleanly, so here they often live with their dirty bit set.)

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)