On Tue, Aug 31, 2010 at 12:07 PM, Mark Knecht <[email protected]> wrote: > Hi all, > I have a Mac Mini that I've used for the last couple of years. I > was trying to get it up to date but at some point it failed with a > message about the main root partition not being an ext2 filesystem. I > took the opportunity to rebuild the machine from scratch, at this > point twice, but I continue to get the same message. I'm trying to > determine if something about the machine is completely hosed and the > machine will never work again or if it's just some problem I'm having. > > In these rebuiilds I went the direction of completely wiping the > hard drive and starting from scratch. I used mac-fdisk, hit 'i', had > only the Apple partition map, and then created the next 3 partitions > as per the install guide. The installs (both of them) went cleanly and > I didn't seem to have any problems running yabootconfig as far as I > can tell. No complaints from the software except for my typing a path > to the kernel incorrectly a couple of times. Once I got that right it > seemed to finish and created the yaboot.conf file below. > > When I attempt to boot the system finds the kernel, does all the > early boot stuff, says it finds /dev/hda and /dev/hda, then it starts > the init stuff with the green '*' and [OK] on the right until it wants > to mount the root partition. At that point it tells me the partition > is wrong, not ext2, and quits. > > I don't understand how the partition can be incorrect if it's good > enough to find the kernel to boot. > > Can someone set me right on what I might be doing incorrectly here. > If the info below isn't enough let me know what you need. > > Thanks, > Mark > > > livecd ~ # mac-fdisk /dev/hda > /dev/hda > Command (? for help): p > /dev/hda > # type name length base > ( size ) system > /dev/hda1 Apple_partition_map Apple 63 @ 1 > ( 31.5k) Partition map > /dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 > (800.0k) NewWorld bootblock > /dev/hda3 Apple_UNIX_SVR2 swap 2097152 @ 1664 > ( 1.0G) Linux swap > /dev/hda4 Apple_UNIX_SVR2 root 154202672 @ > 2098816 ( 73.5G) Linux native > > Block size=512, Number of Blocks=156301488 > DeviceType=0x0, DeviceId=0x0 > > Command (? for help): q > livecd ~ # > > livecd ~ # mount /dev/hda4 /mnt/gentoo/ > livecd ~ # mount -t proc none /mnt/gentoo/proc > livecd ~ # mount -o bind /dev /mnt/gentoo/dev > livecd ~ # chroot /mnt/gentoo /bin/bash > livecd / # env-update >>>> Regenerating /etc/ld.so.cache... > livecd / # source /etc/profile > livecd / # export PS1="(chroot) $PS1" > (chroot) livecd / # ls -al /boot/ > total 5064 > drwxr-xr-x 2 root root 4096 Aug 28 16:51 . > drwxr-xr-x 19 root root 4096 Aug 31 10:17 .. > -rw-r--r-- 1 root root 0 Aug 22 03:50 .keep > lrwxrwxrwx 1 root root 1 Aug 28 15:23 boot -> . > -rwxr-xr-x 1 root root 5195929 Aug 31 09:31 kernel-2.6.34-gentoo-r1 > (chroot) livecd / # > > (chroot) livecd / # cat /etc/yaboot.conf > ## yaboot.conf generated by yabootconfig 1.0.8 > ## > ## run: "man yaboot.conf" for details. Do not make changes until you have!! > ## > ## For a dual-boot menu, add one or more of: > ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ > > boot=/dev/hda2 > device=/p...@f4000000/at...@d/d...@0: > partition=4 > root=/dev/hda4 > timeout=30 > install=/usr/lib/yaboot/yaboot > magicboot=/usr/lib/yaboot/ofboot > > image=/boot/kernel-2.6.34-gentoo-r1 > label=Linux > read-only > (chroot) livecd / # >
The messages on the screen when trying to boot are: * Checking root filesystem ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/da4 is mounted. fsck.ext3: No such file or directory while trying to open /dev/hda4 /dev/hda4: The superblock could not be read or does not describe a correct ext2 filesystem. <snip> * Filesystem couldn't be fixed. :( - Mark
