You are not logged in.

#1 2022-05-13 05:14:53

archkib
Member
Registered: 2022-05-13
Posts: 1

How to disable umount external hdd in the process of shutdown

Hi, guys.
It's my first post.
I have an external HDD that mounted option with "idle-timeout"
so after a couple of minutes, it goes on sleep.

But when I shutting down my system,
in the process of shutdown, systemd umount hdd
That makes the external device wake up.

May 13 13:49:44 kibeos systemd[1]: Unmounting /mnt/ext4Data...
May 13 13:49:44 kibeos systemd[1]: mnt-ext4Data.mount: Deactivated successfully.
May 13 13:49:44 kibeos systemd[1]: Unmounted /mnt/ext4Data.
May 13 13:49:44 kibeos systemd[1]: mnt-ext4Data.automount: Deactivated successfully.
May 13 13:49:44 kibeos systemd[1]: Unset automount mnt-ext4Data.automount.

So, I'd like to know HOW TO DISABLE UMOUNT COMMAND DURING SHUTDOWN
Please let me know the hint as always I got here.

Thanks

Offline

#2 2022-05-13 06:50:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,654

Re: How to disable umount external hdd in the process of shutdown

Please post your fstab and the output of "mount" when you assume the drives to be mounted and unmounted.
The drives sleep (physically) by a drive feature that can be controlled via hdparm -S/-y/-Y (check "hdparm -h" and don't fuck up the capitalization, eg. "hdparm -s" can brick the drive) - this has nothing to do w/ the mounting state.
You can perfectly send a drive to standby/sleep while it's still mounted.

Offline

#3 2022-05-13 14:54:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,676

Re: How to disable umount external hdd in the process of shutdown

seth wrote:

You can perfectly send a drive to standby/sleep while it's still mounted.

And, I imagine, it needs to be unmounted before the system shuts down or the file system will be left in a dirty state -- which means in needs to wake up.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB