Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount a hfs partition on a x86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
lukaz
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2004
Posts: 103
Location: europe.old.ch

PostPosted: Sat Oct 16, 2004 3:14 pm    Post subject: mount a hfs partition on a x86 Reply with quote

hi there

i'm trying to mount a hfs partition on a x86 system with no luck so far. i've compiled the hfs, hfs+ and mac partitiontabel support into the kernel. but it does not help since i'm not able to emerge any mac-fdisk on my machine. i've put the mac-fdisk in my /etc/portage/package.keywords with:

Code:
sys-fs/mac-fdisk ~x86


and tryed to compile the mac-fdisk-0.1.ebuild & the mac-fdisk-0.1-r2.ebuild but no luck in both cases. my cflags are: -O3 -march=athlon-xp -pipe -fomit-frame-pointer. with the r2 i got a error like this.

Code:

>>> Source unpacked.
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o pdisk.o pdisk.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o dump.o dump.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o partition_map.o partition_map.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o convert.o convert.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o io.o io.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o errors.o errors.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o bitfield.o bitfield.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o fdisk.o fdisk.c
gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer   -c -o fdisklabel.o fdisklabel.c
fdisklabel.c: In Funktion »bselect«:
fdisklabel.c:118: error: dereferencing pointer to incomplete type
fdisklabel.c:122: error: dereferencing pointer to incomplete type
fdisklabel.c:129: error: dereferencing pointer to incomplete type
fdisklabel.c: In Funktion »bsd_new_part«:
fdisklabel.c:224: error: dereferencing pointer to incomplete type
fdisklabel.c:225: error: dereferencing pointer to incomplete type
fdisklabel.c: In Funktion »bsd_write_bootstrap«:
fdisklabel.c:508: error: dereferencing pointer to incomplete type
fdisklabel.c: In Funktion »bsd_initlabel«:
fdisklabel.c:651: error: dereferencing pointer to incomplete type
fdisklabel.c:652: error: dereferencing pointer to incomplete type
fdisklabel.c: In Funktion »bsd_readlabel«:
fdisklabel.c:675: error: dereferencing pointer to incomplete type
fdisklabel.c: In Funktion »bsd_writelabel«:
fdisklabel.c:709: error: dereferencing pointer to incomplete type
fdisklabel.c: In Funktion »bsd_link_part«:
fdisklabel.c:779: error: dereferencing pointer to incomplete type
fdisklabel.c:780: error: dereferencing pointer to incomplete type
fdisklabel.c:782: error: dereferencing pointer to incomplete type
make: *** [fdisklabel.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
fdisk.c: In Funktion »main«:
fdisk.c:1423: Warnung: Rückgabetyp von »main« ist nicht »int«

!!! ERROR: sys-fs/mac-fdisk-0.1-r2 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)


this is the error with mac-fdisk-0.1.ebuild

Code:

make: *** [fdisklabel.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
fdisk.c: In Funktion »main«:
fdisk.c:1423: Warnung: Rückgabetyp von »main« ist nicht »int«

!!! ERROR: sys-fs/mac-fdisk-0.1 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)


so how can i bring it to work? i want to use it for data recovery from a crashed mac volume. i can mount the volume with the ppc knoppix cd. but do not know how to bring it to work with my gentoobox. thx for any help.lukaz.
Back to top
View user's profile Send private message
porodzila
Guru
Guru


Joined: 22 May 2004
Posts: 307
Location: Terrapin Station

PostPosted: Sat Oct 16, 2004 3:42 pm    Post subject: Reply with quote

It might be quite tricky, good luck getting mac-fdisk working on a non-mac. I dont think it will work.
_________________
ubi primum potero, me hinc subduco.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sat Oct 16, 2004 3:52 pm    Post subject: Reply with quote

If you just want to mount a HFS partition then you do not need mac-fdisk. If you have all the kernel support you need, you should be able to do a mount -t hfs /dev/sda9 /mnt/hfs or something (might be hfsplus, depending of the actual partition type).

Of maybe I did not understand your problem, case in which I apologize.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
lukaz
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2004
Posts: 103
Location: europe.old.ch

PostPosted: Sat Oct 16, 2004 4:28 pm    Post subject: Reply with quote

i'm not able to do so. i have the 2.4.26-gentoo-r9 kernel with

Code:

<*> Apple HFS file system support (EXPERIMENTAL)
<*> Apple HFS+ (Extended HFS) file system support (EXPERIMENTAL)
 [*] Advanced partition selection
 [*]   Macintosh partition map support
 [*]   PC BIOS (MSDOS partition tables) support


the hd is recognized by the bios but if i try to mount i get

Code:

mount -t hfs /dev/hdc7 /mnt/mac
mount: Gerätedatei /dev/hdc7 existiert nicht

sorry my german console - devicefile does not exist or something like that it means. but as i said in my first post i was able to mount it on a g4 as /dev/hda7.

thanks so far.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sat Oct 16, 2004 5:13 pm    Post subject: Reply with quote

lukaz wrote:
the hd is recognized by the bios but if i try to mount i get

Code:

mount -t hfs /dev/hdc7 /mnt/mac
mount: Gerätedatei /dev/hdc7 existiert nicht

sorry my german console - devicefile does not exist or something like that it means. but as i said in my first post i was able to mount it on a g4 as /dev/hda7.

OK, I find it a bit hard to understand the exact error given my (uttely nonexistent) knowledge of Goethe's language, so I am trying to start from Adam and Eve. Do you see in your logs something like this:
Code:
/dev/scsi/host0/bus0/target0/lun0: [mac] p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12

Yours is an IDE disk, in any case, do you see a listing of your partitions with a "[mac]" prefix? If you do, then your machine does recognize the Mac partition map and you should be in principle able to mount the partition. I am tempted to guess that such a line does not exist, case in which hdc does not exist and thus hdc7 is not bound to any actual device (this seems consistent with your translation of the error message). I am at a loss of why the Mac partition module does not work in this case, but then I have never used it on non-PPC hardware. You could try hfsplusutils to see if it works (again, never tried it on non-PPC hardware).

If it does exist, it could be that the special file (device) /dev/hdc7 does not exist, did you check this? The following is a stupid question, but are you sure that your drive shows up as hdc and not, say hdb? On my wife's CRT iMac the CD-ROM used to be hdc but once I installed Gentoo on it it became all of a sudden hdb. Just shooting in the dark at this moment though.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
lukaz
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2004
Posts: 103
Location: europe.old.ch

PostPosted: Sat Oct 16, 2004 5:54 pm    Post subject: got it working Reply with quote

oh... as you can see i'm a noob. but now i got a idea out of your post and it worked. the probelm was i have set a scsi-boot-option in grub for my dvd-burner which i changed with the mac hd. i did not know howto set the jumpers for this harddrive and therefor i just exchanged it whith my dvd-burner. now i made an other bootoption without scsi-emulation in grub and it just worked fine exept of some special character we call in goethes maner umlaute.

thanx

lukaz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum