Public bug reported:

When a USB drive containing an XFS partition is disconnected without
proper unmounting, due to power failure or yanking of the USB cable, it
will not automatically remount when reconnected. For the naive user,
this requires a reboot to resolve.

** Here is what currently happens:

1) The filesystem is forced to be shut down. This does not clear out the
UUID.

usb 5-5: USB disconnect, address 3
xfs_force_shutdown(sdb1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.  
Return address = 0xf9002bfc
Filesystem "sdb1": I/O Error Detected.  Shutting down filesystem: sdb1
Please umount the filesystem, and rectify the problem(s)
xfs_force_shutdown(sdb1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.  
Return address = 0xf9002bfc

2) When plugging the drive back in, it refuses to mount:

XFS: Filesystem sdc1 has duplicate UUID - can't mount

** What should happen:

Offer the user to (or maybe automatically) clear out the old UUID from
the system when the drive is plugged back in (or maybe already when it
is yanked). I don't know how to do that, but it seems to be the right
thing to do. Or mount the newly plugged in drive with the "nouuid"
option (though that does not seem to be as clean a solution).

** Affects: Ubuntu
     Importance: Undecided
         Status: New

-- 
Allow remounting of uncleanly unmounted XFS drive
https://bugs.launchpad.net/bugs/130398
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to