1 |
On 09/22/10 18:59, Mark Knecht wrote: |
2 |
> Hi, |
3 |
> OK, I'm dead tired. I admit it - yaboot has kicked my butt this |
4 |
> time around. Can anyone help? I did post this problem here 2-3 weeks |
5 |
> ago but still haven't been able to solve the problem so I'm back to |
6 |
> the well for another drink. |
7 |
> |
8 |
> The machine is the original 80GB PPC Mac Mini. I used to run Gentoo |
9 |
> on it and it ran great for years so I know at one time yaboot worked |
10 |
> just fine. For various reasons I hadn't updated it in a long, long |
11 |
> time (2 years) and instead of trying to go through the Gentoo update |
12 |
> process which is difficult after that much time I decided to just do a |
13 |
> new install. I saved copies of my kernel config and etc/make.conf but |
14 |
> unfortunately, being primarily an x86 guy didn't think to save |
15 |
> yaboot.conf and fstab. I've now done 5 complete Gentoo installs, |
16 |
> starting over from scratch in case something I was doing was messing |
17 |
> things up but so far I cannot get the machine to boot. Every time, no |
18 |
> matter what I do at install time, I get a message |
19 |
> |
20 |
> "Can't check if filesystem is mounted due to a missing mtab file" |
21 |
> |
22 |
> A somewhat out of focus screen shot is shown here: |
23 |
> |
24 |
> http://www.flickr.com/photos/29328985@N03/5014227831 |
25 |
> |
26 |
> Generally speaking I'm following the Gentoo PPC install guide located here: |
27 |
> |
28 |
> http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=10 |
29 |
> |
30 |
> I've tried both the yabootconfig method as well as manual route. |
31 |
> Nothing works for me so far. THey both fail the same way. |
32 |
> |
33 |
> It's not in the photo but all the way through the boot the kernel |
34 |
> calls the hard drives /dev/hda so I'm assuming that's correct in |
35 |
> fstab. |
36 |
> |
37 |
> The kernel is 2.6.34-gentoo-r2 and the kernel config file is attached. |
38 |
> ext3 is built into the kernel so that shouldn't be a problem. I built |
39 |
> the kernel using the older 2.6.31 kernel config I saved. |
40 |
> |
41 |
> As a _hardware_ test I reinstalled the old OS X that came with the |
42 |
> machine and it boots fine. I blew it away and installed Ubuntu 10.04 |
43 |
> for the PPC and it boots fine, but Ubuntu uses and initrc which I've |
44 |
> never used before with Gentoo. (And why on this machine as the |
45 |
> hardware is fixed has kernel drivers.) |
46 |
> |
47 |
> I'm a long time Gentoo user. The main Gentoo install seems to work |
48 |
> fine on this machine. As best I can tell it's only the yaboot stuff |
49 |
> not booting that's holding me up from using this little machine again. |
50 |
> |
51 |
> Can anyone see what I've done wrong? |
52 |
> |
53 |
> Thanks, |
54 |
> Mark |
55 |
> |
56 |
> livecd ~ # mount /dev/hda4 /mnt/gentoo |
57 |
> livecd ~ # mount -t proc none /mnt/gentoo/proc |
58 |
> livecd ~ # mount -o bind /dev /mnt/gentoo/dev |
59 |
> livecd ~ # mount -o bind /sys /mnt/gentoo/sys |
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 / # cat /etc/yaboot.conf |
66 |
> |
67 |
> boot=/dev/hda2 |
68 |
> #device=/pci@f4000000/ata-6@d/disk@0: |
69 |
> device=hd: |
70 |
> timeout=30 |
71 |
> install=/usr/lib/yaboot/yaboot |
72 |
> magicboot=/usr/lib/yaboot/ofboot |
73 |
> |
74 |
> image=/boot/kernel-2.6.34-gentoo-r1 |
75 |
> label=Gentoo-2.6.34-r1 |
76 |
> partition=4 |
77 |
> root=/dev/hda4 |
78 |
> read-only |
79 |
> (chroot) livecd / # mac-fdisk -l /dev/hda |
80 |
> /dev/hda |
81 |
> # type name length base |
82 |
> ( size ) system |
83 |
> /dev/hda1 Apple_partition_map Apple 63 @ 1 |
84 |
> ( 31.5k) Partition map |
85 |
> /dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 |
86 |
> (800.0k) NewWorld bootblock |
87 |
> /dev/hda3 Apple_UNIX_SVR2 swap 2097152 @ 1664 |
88 |
> ( 1.0G) Linux swap |
89 |
> /dev/hda4 Apple_UNIX_SVR2 root 154202672 @ |
90 |
> 2098816 ( 73.5G) Linux native |
91 |
> |
92 |
> Block size=512, Number of Blocks=156301488 |
93 |
> DeviceType=0x0, DeviceId=0x0 |
94 |
> |
95 |
> (chroot) livecd / # cat /etc/fstab |
96 |
> /dev/hda4 / ext3 noatime 0 1 |
97 |
> /dev/hda3 none swap sw 0 0 |
98 |
> |
99 |
> /dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
100 |
> |
101 |
> proc /proc proc defaults 0 0 |
102 |
> shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
103 |
> (chroot) livecd / # ybin -v |
104 |
> ybin: Finding OpenFirmware device path to `/dev/hda2'... |
105 |
> ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/hda2... |
106 |
> ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/hda2... |
107 |
> ybin: Installing /etc/yaboot.conf onto /dev/hda2... |
108 |
> ybin: Setting attributes on ofboot... |
109 |
> ybin: Setting attributes on yaboot... |
110 |
> ybin: Setting attributes on yaboot.conf... |
111 |
> ybin: Blessing /dev/hda2 with Holy Penguin Pee... |
112 |
> ybin: Updating OpenFirmware boot-device variable in nvram... |
113 |
> (chroot) livecd / # ls -al /boot/kernel* |
114 |
> -rwxr-xr-x 1 root root 5547992 Sep 22 11:06 /boot/kernel-2.6.34-gentoo-r1 |
115 |
> (chroot) livecd / # exit |
116 |
> exit |
117 |
> livecd ~ # umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo/sys /mnt/gentoo |
118 |
> livecd ~ # |
119 |
> livecd ~ # |
120 |
After looking at the screen shot, I think I have a different idea as to |
121 |
why it might be failing and I don't think it's Yaboot. If you've gotten |
122 |
to init, yaboot's job is already done. |
123 |
|
124 |
Can you boot the install CD and chroot into the install again? When you |
125 |
get it up and running, check to see if fsck.ext3 exists. Even if it |
126 |
does, re-emerge e2fsprogs and see if that helps. |
127 |
-Joe |