Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mac formatted hard drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
grakker
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2002
Posts: 100

PostPosted: Mon Jul 08, 2002 6:44 pm    Post subject: Mac formatted hard drive Reply with quote

OK, I have an old hd from a powerpc, formatted under MacOS 8 or something around there. I would like to mount the disk and copy a couple files off of it. Can I do this with Linux? I enabled all the Apple partition options I could find in the kernel with no luck. Anyone ever tried this? Would it be better to find an old Mac somewhere and just put the drive in there? I couldn't really find anything with google.

-Lang
Back to top
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Mon Jul 08, 2002 7:16 pm    Post subject: Reply with quote

Don't know why you wouldn't be able to, but I'm not a Mac user. You might want to try the PPC forum for better results - it's a ways down the page at forums.gentoo.org.
Back to top
View user's profile Send private message
phypor
n00b
n00b


Joined: 25 Jun 2002
Posts: 68
Location: Texas

PostPosted: Mon Jul 08, 2002 7:31 pm    Post subject: Re: Mac formatted hard drive Reply with quote

grakker wrote:
OK, I have an old hd from a powerpc, formatted under MacOS 8 or something around there. I would like to mount the disk and copy a couple files off of it. Can I do this with Linux? I enabled all the Apple partition options I could find in the kernel with no luck. Anyone ever tried this? Would it be better to find an old Mac somewhere and just put the drive in there? I couldn't really find anything with google.

-Lang



If it's formatted in the older HFS, yes... you can do pretty much full read/write access.

If it's formated in the newer HFS+, sorta... you can kludge read-only access.


Part 1, seeing the harddrive with linux:

enable HFS in the filesystems and
macintosh partition types in your kernel config

and as you reboot with your new kernel,

install the harddrive physically, making sure you have the master/slave settings right

to verfiy that yourself to this point,

bash# cat /proc/partitions

based on the following hd? chart you should see your mac hd and its parts
hda - primary ide, master
hdb - primary ide, slave
hdc - secondary ide, master
hdd - secondary ide, slave

ie, i put a mac harddrive as master on my secondary ide bus, itll show up in /proc/paritions as hdc


Part 2, Accessing the data:

(ill use hdc in my example)

bash# mkdir /mnt/mac
bash# mount -t hfs /dev/hdc /mnt/mac


if you don't see Where_Have_All_My_Files_Gone on 'ls' then you have an HFS and can access the data as you do normally

if you do see it, then you have an HFS+ formated partition....


~phypor
_________________
ALWAYS stay away from tanks enguled in fire.
- 2000 Emergency Response Guidebook, pg307
Back to top
View user's profile Send private message
phypor
n00b
n00b


Joined: 25 Jun 2002
Posts: 68
Location: Texas

PostPosted: Mon Jul 08, 2002 7:44 pm    Post subject: Re: Mac formatted hard drive (pt2) Reply with quote

afaik, there are two workable options for dealing with HFS+ drives,

HFSPlus (v.1.0.4)
http://ftp.penguinppc.org/users/hasi/
(There is an ebuild for it but its PPC only (?)... the src at the link should compile fine)

Linux Kernel HFS+ fs driver
http://sourceforge.net/projects/linux-hfsplus

I have used successfully the HFSPlus utils to access, read, and transfer over files from a HFS+ partition, however, it is a pain cause it's a wrapper (the commands are hfsls, hfscp, hfsmount, etc) and shell expansions are very blonde.

I have not (yet) used the kernel mods, but may soon, as I have an old hfs+ drive with data I'd like to get at (and I don't have time to do it with hfsplus tools)



~phypor
_________________
ALWAYS stay away from tanks enguled in fire.
- 2000 Emergency Response Guidebook, pg307
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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