System freeze when going to suspend while an SD-Card is mounted

Bug #680476 reported by chris109
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Fix Released
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned

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
---

Revision history for this message
chris109 (chris109) wrote :
tsg1zzn (tsg1zzn)
affects: ubuntu → pm-utils (Ubuntu)
Revision history for this message
Bryce Harrington (bryce) wrote :

While this may still be an issue on lucid, I think it doesn't exist in newer releases (at least, I haven't seen it!) I'm adding a Lucid task and closing out the development task.

Changed in pm-utils (Ubuntu):
status: New → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.