Allow remounting of uncleanly unmounted XFS drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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_
Filesystem "sdb1": I/O Error Detected. Shutting down filesystem: sdb1
Please umount the filesystem, and rectify the problem(s)
xfs_force_
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).
just want to put in here, for those who stumble across this page via google, that the way to fix the uuid problem is
sudo xfs_admin -U generate /dev/sdxx
where sdxx is the device name assigned to the partition with the corrupted uuid.
matt