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