Gentoo Archives: gentoo-ppc-user

From: Zhang Weiwu <zhangweiwu@××××××.com>
To: gentoo-ppc-user@l.g.o
Subject: [gentoo-ppc-user] how to recover Mac OS X boot partition
Date: Mon, 29 Sep 2008 05:24:24
Message-Id: 48E06684.8030006@realss.com
1 Hello. I have Mac OS X 10.4 and Gentoo Linux dual-boot with yaboot on my
2 iBook/G3. Today I accidentally destroyed /dev/hda2, the Mac OS boot
3 partition, by using:
4
5 # mke2fs /dev/hda2
6
7 Is there a way to recover? If Mac OS X boot partition is pretty
8 standard, I guess I should be able to recover just by asking someone in
9 the mailing list to send an image of that partition and recover the
10 image. The following is my partition layout
11
12 zhangweiwu@esmeralda:~$ sudo mac-fdisk -l /dev/hda
13 /dev/hda
14 # type name length base ( size ) system
15 /dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
16 /dev/hda2 Apple_Boot eXternal booter 262144 @ 64 (128.0M) Unknown
17 /dev/hda3 Apple_HFSX Apple_HFSX_Untitled_1 75044712 @ 262208 ( 35.8G) Unknown
18 /dev/hda4 Apple_Bootstrap bootstrap 1600 @ 75306920 (800.0k) NewWorld bootblock
19 /dev/hda5 Apple_UNIX_SVR2 Swap 1638400 @ 75308520 (800.0M) Linux swap
20 /dev/hda6 Apple_UNIX_SVR2 Root 61276160 @ 76946920 ( 29.2G) Linux native
21 /dev/hda7 Apple_UNIX_SVR2 Home 42229208 @ 138223080 ( 20.1G) Linux native