View previous topic :: View next topic |
Author |
Message |
eqlazer n00b
Joined: 07 Dec 2005 Posts: 33 Location: Gothenburg, Sweden
|
Posted: Sat Jan 21, 2006 1:25 pm Post subject: fsck problem at boot [SOLVED] |
|
|
Hi, I recently got an IBM 600e to play with, and ofcourse I want gentoo on it. I have managed to install a functionally system with X.
To get the sound working is a later problem, for now the most irritating thing is something during boot.
When boot fsck wants to check hda1 which is the /boot partition.
It says this (almost, it actually asks for root-passwd to be able to run fsck manually or ctrl-D for resumed boot which works fine):
Code: |
chemical / # fsck /dev/hda1
fsck 1.37 (21-Mar-2005)
e2fsck 1.37 (21-Mar-2005)
The filesystem size (according to the superblock) is 391196 blocks
The physical size of the device is 98248 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?
|
fdisk -l:
Code: |
Disk /dev/hda: 6448 MB, 6448619520 bytes
15 heads, 63 sectors/track, 13328 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 208 98248+ 83 Linux
/dev/hda2 209 1036 391230 82 Linux swap / Solaris
/dev/hda3 1037 13328 5807970 83 Linux
|
/etc/fstab:
Code: |
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
|
From what I know the partition table should be correct, so how do I change the superblock to show the correct?
Or is there any other problems/solutions?
(btw. This is a great forum, so far I have managed to find answers to almost all my previous problems I had whith my workstation and server)
Last edited by eqlazer on Sat Jan 21, 2006 2:07 pm; edited 1 time in total |
|
Back to top |
|
|
polle Veteran
Joined: 28 Feb 2003 Posts: 1498 Location: Belgium
|
|
Back to top |
|
|
eqlazer n00b
Joined: 07 Dec 2005 Posts: 33 Location: Gothenburg, Sweden
|
Posted: Sat Jan 21, 2006 2:06 pm Post subject: |
|
|
Thanks, it worked out fine.
I did something like this:
Code: |
mount /boot
cp -ax /boot/ /tmp/
umount /boot
mkfs.ext2 /dev/hda1
mount /boot
cp -ax /tmp/boot/*
|
After that I ran fsck and it is just perfect, thanks polle.
(only sound to battle whith now ) |
|
Back to top |
|
|
polle Veteran
Joined: 28 Feb 2003 Posts: 1498 Location: Belgium
|
|
Back to top |
|
|
|