Discussion:
[Clonezilla-user] Cloning a Mac ppc hd
Giulio Canevari
2008-07-07 17:03:04 UTC
Permalink
Hello everyone,

i would like to clone a mac ppc hd, now using linux ( 4gb in 3
partitions + swap ) to a bigger and faster hd ( 20gb ).

In order to do so, i have plugged the 4.3gb hd on my standard intel pc,
launched clonezilla, and choosed savedisk ( saved on an external usb hd ).

After, i have plugged the 20gb hd on the pc, relaunched clonezilla, and
choosed the 20gb as target. It writes the first partition ( apple
bootstrap or something similar ), then it complains about hdd2 or sdd2
not existing and it exits.

I have seen there is a parted partition list, and partition type is mac.

Could you please help me? Is there a way to create to clone also the
partition table?

Thank you in advance.
--
Giulio Canevari


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Realizza i tuoi sogni con Carta Eureka. Fido fino a 3.000 euro, rate a partire da 20 euro e canone gratis il 1° anno. Scoprila!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7877&d=7-7
Steven Shiau
2008-07-08 04:14:49 UTC
Permalink
Great. Finally there is someone asking about Mac clone.
Giulio, thanks.
Now, back to the topic. When you saved the image, did you choose -q2,
i.e. to turn on partclone ?
BTW, when clonezilla live complains, please enter command line prompt,
then run:
df -h
cat /proc/partitions
then post the results.

Thanks.
Regards,

Steven
Post by Giulio Canevari
Hello everyone,
i would like to clone a mac ppc hd, now using linux ( 4gb in 3
partitions + swap ) to a bigger and faster hd ( 20gb ).
In order to do so, i have plugged the 4.3gb hd on my standard intel pc,
launched clonezilla, and choosed savedisk ( saved on an external usb hd ).
After, i have plugged the 20gb hd on the pc, relaunched clonezilla, and
choosed the 20gb as target. It writes the first partition ( apple
bootstrap or something similar ), then it complains about hdd2 or sdd2
not existing and it exits.
I have seen there is a parted partition list, and partition type is mac.
Could you please help me? Is there a way to create to clone also the
partition table?
Thank you in advance.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 9762755A
Fingerprint -- A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Steven Shiau
2008-07-08 04:17:24 UTC
Permalink
Oops...
Did you mean you are running a _PPC_ Mac ? or Intel-based Mac ?

Steven.
Post by Giulio Canevari
Hello everyone,
i would like to clone a mac ppc hd, now using linux ( 4gb in 3
partitions + swap ) to a bigger and faster hd ( 20gb ).
In order to do so, i have plugged the 4.3gb hd on my standard intel pc,
launched clonezilla, and choosed savedisk ( saved on an external usb hd ).
After, i have plugged the 20gb hd on the pc, relaunched clonezilla, and
choosed the 20gb as target. It writes the first partition ( apple
bootstrap or something similar ), then it complains about hdd2 or sdd2
not existing and it exits.
I have seen there is a parted partition list, and partition type is mac.
Could you please help me? Is there a way to create to clone also the
partition table?
Thank you in advance.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 9762755A
Fingerprint -- A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Giulio Canevari
2008-07-08 11:47:48 UTC
Permalink
Post by Steven Shiau
Oops...
Did you mean you are running a _PPC_ Mac ? or Intel-based Mac ?
I'm not running a mac. I have unplugged the hd from a bondi blue mac ( a
powerpc g3 with a 4.3 GB 3.5" hd ) and i would like to clone this disk
to another bigger hd that is a 20gb 3.5". I would like to clone the hd
because the mac cdrom isn't working, and so installing from a fresh
install without cdrom is a big pain on that hardware.

So clonezilla is running on a standard intel pc where first i attach the
mac 4.3gb hd as a secondary slave, and once i have the image, i would
like to clone it on the 20gb disk.

I hope i have been clear enought this time.

Thank you.
--
Giulio Canevari


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
VOGLIA DI VACANZE ?
* A Riccione i Riviera Park Hotels sono gli alberghi specializzati per le vacanze nei parchi divertimento. Vieni nei Riviera Park Hotels! Ti aspettano sconti per tutti i parchi della Romagna! Prenota subito on-line la tua vacanza!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8094&d=8-7
Steven Shiau
2008-07-08 14:46:01 UTC
Permalink
So how about the previous questions ?
i.e.

When clonezilla live complains, please enter command line prompt,
then run:
df -h
cat /proc/partitions
then post the results.
Post by Giulio Canevari
Post by Steven Shiau
Oops...
Did you mean you are running a _PPC_ Mac ? or Intel-based Mac ?
I'm not running a mac. I have unplugged the hd from a bondi blue mac ( a
powerpc g3 with a 4.3 GB 3.5" hd ) and i would like to clone this disk
to another bigger hd that is a 20gb 3.5". I would like to clone the hd
because the mac cdrom isn't working, and so installing from a fresh
install without cdrom is a big pain on that hardware.
So clonezilla is running on a standard intel pc where first i attach the
mac 4.3gb hd as a secondary slave, and once i have the image, i would
like to clone it on the 20gb disk.
I hope i have been clear enought this time.
Thank you.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Giulio Canevari
2008-07-08 18:30:45 UTC
Permalink
Post by Steven Shiau
So how about the previous questions ?
I was waiting for a confirm, since i have read oops...

I have retried with -q2 ( and also with -q1 ).

Anyway i think i have found where is the problem ( but not how to solve
): sfdisk doesn't work with the mac partition tables, so it doesn't
recreate partitions.

The problem is in the sfdisk --force /dev/hdc <$PATH/hdc-pt.sf

hdc-pt.sf is a 0 byte file.
hdc-pt.parted instead looks this way:

Disk /dev/hdc: 8421839s
Sector size (logical/physical): 512B/512B
Partition Table: mac

Number Start End Size File system Name Flags
1 1s 63s 63s Apple
2 64s 2017s 1954s hfs untitled boot
3 2018s 7998111s 7996094s reiserfs Linux
4 7998112s 8421839s 423728s swap swap
Post by Steven Shiau
When clonezilla live complains, please enter command line prompt,
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 126M 0 126M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 126M 4.0K 126M 1% /dev/shm
rootfs 187M 81M 106M 44% /
/dev/hdd 77M 77M 0 100% /live_media
tmpfs 126M 20M 106M 16% /cow
tmpfs 126M 8.0K 126M 1% /tmp
/dev/sda1 466G 195G 272G 42% /home/partimag
Post by Steven Shiau
cat /proc/partitions
Thank you again.

Bye.
--
Giulio Canevari


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
TOUR ENOGASTRONOMICI ROMAGNA
* Hotel a Riccione organizza tour con degstazione in cantina e frantoio. Cena tipica e serata danzante
*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8089&d=8-7
Steven Shiau
2008-07-09 07:35:29 UTC
Permalink
OK, I will have to find a Mac OS to test it, and this might take a few
days to find why.

Steven.
Post by Giulio Canevari
Post by Steven Shiau
So how about the previous questions ?
I was waiting for a confirm, since i have read oops...
I have retried with -q2 ( and also with -q1 ).
Anyway i think i have found where is the problem ( but not how to solve
): sfdisk doesn't work with the mac partition tables, so it doesn't
recreate partitions.
The problem is in the sfdisk --force /dev/hdc <$PATH/hdc-pt.sf
hdc-pt.sf is a 0 byte file.
Disk /dev/hdc: 8421839s
Sector size (logical/physical): 512B/512B
Partition Table: mac
Number Start End Size File system Name Flags
1 1s 63s 63s Apple
2 64s 2017s 1954s hfs untitled boot
3 2018s 7998111s 7996094s reiserfs Linux
4 7998112s 8421839s 423728s swap swap
Post by Steven Shiau
When clonezilla live complains, please enter command line prompt,
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 126M 0 126M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 126M 4.0K 126M 1% /dev/shm
rootfs 187M 81M 106M 44% /
/dev/hdd 77M 77M 0 100% /live_media
tmpfs 126M 20M 106M 16% /cow
tmpfs 126M 8.0K 126M 1% /tmp
/dev/sda1 466G 195G 272G 42% /home/partimag
Post by Steven Shiau
cat /proc/partitions
Thank you again.
Bye.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 9762755A
Fingerprint -- A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Lewis Donofrio
2008-07-09 15:01:45 UTC
Permalink
Folks,

Sorta on subject - I seem to recall the only way I could make a cone
of an OSX system was to use Create an IMG using Disk Utility from the
OSX install CD its under tools toolbar. Then replace the drive and do
the same installer CD process to restore the IMG (bootable).

If you're looking for a working sfdisk perhaps the YellowDog Tree
would have more information on how to handle the seven OSX partitions
that are used by OSX.

--Just tring to help the cause.....
___________________________________
Lewis Donofrio 734-355-0592
Sr. Windows / Unix Systems Administrator
Post by Steven Shiau
OK, I will have to find a Mac OS to test it, and this might take a few
days to find why.
Steven.
Post by Giulio Canevari
Post by Steven Shiau
So how about the previous questions ?
I was waiting for a confirm, since i have read oops...
I have retried with -q2 ( and also with -q1 ).
Anyway i think i have found where is the problem ( but not how to solve
): sfdisk doesn't work with the mac partition tables, so it doesn't
recreate partitions.
The problem is in the sfdisk --force /dev/hdc <$PATH/hdc-pt.sf
hdc-pt.sf is a 0 byte file.
Disk /dev/hdc: 8421839s
Sector size (logical/physical): 512B/512B
Partition Table: mac
Number Start End Size File system Name Flags
1 1s 63s 63s Apple
2 64s 2017s 1954s hfs untitled boot
3 2018s 7998111s 7996094s reiserfs Linux
4 7998112s 8421839s 423728s swap swap
Post by Steven Shiau
When clonezilla live complains, please enter command line prompt,
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 126M 0 126M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 126M 4.0K 126M 1% /dev/shm
rootfs 187M 81M 106M 44% /
/dev/hdd 77M 77M 0 100% /live_media
tmpfs 126M 20M 106M 16% /cow
tmpfs 126M 8.0K 126M 1% /tmp
/dev/sda1 466G 195G 272G 42% /home/partimag
Post by Steven Shiau
cat /proc/partitions
Thank you again.
Bye.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 9762755A
Fingerprint -- A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Clonezilla-user mailing list
https://lists.sourceforge.net/lists/listinfo/clonezilla-user
Giulio Canevari
2008-07-09 15:32:13 UTC
Permalink
Post by Lewis Donofrio
Folks,
Sorta on subject - I seem to recall the only way I could make a cone
of an OSX system was to use Create an IMG using Disk Utility from the
OSX install CD its under tools toolbar. Then replace the drive and do
the same installer CD process to restore the IMG (bootable).
If you're looking for a working sfdisk perhaps the YellowDog Tree
would have more information on how to handle the seven OSX partitions
that are used by OSX.
The main partition of the disk actually contains debian on a reiser fs
and there isn't macos ( that btw, iirc, was 8.5 or something similar ).

But maybe yellow dog informations about sfdisk could be interesting.

Thank you anyway.
--
Giulio Canevari


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Cerchi un hotel per visitare i parchi della Romagna ? Oltremare, Aquafan, Mirabilandia e Fiabilandia ti aspettano. Scegli un RivieraParkHotels per la tua vacanza a Riccione
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8098&d=9-7
Steven Shiau
2008-07-10 02:29:15 UTC
Permalink
Post by Giulio Canevari
Post by Lewis Donofrio
Folks,
Sorta on subject - I seem to recall the only way I could make a cone
of an OSX system was to use Create an IMG using Disk Utility from the
OSX install CD its under tools toolbar. Then replace the drive and do
the same installer CD process to restore the IMG (bootable).
If you're looking for a working sfdisk perhaps the YellowDog Tree
would have more information on how to handle the seven OSX partitions
that are used by OSX.
The main partition of the disk actually contains debian on a reiser fs
and there isn't macos ( that btw, iirc, was 8.5 or something similar ).
But maybe yellow dog informations about sfdisk could be interesting.
Thank you anyway.
If all the partitions are using Linux filesystem, not HFS+, then
Clonezilla should work.
Could you please show me the content of sda-pt.sf and sda-pt.parted in
the image dir (replace sda with yours disk name).

Steven.
Giulio Canevari
2008-07-10 06:52:34 UTC
Permalink
In data 10/07/2008 04:29 Steven Shiau ha scritto:
...
Post by Steven Shiau
If all the partitions are using Linux filesystem, not HFS+, then
Clonezilla should work.
There are the first 2 very little partitions that are using apple
things. And also the partition table is mac-specific.
Post by Steven Shiau
Could you please show me the content of sda-pt.sf and sda-pt.parted in
the image dir (replace sda with yours disk name).
I can do this now, the output of sfdisk -d will come later:

hdc-pt.sf

empty file ( 0 byte )


hdc-pt.parted

Disk /dev/hdc: 8421839s
Sector size (logical/physical): 512B/512B
Partition Table: mac

Number Start End Size File system Name Flags
1 1s 63s 63s Apple
2 64s 2017s 1954s hfs untitled boot
3 2018s 7998111s 7996094s reiserfs Linux
4 7998112s 8421839s 423728s swap swap

Thank you.
--
Giulio Canevari


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Carta Eureka realizza i tuoi sogni! Fido fino a 3.000 eruo, rate a partire da 20 euro e canone gratis il 1° anno. Scoprila!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7876&d=10-7
Steven Shiau
2008-07-11 02:36:15 UTC
Permalink
Bingo!
This is the problem:
Partition Table: mac <--

If the table is listed by parted as gpt, then Clonezilla will use dd to
save and restore the GPT partition table. The Mac there is for PPC and
it's different lable.
Since we only tested with Mac OS X, and it's shown as "gpt" like this:
-------------------------
Disk /dev/sda: 156301487s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name
Flags
1 40s 409639s 409600s fat32 EFI System
Partition boot
2 409640s 19273615s 18863976s hfs+ Untitled
3 19535760s 57263712s 37727953s reiserfs primary
4 57525857s 60147307s 2621451s linux-swap swap
-------------------------
Maybe you can just modify those
| grep -iE "gpt")"
in /opt/drbl/sbin/ocs-functions as
| grep -iE "(gpt|mac)")"

and test it again ? (//NOTE// There are more than one, actually 3, you
have to modify.)

If it works, please let me know.

Regards,
Steven.
Post by Giulio Canevari
...
Post by Steven Shiau
If all the partitions are using Linux filesystem, not HFS+, then
Clonezilla should work.
There are the first 2 very little partitions that are using apple
things. And also the partition table is mac-specific.
Post by Steven Shiau
Could you please show me the content of sda-pt.sf and sda-pt.parted in
the image dir (replace sda with yours disk name).
hdc-pt.sf
empty file ( 0 byte )
hdc-pt.parted
Disk /dev/hdc: 8421839s
Sector size (logical/physical): 512B/512B
Partition Table: mac
Number Start End Size File system Name Flags
1 1s 63s 63s Apple
2 64s 2017s 1954s hfs untitled boot
3 2018s 7998111s 7996094s reiserfs Linux
4 7998112s 8421839s 423728s swap swap
Thank you.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Steven Shiau
2008-07-10 02:30:48 UTC
Permalink
Post by Giulio Canevari
Post by Steven Shiau
So how about the previous questions ?
I was waiting for a confirm, since i have read oops...
I have retried with -q2 ( and also with -q1 ).
Anyway i think i have found where is the problem ( but not how to solve
): sfdisk doesn't work with the mac partition tables, so it doesn't
recreate partitions.
The problem is in the sfdisk --force /dev/hdc <$PATH/hdc-pt.sf
hdc-pt.sf is a 0 byte file.
Disk /dev/hdc: 8421839s
Sector size (logical/physical): 512B/512B
Partition Table: mac
Number Start End Size File system Name Flags
1 1s 63s 63s Apple
2 64s 2017s 1954s hfs untitled boot
3 2018s 7998111s 7996094s reiserfs Linux
4 7998112s 8421839s 423728s swap swap
Post by Steven Shiau
When clonezilla live complains, please enter command line prompt,
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 126M 0 126M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 126M 4.0K 126M 1% /dev/shm
rootfs 187M 81M 106M 44% /
/dev/hdd 77M 77M 0 100% /live_media
tmpfs 126M 20M 106M 16% /cow
tmpfs 126M 8.0K 126M 1% /tmp
/dev/sda1 466G 195G 272G 42% /home/partimag
Post by Steven Shiau
cat /proc/partitions
Thank you again.
Bye.
Oops... You already did that.
Now please manually run this command in clonezilla live:
sfdisk -d /dev/hdc
and see if any error messages.

Steven.
Giulio Canevari
2008-07-10 08:25:33 UTC
Permalink
In data 10/07/2008 04:30 Steven Shiau ha scritto:
...
Post by Steven Shiau
Oops... You already did that.
sfdisk -d /dev/hdc
and see if any error messages.
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/hdc: unrecognized partition table type
No partitions found

Thank you again.
--
Giulio Canevari


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
RICCIONE FAMILY HOTELS:
* Cerchi un hotel per famiglie a Riccione ? Visita il sito
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8062&d=10-7
Giulio Canevari
2009-03-14 10:47:06 UTC
Permalink
Post by Giulio Canevari
Hello everyone,
i would like to clone a mac ppc hd, now using linux ( 4gb in 3
partitions + swap ) to a bigger and faster hd ( 20gb ).
In order to do so, i have plugged the 4.3gb hd on my standard intel pc,
launched clonezilla, and choosed savedisk ( saved on an external usb hd ).
After, i have plugged the 20gb hd on the pc, relaunched clonezilla, and
choosed the 20gb as target. It writes the first partition ( apple
bootstrap or something similar ), then it complains about hdd2 or sdd2
not existing and it exits.
I have seen there is a parted partition list, and partition type is mac.
I have solved with a brutal dd if=/dev/hda of=diskimage on the original
disk mounted on an intel pc ( note: the mac was running linux ), then i
have inserted the bigger one always on the pc, and dd if=diskimage
of=/dev/hda .

Next i have physically mounted the "big" disk on the imac, installed and
launched gparted and created a new partition on the unused space.

Ciao.
--
Giulio Canevari


--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Scopri Blu American Express, la carta per i tuoi acquisti in libertà, clicca per maggiori informazioni
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8696&d=14-3
Continue reading on narkive:
Loading...