Gentoo Archives: gentoo-ppc-user

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

Replies