New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Apple Notebooks Apple's notebook computers including MacBook Pro, MacBook, MacBook Air, PowerBook, and iBook.

MacBook - Read TOC problem with the USB drive emulating like a CD-ROM drive(in MAC system)

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jun 25, 2009
Posts: 3
cychou is on a distinguished road

cychou is offline

I am trying to emulate a USB drive to appear like a CD-ROM drive. I used a tool to generate an ISO image. Then I dump the image to a usb drive, setting the drive as CDROM type by SCSI command . All the host(Windows,Linux,MAC) will also sends Read TOC command to get the TOC data. Since I emulate the USB device as CDROM drive, I just emulate it as single track.

Here is the discuss thread I refer to :
Read TOC problem with USB flash drive emulating optical drive - Club MyCE / CDFreaks - Knowledge is Power

And below is the data I respond to a Read Toc command(all Hex)

The command to the drive:
43 00 00 00 00 00 00 03 24 00

Data returned by the drive (with comments):
00 12 (number of bytes below = 18 decimal)
01 (first track)
01 (last track)
00 (reserved)
14 (adr, control)
01 (track being described)
00 (reserved)
00 00 00 00 (start logical block address 0X00)
00 (reserved)
14 (adr, control)
AA (track being described (leadout))
00 (reserved)
00 00 0C 6C (lead oout start logical block address 0xC6C)

This works fine in both Windows and Linux system, but can't be mounted in MAC system.

At the same time , I get a USB device which could be emulated as CDROM in MAC system. I get the data back from the USB analyzer and see its response data is as followed (MSF is 1):
00 2E (TOC data length)
01 (First track number)
01 (Last track number)
01 16 00 A0 00 00 00 00 (TOC track descriptor ?)
01 00 00 01 16 00 A1 00 (TOC track descriptor ?)
00 00 00 01 00 00 01 16 (TOC track descriptor ?)
00 A2 00 00 00 00 03 14 (TOC track descriptor ?)
34 01 14 00 01 00 00 00 (TOC track descriptor ?)
00 00 02 00 (?)

Till now I have no clue about its meaning.Morever amazingly, I used this TOC data for my ISO image and MAC system could recognize it !!

Is there any special meaning in this TOC data ? Do anyone knows the meaning of this set of TOC (I can't parse its meaning from MMC-6).

Thanks in advance.
QUOTE Thanks

Member Since: Jun 25, 2009
Posts: 3
cychou is on a distinguished road

cychou is offline
sorry , I just notice that the command from MAC system is :
43 02 00 00 00 00 00 FF FE 80
which is different to from Windows :
43 02 00 00 00 00 00 03 24 00

The 7th and 8th bytes means the allocation Length , so it's normal that different system issue different value.
But the last byte (which means control byte) in MAC is 0x80 and in Windows is 0x00 .
MMC-6 does not define this byte . But SFF-8090 defines the highest 2 bit of this byte as vendor specific . Any one knows what does MAC require from this ? And What is the diffent between them(0x00 and 0x80) ?

QUOTE Thanks

Post Reply New Thread Subscribe

« lid problem? | Question about refurbished MacBook Pros... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Problem with shared hard drive - read only shaun_de_sagun OS X - Operating System 0 08-14-2009 12:05 AM
System Restore With Usb Flash Drive? avecpulp Apple Notebooks 2 08-12-2009 01:57 PM
move mac operating system from one hard drive to another radiostarlisa OS X - Operating System 4 11-25-2008 12:01 PM
G4 Sawtooth AGP - USB problem at startup / firmware kay_mac Apple Desktops 8 04-21-2007 06:02 PM
Upgrading hard drive...Boot IDE or SCSI? lokerd Apple Desktops 5 10-19-2003 07:02 PM

All times are GMT -4. The time now is 04:30 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?