support for hfs(+)-fs on a CD
Kay Sievers
kay.sievers at vrfy.org
Thu Jul 29 12:25:52 PDT 2004
On Thu, 2004-07-29 at 20:00 +0200, David Zeuthen wrote:
> On Thu, 2004-07-29 at 05:26 +0200, Kay Sievers wrote:
> > Here is support for recognition of hfs and hfsplus filesystems on a main
> > block device, like a CD. Only the first partition is returned with the
> > probe.
> >
>
> Nice, this works for one of my CD-ROM with a hfsplus filesystem, but it
> doesn't work on my recovery DVD for my Powerbook (mounting it with -t
> hfsplus works). Hmm.. I don't think it's worth looking into support
> multi partition and/or multi session discs until the kernel actually
> give us a special device file for each of them.
It would be nice, if we can get it into the kernel. If it's not possible
for some reason, I still can add a partiton table parser to volume_id
and we can create child devices in HAL with 'block.session=<number>' and
add these to fstab.
Back to your DVD. What's in the first sessions partition table? Mine
looks like this:
[root at pim hal]# dd if=/dev/hdc count=5 |hexdump -C
00000000 45 52 02 00 00 00 1c 64 00 01 00 01 00 00 00 00 |ER.....d........|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000200 50 4d 00 00 00 00 00 02 00 00 00 01 00 00 00 02 |PM..............|
00000210 4d 52 4b 53 00 00 00 00 00 00 00 00 00 00 00 00 |MRKS............|
00000220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000230 41 70 70 6c 65 5f 70 61 72 74 69 74 69 6f 6e 5f |Apple_partition_|
00000240 6d 61 70 00 00 00 00 00 00 00 00 00 00 00 00 00 |map.............|
00000250 00 00 00 00 00 00 00 02 00 00 00 33 00 00 00 00 |...........3....|
00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
5+0 records in
5+0 records out
00000400 50 4d 00 00 00 00 00 02 00 00 00 24 00 00 1c 40 |PM.........$...@|
00000410 54 6f 61 73 74 20 35 2e 31 2e 34 20 48 46 53 2b |Toast 5.1.4 HFS+|
00000420 20 42 75 69 6c 64 65 72 00 00 00 00 00 00 00 00 | Builder........|
00000430 41 70 70 6c 65 5f 48 46 53 00 00 00 00 00 00 00 |Apple_HFS.......|
00000440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000450 00 00 00 00 00 00 1c 40 00 00 00 33 00 00 00 00 |....... at ...3....|
00000460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000a00
> > Also introduced is a global change to the 64bit versions of stat(), so
> > I've changed back to the standard versions. David, could you chaeck if
> > your NTFS partition has still a label, cause your label last time, was
> > beyond the 2GB limit.
> >
>
> Yeah it works, but I had to add this
>
> #ifdef HAVE_CONFIG_H
> # include <config.h>
> #endif
>
> to volume_id.c to get it to work.
Cool, thanks. So we keep it compatible with the klibc version in udev.
Kay
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list