F5F Stay Refreshed Software Operating Systems Unmount resources while suspended by pausing the system or using appropriate APIs depending on the environment.

Unmount resources while suspended by pausing the system or using appropriate APIs depending on the environment.

Unmount resources while suspended by pausing the system or using appropriate APIs depending on the environment.

T
TheStyler554
Junior Member
16
11-18-2023, 03:15 AM
#1
i set up my windows shares using this in fstab. the mount points are configured as follows: //192.168.1.10/backup /mnt/backup cifs username=xxx password=xxx with defaults 0 0. however, when i close my laptop for a while, those shares stop working. they seem inactive or locked, preventing unmounting or unmounting. only rebooting fixes it quickly because the drives are already mounted and can't be unmounted. alternatively, turning off the power seems to work. i'm trying to find a method to automatically unmount when the laptop enters standby mode, so it doesn't get damaged while in standby. using mount -a and umountnfs.sh helps with unmounting, but i need guidance on automating this process for a thinkpad x260 running kde.
T
TheStyler554
11-18-2023, 03:15 AM #1

i set up my windows shares using this in fstab. the mount points are configured as follows: //192.168.1.10/backup /mnt/backup cifs username=xxx password=xxx with defaults 0 0. however, when i close my laptop for a while, those shares stop working. they seem inactive or locked, preventing unmounting or unmounting. only rebooting fixes it quickly because the drives are already mounted and can't be unmounted. alternatively, turning off the power seems to work. i'm trying to find a method to automatically unmount when the laptop enters standby mode, so it doesn't get damaged while in standby. using mount -a and umountnfs.sh helps with unmounting, but i need guidance on automating this process for a thinkpad x260 running kde.