Bug 653796 - makebootfat does not find usb sticks with option -o usb
Summary: makebootfat does not find usb sticks with option -o usb
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: makebootfat
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dmitry Butskoy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-16 07:45 UTC by Dennis Czeremin
Modified: 2010-12-02 19:10 UTC (History)
3 users (show)

Fixed In Version: makebootfat-1.4-11.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-02 19:10:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
accept new return of ioctl(SCSI_IOCTL_PROBE_HOST) introduced with kernel 2.6.35 (422 bytes, patch)
2010-11-16 21:34 UTC, fedora
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.