[Bug 125702] Re: casper-rw fs not cleanly unmounted on persistent live USB shutdown

wodny 125702 at bugs.launchpad.net
Thu Sep 15 15:09:37 UTC 2011


Ubuntu 10.04.2 LTS (Lucid)
Linux 2.6.35-25-generic


I've also observed this problem. And just like others - I thought it was a hardware problem at first.

I've experimented with a couple of configurations and it seems that the
current one decreased the number of filesystem errors.

So the theory is that USB flash drives like to do some block juggling
even after signalling they have finished and they lose power halfway to
data really being flushed.

Ext3 doesn't really help here. Both Ext2 and Ext3 can be marked clean
but have errors. Errors may appear in data not in metadata. Then even
fsck won't see them. For example MD5 would.

The problem seems to be computer and USB flash drive dependant.

I've decided to try the configuration with a separate "casper-rw" Ext2
partition on the USB flash drive as casper initrd scripts allow it. It is used instead of a loop-mounted "casper-rw" file on FAT.

"Showmounts" boot option enabled.

I remount filesystems to "ro" before shutdown in the order below:
- /cdrom,
- / (prepend noxino, rw->ro),
- /cow.
I do sync, some sleep.
At the end I send raw SCSI sync command (sg3-utils) - not every USB flash drive understands this.
I've also disabled the eject command (as Debian does for USB drives).

I attach scripts I've used.

I think that a kernel/hardware guru is needed here.

** Attachment added: "bug-125702.tar.gz"
   https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/125702/+attachment/2408042/+files/bug-125702.tar.gz

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/125702

Title:
  casper-rw fs not cleanly unmounted on persistent live USB shutdown

Status in “casper” package in Ubuntu:
  Confirmed
Status in “upstart” package in Ubuntu:
  Invalid

Bug description:
  When shutting down gutsy tribe 2 from a persistent usb drive, I get a
  "failure" in umounting local filesystems.  Running e2fsck on the
  casper-rw partition, which was formatted as ext2, shows errors on the
  casper-rw partition.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/125702/+subscriptions




More information about the foundations-bugs mailing list