Comment 17 for bug 342096

Revision history for this message
Bart de Koning (bratdaking) wrote : Re: [Bug 342096] Re: SD Card containing /home corrupted on resume

To warn you that is only a matter of time (there is a matter of randomness
involved), I use the same setup, so make a copy with the dd option of your
partition table and put it on a safe place on the sdd drive (like /root). If
it fries your bootsector you can easily retrieve it then. Make also a backup
regurarly of your /home (I can recoommend backintime for that -> use a
folder on your sdd as the backup folder, eg /var/backintime). Once it did
not only fry my bootsector but also the journal, causing serious damage to
my ext4 partition, beyond the table and what fsck can do, so then I really
had to reformat it.
It hangs during suspend or hibernate (or closing the laptop cover) because
when it comes back it recognizes your card as a new one and mounts it as a
new drive, instead of recognizing it as the old one. The systems searches
for the old one to open the /home, cannot find it and the system crashes. I
have not been lucky in fixing this yet. I need some extra waiting time as
soon as the kernel awakens, to have enough electricity running through the
card, but I don't know how to implement that. Making extra pm-util hooks
does not work, as they are called too late.

to backup your partition table:
dd if=/dev/mmcblk0 of=/root/backupSD.img bs=512 count=1
to recover:
dd of=/dev/mmcblk0 if=/root/backupSD.img bs=512 count=1
Not necessary to include that in a script or something, you can also use
that when you need it...

Cheers,
Bart

2009/8/30 Jim Fulton <email address hidden>

> I'm having a related problem, but it looks like I've been luckier.
>
> I have 9.04, kernel 2.6.18-15, running on an Aspire One. I've got a 16G
> sdhc class 6 card in the "storage expansion" slot on the left with a 4G
> vfat partition in p1 and a 12G ext3 partition in p2, mounted on /home.
>
> If the ext3 partition is mounted, suspend or hibernate hang. I have to
> do a hard power off to get use of the machine. Fortunately, so far, I
> haven't had a problem with the partition table on the sd card.
>
> --
> SD Card containing /home corrupted on resume
> https://bugs.launchpad.net/bugs/342096
> You received this bug notification because you are a direct subscriber
> of the bug.
>