View previous topic :: View next topic |
Author |
Message |
mizty n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sat Dec 17, 2005 1:58 pm Post subject: Problems when booting on ibook G4[SOLVED] |
|
|
Hi all
When the boot sequence takes off on my ibook, I get this error:
Code: | * Checking all filesystems ...
fsck.ext2: Bad number in super-block while trying to open /dev(hda2
/dev/hda2:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternative superblock:
e2fsck -b 8193 <device>
* Fsck could not correct all errors, manual repair needed
Give root password for maintenance
(or type Control-D for continue): |
My bootstrap partition is on /dev/hda2.
Anybody know how to correct this?
- Mizty
Last edited by mizty on Mon Dec 19, 2005 12:29 pm; edited 1 time in total |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Sat Dec 17, 2005 2:18 pm Post subject: |
|
|
Welcome.
Format the partition (mkfs.ext2 /dev/hda2), then run /usr/sbin/ybin to make it bootable again. |
|
Back to top |
|
|
mizty n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sat Dec 17, 2005 3:42 pm Post subject: |
|
|
jedsen wrote: | Welcome.
Format the partition (mkfs.ext2 /dev/hda2), then run /usr/sbin/ybin to make it bootable again. |
Thank you, glad to be onboard
With the commands you give me, I get this when I run ybin:
Code: | hmount: /dev/hda2: Not a Macintosh HFS volume (Invalid argument)
ybin: /dev/hda2 appears to have never had a bootstrap installed, please run mkofboot |
When I then run mkofboot, it asks me if I want to create a hfs filesystem on /dev/hda2. If I say no, mkofboot exits, if I say yes, I get the same problem when booting as before...
Any suggestions?
- Mizty |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Sat Dec 17, 2005 4:19 pm Post subject: |
|
|
If mkofboot is making your boot partition hfs, you can simply change your bootstrap filesystem type to "hfs" in "/etc/fstab".
If this doesn't work you can change the value mentioned to "none" or "boot". |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat Dec 17, 2005 5:20 pm Post subject: |
|
|
Often the second partition needs to be an apple bootstrap partition. You can create one with mac-fdisk and you do not create a filesystem on it. And you don't add it to fstab either. If you use a boot partition (which is not recommended) it is not the apple bootstrap partition. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Sat Dec 17, 2005 5:23 pm Post subject: |
|
|
So I can take my boot partition out of fstab? |
|
Back to top |
|
|
mizty n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sat Dec 17, 2005 6:06 pm Post subject: |
|
|
Okay, I ran into a problem now. I reformatted my bootpartition to ext2 again, and accidently forgot to make it a boot partition again. So now it just boots into Mac Os X, and of I start up the computer with Option held down, it doesn't show my linux partition. Is there a way to boot into my partition now? Maybe with the help of my live cd or something?
- Mizty |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Sat Dec 17, 2005 6:20 pm Post subject: |
|
|
A live CD would be a good choice.
My mistake about the bootstrap partition. It should be hfs, I guess, and there shouldn't be an entry for it in /etc/fstab (i've removed mine.
Once you're booted into your livecd, try mounting your root partition, then run yabootconfig --chroot /mnt/gentoo. |
|
Back to top |
|
|
mizty n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sun Dec 18, 2005 5:02 pm Post subject: |
|
|
I have no idea whatsoever on how to mount my root partition. It is /dev/hda4 but neither the cd nor the mount nor the chroot command works with /dev/hda4. Could you perhaps give me a quick hint (or a detailed explanation on how to mount my root partition on the HD...?
- Mizty |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Mon Dec 19, 2005 12:23 am Post subject: |
|
|
Code: | mount /dev/hda4 /mnt/gentoo
mount /dev/hda1/ /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc | should do it. You did it before you installed you stage tarball. Then run:
Code: | yabootconfig --chroot /mnt/gentoo |
|
|
Back to top |
|
|
|