Bug 469269
Summary: | mount -o ro of live usb device fails | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Orion Poplawski <orion> | ||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | katzj, kernel-maint, quintela | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-10-31 16:34:04 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
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. |
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 fails with: mount: /dev/sdb1 already mounted or /mnt/live busy. Strace shows: 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): 2.6.27.4-58.fc10.i686 How reproducible: everytime