touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #84876
[Bug 680476] Re: System freeze when going to suspend while an SD-Card is mounted
lucid has seen the end of its life and is no longer receiving any
updates. Marking the lucid task for this ticket as "Won't Fix".
** Changed in: pm-utils (Ubuntu Lucid)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/680476
Title:
System freeze when going to suspend while an SD-Card is mounted
Status in pm-utils package in Ubuntu:
Fix Released
Status in pm-utils source package in Lucid:
Won't Fix
Bug description:
If an SD-Card is mounted suspend (to RAM or to Disk) causes a System-Crash on Ubuntu 10.04 LTS.
This problem will be found in older Versions of Ubuntu too. People who are Using Netbooks with an SSD are facing it mostly, because they use SD-cards to store user-data.
I added the following Script to handle the Problem:
---
#!/bin/sh
# File: /etc/pm/sleep.d/10_umount_sd
# This script fixes issius with sleep or suspend when a SD-card is mounted.
case "${1}" in
hibernate|suspend)
/bin/sync
# Find all SD/MMC-Devices
for drive in $( /bin/ls /dev/mmcblk?p* ); do
# Unmount each device
/bin/umount ${drive} > /dev/null
# If failed: abort suspend
if [ $? -ne 0 ]; then
# If the device really keeps mounted
/bin/mount | /bin/grep ${drive}
if [ $? -eq 0 ]; then
exit 1;
fi
fi
done
;;
resume|thaw)
# Mount all devices mentiond in /etc/fstab
mount -a > /dev/null
done
;;
esac
---
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/680476/+subscriptions