Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD Cards under OSX aren't supported #2

Open
jonpryor opened this issue Feb 7, 2011 · 0 comments
Open

SD Cards under OSX aren't supported #2

jonpryor opened this issue Feb 7, 2011 · 0 comments

Comments

@jonpryor
Copy link

jonpryor commented Feb 7, 2011

I'm unable to install onto an SD Card:

$ ./image-usb-stick ../GNOME_3.x86_64-0.0.3-Build1.1.iso 
Loading disks...
No devices found.

The problem is that the OsxDisk.is_valid() check is too stringent and rejects the SD Card.

Disk Utility information for the SD Card:

$ diskutil info /dev/disk3
   Device Identifier:        disk3
   Device Node:              /dev/disk3
   Part Of Whole:            disk3
   Device / Media Name:      APPLE SD Card Reader Media

   Volume Name:              
   Escaped with Unicode:     

   Mounted:                  No

   File System:              None

   Partition Type:           None
   Bootable:                 Not bootable
   Media Type:               Generic
   Protocol:                 USB
   SMART Status:             Not Supported

   Total Size:               4.1 GB (4075290624 Bytes) (exactly 7959552 512-Byte-Blocks)
   Volume Free Space:        Not Applicable

   Read-Only Media:          No
   Read-Only Volume:         Not applicable (no filesystem)
   Ejectable:                Yes

   Whole:                    Yes
   Internal:                 Yes
   OS 9 Drivers:             No
   Low Level Format:         Not Supported

Patch to fix:

$ diff -u image-usb-stick.bk image-usb-stick
--- image-usb-stick.bk  2011-02-07 16:49:57.000000000 -0500
+++ image-usb-stick 2011-02-07 16:55:07.000000000 -0500
@@ -150,7 +150,7 @@
            self.attrs['read_only_media'] == 'No' and \
            self.attrs['ejectable'] == 'Yes' and \
            self.attrs['whole'] == 'Yes' and \
-           self.attrs['internal'] == 'No'
+           (self.attrs['internal'] == 'No' or self.attrs['device_media_name'] == 'APPLE SD Card Reader Media')

    def unmount (self):
        import subprocess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant