Public bug reported:

Binary package hint: usb-creator

Hi,

I've made a little patch that makes usb-creator accept my CompactFlash
card.  My ThinkPad T61 doesn't have a CF slot, but it does have a PCMCIA
slot, and I'm using my CF card in an adapter that inserts into the
laptop.  I wanted to try to install Ubuntu on a 1GB CF card, but the
device didn't show up as a selectable target, even though Ubuntu does
detect and even auto-mount it.

So I looked around in the Python sources and came up with a little patch
which seems to work on my PCMCIA-mounted 1GB CF card.  That is, usb-
creator lets me select the CF card (formatted with one large FAT16
partition) and proceed installation as usual.

I was hoping my ThinkPad X30 would boot from this CF card, but
unfortunately it won't, so this whole operation was perhaps just a waste
of time =)

Anyway here's the patch!

A note:  I edited the patch by hand afterwards, because I'd messed up
the names of the two source trees, so it probably won't work.  Still,
it's really easy to understand and fix -- I simply added the pcmcia bus
check:

diff -Naur /usr/share/pyshared/usbcreator/backend.py 
/usr/share/pyshared/usbcreator-with-pcmcia-support/backend.py
--- /usr/share/pyshared/usbcreator/backend.py   2009-04-06 23:26:29.000000000 
+0200
+++ /usr/share/pyshared/usbcreator-with-pcmcia-support/backend.py       
2009-04-06 23:25:05.000000000 +0200
@@ -354,8 +354,7 @@
             d = dbus.Interface(dev_obj, 'org.freedesktop.Hal.Device')
             if d.GetProperty('storage.drive_type') != 'disk':
                 continue
-            if d.GetProperty('storage.bus') == 'usb' and \
+            if d.GetProperty('storage.bus') == 'usb' or 
d.GetProperty('storage.bus') == 'pcmcia' and \
                 d.GetProperty('storage.removable'):
                 if d.GetProperty('block.is_volume'):
                     if d.GetProperty('volume.fstype') == 'vfat':

** Affects: usb-creator (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: cf pcmcia

-- 
CF cards unsupported
https://bugs.launchpad.net/bugs/356633
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to