I have an external HDD I use for backups (rsync during night) and other stuff. On 16.04 it was mounted all the time and I did not have any problems. In 18.04 however, after I lock my session, the disk spins down and gets unmounted.

The mountpoint is /media/username/NameOfDisk and the device is /dev/dm-0

Is there a way to prevent this from happening?

BTW: I tried

sdparm --save --clear=STANDBY /dev/dm-0

and got

unable to access /dev/dm-0, ATA disk?

I also created a cron job that touched a file on the disk every minute, but it still unmounts.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.