Ubuntu hangs on shutdown after mounting usb pendrive with btrfs

Bug #829407 reported by Daniel Kulesz
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After mounting a pendrive with btrfs on it, Ubuntu hangs on shutdown even if the drive has been previously removed. The behavior can be observed in Ubuntu 10.10 as well as in 10.04.

Revision history for this message
Carey Underwood (cwillu) wrote :

Do you recall if the device specifically unmounted before removing it? Btrfs doesn't handle devices going missing very well yet.

The output of alt-sysrq-w during a hang would be useful.

Revision history for this message
Daniel Kulesz (kuleszdl) wrote :

I think this is exactly the problem.

One easy way to reproduce it is as follows:
1.) Insert an USB pendrive with btrfs on it.
2.) Verify that the USB pendrive got automounted (but do not open it in nautilus)
3.) dd the pendrive (depending on your device number, i.e.: dd if=/dev/zero of=/dev/sdc)
4.) remove the pendrive
5.) Try to shutdown Ubuntu

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
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.