Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Duplicate iMac disk with intel base Gentoo
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
kentsin
n00b
n00b


Joined: 08 Dec 2002
Posts: 58
Location: Macao

PostPosted: Thu Apr 08, 2004 10:12 pm    Post subject: Duplicate iMac disk with intel base Gentoo Reply with quote

Is it possible to do a dd to copy a Mac disk (with Osx and Os9) to another disk (not the same size) with an intel base gentoo?

I want to play with the Gentoo with OSx, but I need to make a backup of the existing system first. I would like to take out the existing disk, copy it to a larger disk, then install the new gentoo on the new disk.

Is it possible? Will the old osx still bootable? What is the order of the partations?

appleboot, os9, osx, linux?
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Thu Apr 08, 2004 10:38 pm    Post subject: Reply with quote

Only one way to find out, really. I doubt many people, if anybody at all, have tried that.

Macs and Intel-PCs use different hard-drive partitioning schemes, but using dd might circumvent that problem. Unfortunately, dd might create another problem: if the old drive is copied *exactly* onto the new drive, the new drive will have a partition table based on the size of the old drive, making the new drive's extra space inaccessible without a complete repartitioning. There might be tools to work around that as well (something like a Partition Magic for Macs, perhaps); hopefully somebody more knowledgeable than me can point you to one.

Regardless, it *should* be harmless enough to try, as long as you or some process running on your Intel-PC doesn't try to write to the old Mac disk. Caveat experimentor: back up your important files!
_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Apr 09, 2004 1:04 am    Post subject: Reply with quote

why dont you use the imac. along with carbon copy cloner (a cocoa app) to copy the entire disk (preserves bootability and gets invisible files) onto the new hard drive, instead of messing with mac disks on an intel based system.....

or try gnu parted (to shrink the osx partition... havent tried it my self but heard it works) on a booted live cd.


killfire
Back to top
View user's profile Send private message
kentsin
n00b
n00b


Joined: 08 Dec 2002
Posts: 58
Location: Macao

PostPosted: Sun Apr 11, 2004 2:42 pm    Post subject: Reply with quote

Mine is iMac which can only host one drive. It takes lots of work to switch a disk also.
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sun Apr 11, 2004 4:31 pm    Post subject: Reply with quote

oh, sorry, i missunderstood your problem.


killfire
Back to top
View user's profile Send private message
Evinyatar
n00b
n00b


Joined: 15 Feb 2003
Posts: 70

PostPosted: Mon Apr 12, 2004 1:36 pm    Post subject: Reply with quote

I don't know about the new iMacs, but with my old Tangerine 333MHz iMac I could use a standard ATA cable (the ones with 3 connectors) and hook up 2 hard drives to the iMac, with one dangling out of the case. Perfect for transferring files.
Or you could pop the iMac's HD in the linux PC and copy the partitions there, but you'll have to make sure your kernel has Mac partition table support, and that you format the disk with a Mac partition table with partitions the exact same size as the ones on the old disk, and copy each partition seperately (not the whole disk at once).
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Tue Apr 13, 2004 12:14 pm    Post subject: Reply with quote

I haven't tried cloning a mac disk. Neigther do I have a imac, but I did put a drive from a G3 into my gentoobox (i686) once, and there was no problem to read files.
I think what you need to do is to add support for the mac partitiontables and mac filesystem (hfs / hfs+) into your kernel.

make menuconfig -> File Systems -> Apple HFS, Apple HFS+
make menuconfig -> File Systems -> Partition Types -> Advanced partition selection -> Machintosh partition map

Then you'll need to recompile youre kernel, and you'd be ready to go.
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue Apr 13, 2004 7:11 pm    Post subject: Reply with quote

sure, dd doesn't care what is on there. You can even do it with an 'unsupported' OS, as long as you can find the proper device nodes in OSX you should be fine.

You'll have to do some reading up on dd though, as when you restore if it's not to the same dized partition you might have to do some block limiting and such, but I've done just this with strnger disk formats (such as proprietery flash cards in PCMCIA slot in my OSX laptop) and successfully restored them
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