Gentoo Archives: gentoo-ppc-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-ppc-user@l.g.o
Subject: [gentoo-ppc-user] Re: New install - Unable to get my ppc Mac Mini to boot the root partition
Date: Tue, 31 Aug 2010 19:13:48
Message-Id: AANLkTikwLGrof697fAKWAQ4bfxpCTR7cdtrkAaHSVWyj@mail.gmail.com
In Reply to: [gentoo-ppc-user] New install - Unable to get my ppc Mac Mini to boot the root partition by Mark Knecht
1 On Tue, Aug 31, 2010 at 12:07 PM, Mark Knecht <markknecht@×××××.com> wrote:
2 > Hi all,
3 >   I have a Mac Mini that I've used for the last couple of years. I
4 > was trying to get it up to date but at some point it failed with a
5 > message about the main root partition not being an ext2 filesystem. I
6 > took the opportunity to rebuild the machine from scratch, at this
7 > point twice, but I continue to get the same message. I'm trying to
8 > determine if something about the machine is completely hosed and the
9 > machine will never work again or if it's just some problem I'm having.
10 >
11 >   In these rebuiilds I went the direction of completely wiping the
12 > hard drive and starting from scratch. I used mac-fdisk, hit 'i', had
13 > only the Apple partition map, and then created the next 3 partitions
14 > as per the install guide. The installs (both of them) went cleanly and
15 > I didn't seem to have any problems running yabootconfig as far as I
16 > can tell. No complaints from the software except for my typing a path
17 > to the kernel incorrectly a couple of times. Once I got that right it
18 > seemed to finish and created the yaboot.conf file below.
19 >
20 >   When I attempt to boot the system finds the kernel, does all the
21 > early boot stuff, says it finds /dev/hda and /dev/hda, then it starts
22 > the init stuff with the green '*' and [OK] on the right until it wants
23 > to mount the root partition. At that point it tells me the partition
24 > is wrong, not ext2, and quits.
25 >
26 >   I don't understand how the partition can be incorrect if it's good
27 > enough to find the kernel to boot.
28 >
29 >   Can someone set me right on what I might be doing incorrectly here.
30 > If the info below isn't enough let me know what you need.
31 >
32 > Thanks,
33 > Mark
34 >
35 >
36 > livecd ~ # mac-fdisk /dev/hda
37 > /dev/hda
38 > Command (? for help): p
39 > /dev/hda
40 >        #                    type name                  length   base
41 >    ( size )  system
42 > /dev/hda1     Apple_partition_map Apple                     63 @ 1
43 >    ( 31.5k)  Partition map
44 > /dev/hda2         Apple_Bootstrap bootstrap               1600 @ 64
45 >    (800.0k)  NewWorld bootblock
46 > /dev/hda3         Apple_UNIX_SVR2 swap                 2097152 @ 1664
47 >    (  1.0G)  Linux swap
48 > /dev/hda4         Apple_UNIX_SVR2 root               154202672 @
49 > 2098816   ( 73.5G)  Linux native
50 >
51 > Block size=512, Number of Blocks=156301488
52 > DeviceType=0x0, DeviceId=0x0
53 >
54 > Command (? for help): q
55 > livecd ~ #
56 >
57 > livecd ~ # mount /dev/hda4 /mnt/gentoo/
58 > livecd ~ # mount -t proc none /mnt/gentoo/proc
59 > livecd ~ # mount -o bind /dev /mnt/gentoo/dev
60 > livecd ~ # chroot /mnt/gentoo /bin/bash
61 > livecd / # env-update
62 >>>> Regenerating /etc/ld.so.cache...
63 > livecd / # source /etc/profile
64 > livecd / # export PS1="(chroot) $PS1"
65 > (chroot) livecd / # ls -al /boot/
66 > total 5064
67 > drwxr-xr-x  2 root root    4096 Aug 28 16:51 .
68 > drwxr-xr-x 19 root root    4096 Aug 31 10:17 ..
69 > -rw-r--r--  1 root root       0 Aug 22 03:50 .keep
70 > lrwxrwxrwx  1 root root       1 Aug 28 15:23 boot -> .
71 > -rwxr-xr-x  1 root root 5195929 Aug 31 09:31 kernel-2.6.34-gentoo-r1
72 > (chroot) livecd / #
73 >
74 > (chroot) livecd / # cat /etc/yaboot.conf
75 > ## yaboot.conf generated by yabootconfig 1.0.8
76 > ##
77 > ## run: "man yaboot.conf" for details. Do not make changes until you have!!
78 > ##
79 > ## For a dual-boot menu, add one or more of:
80 > ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
81 >
82 > boot=/dev/hda2
83 > device=/pci@f4000000/ata-6@d/disk@0:
84 > partition=4
85 > root=/dev/hda4
86 > timeout=30
87 > install=/usr/lib/yaboot/yaboot
88 > magicboot=/usr/lib/yaboot/ofboot
89 >
90 > image=/boot/kernel-2.6.34-gentoo-r1
91 >        label=Linux
92 >        read-only
93 > (chroot) livecd / #
94 >
95
96 The messages on the screen when trying to boot are:
97
98 * Checking root filesystem
99 ext2fs_check_if_mount: Can't check if filesystem is mounted due to
100 missing mtab file while determining whether /dev/da4 is mounted.
101 fsck.ext3: No such file or directory while trying to open /dev/hda4
102 /dev/hda4:
103 The superblock could not be read or does not describe a correct ext2
104 filesystem.
105 <snip>
106
107 * Filesystem couldn't be fixed. :(
108
109 - Mark

Replies