I have an external Seagate HDD (/dev/sdb
) with 2 partitions connected to my media center (Acer 3820TG laptop running 14.04) and it keeps the computer from suspending. Since I want my media center to be quick to boot, I would rather use suspend than a complete shutdown. The HDD contains all of the media files, so it is essential to the setup.
I tried to simply unmount both partitions (/dev/sdb1
and /dev/sdb2
) but I run into the same situation as before, where the screen goes black for 5-10 seconds before the computer resumes.
With the udisks --detach /dev/sdb/
command, though, I get what I want: the drive powers off and the computer can suspend.
How could I setup an automated way to:
1) detach /dev/sdb
before suspending and
2) re-mount /dev/sdb
after resuming?