[haiku-development] Re: iPod on Haiku

  • From: Denis Papin <ddcrespe@xxxxxxxxxxx>
  • To: <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 10 Apr 2009 20:10:31 +0200


It would help me a lot if you could send me your iPod's 512-byte MBR by email. 

After more investigation, mine has a MBR which is close to a Intel/MBR except 
it assumes that the LBA values are sectors of 2048-bytes  instead of 512 bytes !

So what Apple uses is some kind of specific MBR, definitely not standard at all.

3 tools failed in reconizing the partitions  (GParted, Haiku, mmstat). And 
mmstat  is a command line tool designed for that !

The linux kernel gets along with it  :

[79656.050827] scsi 6:0:0:0: Direct-Access     Apple    iPod             1.62 
PQ: 0 ANSI: 0
[79656.054696] sd 6:0:0:0: [sdg] 3964928 2048-byte hardware sectors (8120 MB)
[79656.055685] sd 6:0:0:0: [sdg] Write Protect is off
[79656.055693] sd 6:0:0:0: [sdg] Mode Sense: 68 00 00 08
[79656.055699] sd 6:0:0:0: [sdg] Assuming drive cache: write through
[79656.058185] sd 6:0:0:0: [sdg] 3964928 2048-byte hardware sectors (8120 MB)
[79656.059195] sd 6:0:0:0: [sdg] Write Protect is off
[79656.059207] sd 6:0:0:0: [sdg] Mode Sense: 68 00 00 08
[79656.059213] sd 6:0:0:0: [sdg] Assuming drive cache: write through
[79656.059936]  sdg: sdg1 sdg2


As I think there is no  "sector size" info  anywhere in the MBR, they probably 
use the disk signature to do something like 

if (apple ipod version xxx)  then sector_size = 2048  :-(

Can anyone confirm that Haiku assumes (and it is right) that Intel-MBR sectors 
are 512-byte long to calculate LBA offsets ?

If yes, we may have to decide if we want to add specific partionning  support ( 
for exemple  x-byte-long sectors ) to the Haiku kernel ? 

It would be very nice indeed.

Denis


> Date: Fri, 10 Apr 2009 10:06:07 -0400
> Subject: [haiku-development] Re: iPod on Haiku
> From: alaricx@xxxxxxxxx
> To: haiku-development@xxxxxxxxxxxxx
> 
> >
> > The way the iPod is partitionned is not "standard" (as far as I know there
> > are many ways to partition a drive : Intel, Apple,  Sun, etc).
> > So I suspect an Apple partitionning for the Ipod (need to be confirmed) and
> > only XP can show them correctly.
> > On Linux's GParted and Haiku's DiskSetup, the information are twisted. Linux
> > handles the iPod by loading a special driver when it detects it, but GParted
> > seems to rely on its own analyse to determine the partitions (only Intel's I
> > guess).
> >
> 
> This isn't true for most of the older WinPods (FAT32), I believe.
> There's no special driver and it's definitely got Intel/MBR-style
> partitioning. XP supports nothing other than that, and at the most
> basic level, an iPod is a Mass Storage device.
> This could have, however, changed with the advent of the third
> generation Nano (the fat one).
> Every USB model before that is purely mass-storage, though.
> 
> -- Dustin L. Howett
> 

_________________________________________________________________
Téléphonez gratuitement à tous vos proches avec Windows Live Messenger  !  
Téléchargez-le maintenant !
http://www.windowslive.fr/messenger/1.asp

Other related posts: