Sjoerd Hiemstra wrote:
webjay wrote:
On Nov 11, 12:00 pm, Davide Mancusi <[EMAIL PROTECTED]> wrote:
webjay ha scritto:>
# mount -t hfsplus -r /dev/sda /mnt/usbdisk
^^^
Shouldn't this be sda1? Just a thought, I do not use HFS+.
No, I tried that with the same result.
I think mount picks the first available.
No, it doesn't do that (well it never did for me, anyway).
I agree you certainly don't want to mount /dev/sda (without a number
appended).
Note that Apple partitioning is different from PC partitioning.
When mounting a hfs+ partition, it looks like you have 4 or 10
partitions, only one of them (possibly sda2 or sda4) is usable, all the
others appear to have zero length.
Well iirc they don't have zero length, but contain stuff like drivers or
so (I'm not sure whether that is just a relict of old pre-OSX MacOS
times, though, so nowadays hey could possibly really be empty).
I once saw this in a partitioning program of another distro; in Debian
I haven't found a way yet to make these partitions visible.
You just need kernel support (either as module or compiled in). The
kernel configuration variable is CONFIG_MAC_PARTITION (for mac
partitions, anyway), should you compile it yourself.
linux-image-2.6.18-5-486 does have that compiled in already, as can be
seen in /boot/config-2.6.18-5-486
If your /dev is being handled by udev (as is the case for etch), then
you can easily check whether the kernel understands the partition table:
if there's not only a /dev/sda, but also /dev/sda[1-9]* device files
present after attaching the disk, then the kernel understands the
partitioning just fine (you can also check kern.log).
I guess you mean that you haven't found a way to get a partition listing
with sizes. On Debian on Macs, the package "mac-fdisk" is being
installed automatically (at least that was the case with woody) which
provides an "fdisk" program which could handle mac partition tables;
packages.debian.org says that this package is only available for
powerpc; strange, I don't see any reason for this (maybe it has some
endianness bugs? maybe it's just because it provides a binary of the
same name as the x86 "util-linux" package? If it's just the latter, you
could probably recompile the mac-fdisk sources locally (not as .deb) and
use that).
I'd just do an ls /dev/sda?* and then try to mount every shown partition
in turn until you've found the right one.
Christian.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]