Red Hat Bugzilla – Bug 469269
mount -o ro of live usb device fails
Last modified: 2008-10-31 12:34:04 EDT
Created attachment 321994 [details]
strace -f of mount -o ro /dev/sdb1 /mnt/live
Description of problem:
Built a Live USB stick of the latest rawhide with the latest livecd tools. It fails to mount the persistent home directory because of the following:
mount -o ro /dev/sdb1 /mnt/live
mount: /dev/sdb1 already mounted or /mnt/live busy.
3117 mount("/dev/sdb1", "/mnt/live", "vfat", MS_MGC_VAL|MS_RDONLY, NULL) = -1 EBUSY (Device or resource busy)
However, /dev/sdb1 is not mounted, and /mnt/live is not busy. mount with the -o ro works:
3119 mount("/dev/sdb1", "/mnt/live", "vfat", MS_MGC_VAL, NULL) = 0
Version-Release number of selected component (if applicable):
If you're running off of the live image, then /dev/sdb1 is definitely already mounted since that's where you'd be running from. Do you have a persistent overlay also?
Also, are you using the current configs in the spins-kickstart repo? They should be doing
mount -o ro /dev/live /mnt/live || mount /dev/live /mnt/live
to try a rw mount if ro fails
Have persistent overlay.
So, I guess if /dev/sdb1 is already mounted somewhere r/w, it can't get mounted again r/o?
I was using configs from fedora-release, I'll track down spins-kickstart...
Yep, that's exactly it.