Bug 653796

Summary: makebootfat does not find usb sticks with option -o usb
Product: [Fedora] Fedora Reporter: Dennis Czeremin <dennis.czeremin>
Component: makebootfatAssignee: Dmitry Butskoy <dmitry>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dmitry, fedora, jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: makebootfat-1.4-11.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-02 19:10:01 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:
Description Flags
accept new return of ioctl(SCSI_IOCTL_PROBE_HOST) introduced with kernel 2.6.35 none

Description Dennis Czeremin 2010-11-16 07:45:01 UTC
Description of problem:
makebootfat does not find usb sticks any longer with option -o usb
(It works on before with F12 on the same hardware)

Version-Release number of selected component (if applicable):
makebootfat-1.4-10.fc14.x86_64
Kernel: 2.6.35.6-48.fc14.x86_64

How reproducible:
makebootfat -o usb -Z -Y -v -L MYLABLE -2 ldlinux.bss -m mbrfat.bin -F -c ldlinux.sys image


Steps to Reproduce:
1. Insert one usb stick
2. call cmd as root
  
Actual results:
"Please insert one usb disk."

Expected results:
A clean formatted USB Device

Additional info:
Workaround: Give the correct device directly
makebootfat -o/dev/sdc -Z -Y -v -L MYLABEL -2 ldlinux.bss -m mbrfat.bin -F -c ldlinux.sys image
works!

Reasons for the bug:
The result of ioctl(h, SCSI_IOCTL_PROBE_HOST, hostname) is not longer:
"SCSI emulation for USB Mass Storage devices". Its now "usb-storage 2-5:1.0"

Comment 1 Dmitry Butskoy 2010-11-16 14:45:36 UTC
Perhaps it is better to specify the exact path (/dev/sdX) -- at least for cases when the system have two or more usb flashes inserted...

Could you provide a patch?

Comment 3 fedora 2010-11-16 21:34:46 UTC
Created attachment 460935 [details]
accept new return of ioctl(SCSI_IOCTL_PROBE_HOST)  introduced with kernel 2.6.35

I am sure there are better ways to fix this problem, but this patch works for me

Comment 4 Fedora Update System 2010-11-17 15:08:08 UTC
makebootfat-1.4-11.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/makebootfat-1.4-11.fc14

Comment 5 Fedora Update System 2010-11-17 23:15:15 UTC
makebootfat-1.4-11.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update makebootfat'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/makebootfat-1.4-11.fc14

Comment 6 Fedora Update System 2010-12-02 19:09:56 UTC
makebootfat-1.4-11.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.