Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Help needed in driver development in Linux for Macos

Sep 11, 2012 11:10PM PDT

I am working in driver development in Linux USB modules. I have written a driver for USB and it is working as CD ROM in a Windows machine.

I made the first partiton as fat32

modprobe g_hidmass file=/dev/mmcblk0p1 cdrom=1 stall=0 removable=1

This works fine in Windows.

I made first partiton as HFS

modprobe g_hidmass file=/dev/mmcblk0p1 cdrom=1 stall=0 removable=1

But the same thing I applied with HFS in OS X I'm getting an error like this:

The disk you inserted was not readable by this computer

In diskutil it is shown as a CD-rom but not reading the file system.

Please help me how can I overcome this error... Your ideas are really helpful. Thanks in advance

Discussion is locked

- Collapse -
Answer
I wonder if HFS is the same as Mac OS X Extended (Journaled)
Sep 12, 2012 9:12AM PDT

I do know that Apple had HFS & HFS+ before they moved to the current one.

Just checked with Google and HFS is not the same as HFS+ but HFS+ is the same as Mac OS X Extended.

You might want to try a different format and see what the result is

P

- Collapse -
tried with HFS, HFS+ and Fat32
Sep 12, 2012 12:40PM PDT

I tried these formats HFS , HFS+ and Fat32
The file system was not detecting by Mac.
"Disk utility info/Volumes/Disk1"
I checked this

filesystem = nofilesystem
mount=nomount

I made the first partiton as fat32

modprobe g_hidmass file=/dev/mmcblk0p1 cdrom=1 stall=0 removable=1

getting the same error message as

"The disk you inserted was not readable by this computer"


Am I missing anything ?

- Collapse -
Answer
I wonder if there is a reason for HFS at all.
Sep 12, 2012 9:17AM PDT

I exchange memory sticks formatted in Fat32 all the time. Maybe nothing is needed here except to use Fat32?