/home does not mount after suspend

10 Antworten [Letzter Beitrag]
Andresm

I am a member!

Offline
Beigetreten: 11/21/2010

Hello.

I think I have this bug [1] but since nobody has posted for 4 years I am not hoping for a resonse.

I close the lid of the acer aspire One that that has an SD card in the storage expansion. This SD card holds the /home drive. When I open the lid and hit any key to resume from suspend it knows my password and the home drive seems mounted only that it is empty. It seems very little power has been drained during suspend.

Rebooting shows the home drive normally.

$uname
Linux andres-AOA110 3.2.0-58-generic-pae #0trisquel1 SMP Tue Jan 14 02:44:33 UTC 2014 i686 i686 i386 GNU/Linux

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=10fe9052-e786-4b63-b5cc-ea33543707bd / ext4 errors=remount-ro 0 1
# /home was on /dev/mmcblk0 during installation
UUID=595fabfa-cc74-4e9c-a3ca-c7aa30c3044c /home ext4 defaults 0 2
# swap was on /dev/sda2 during installation
UUID=d37fd7ee-1bde-47e5-a2da-ac669cdbf2f2 none swap sw 0 0

[1] https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/342096

quantumgravity
Offline
Beigetreten: 04/22/2013

You better show your /var/log/pm-suspend
maybe there is a hint.

Andresm

I am a member!

Offline
Beigetreten: 11/21/2010

I have attached the files. I do not understand it seems to be OK but tries to do something called symlink for pulse audio and fails because /home is not found.

I do not know how to read the enclosed files.

There was two pm-suspend.log files.

Sorry if in email you will not see the files. They are too big for forum (opted to attach them)

AnhangGröße
pm-suspend.log_.txt 26.47 KB
pm-suspend.log_.1.txt 52.82 KB
lembas
Offline
Beigetreten: 05/13/2010

You could also write custom suspend scripts to unmount before suspending and mount after. Dunno if the fact we're talking about /home makes any difference.

Andresm

I am a member!

Offline
Beigetreten: 11/21/2010

I think if I unmount and have the system logged out I will not be able to log in. Since the password is kept in /home , right?

Dave_Hunt

I am a member!

Offline
Beigetreten: 09/19/2011

Your password is not kept in /home. If you try to login, and /home is not mounted, your desktop can't be shown; its configurations are in ~

Andresm

I am a member!

Offline
Beigetreten: 11/21/2010

OK, where do I start/find the script that does the suspend?

linux dot com [1] seems to suggest installing apmd. But since it was actually suspending I do not think it should be necesary?

[1] https://www.linux.com/news/hardware/laptops/8253-how-to-suspend-and-hibernate-a-laptop-under-linux

lembas
Offline
Beigetreten: 05/13/2010

apm was the older thing before acpi, you probably don't need that.

Andresm

I am a member!

Offline
Beigetreten: 11/21/2010

OK are the scripts I am supposed to modify the ones found here?

/usr/lib/pm-utils/sleep.d

lembas
Offline
Beigetreten: 05/13/2010

Rather modify the ones at /etc/pm/sleep.d

If both directories contain a similar named file, the one in /etc/pm/sleep.d will get preference. Of course if not, then it does not matter.

lembas
Offline
Beigetreten: 05/13/2010

Reading this http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504391 suggests that the mmc module has a removable parameter that might come handy. Note however that if you should eject the card while suspending, bad things will happen. Try

sudo modinfo -p mmc

You can set the parameters in /etc/modprobe.d or as kernel parameters in GRUB.