LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fsck.ext2 - booting problems -- HELP (https://www.linuxquestions.org/questions/linux-software-2/fsck-ext2-booting-problems-help-193821/)

blo1005 06-15-2004 12:39 PM

fsck.ext2 - booting problems -- HELP
 
Hey all, I'm running Gentoo on 2600+ and 512 MB RAM. I have a 200GB hd w/ 3 partitions-- hda1 (boot) hda 3(root) and hda4 (/home/user)

anyway, everything was running okay- but i noticed that i couldnt log into root from my shell... which i figured could be solved by a reboot. anyway, i restarted the system and it gave me this error on startup:

checking root filesystem ..
fsck: fsck.xfs not found
fsck: Error 2 while executing fsck.xfs for /dev/ROOT

.....

fsck.ext2: No such file or directory while trying to open /dev/BOOT
/dev/BOOT:
The supermount could not be read or it doesn't describe a correct ext2 filesystem. If device is valid and it contains ext2 filesystem(and not swap or system or somely device), then the superbloxk is corrrupted, and you might try running e2fsch with an allernative system file
e2fsck -b 8193 <device>


Fsck could not correct all errors, manual repair needed [!!]
Root password or Control-D for normal startup:
--> CtrlD: takes me to X11 login screen-- when I attempt to log in, gives me a blank screen
--> cd /sbin then ./fsck but no luck, gives the above supermount error msg again.

so I do e2fsck -b 8193 /dev/hda1 then it tells me that disk was uncleanly mounted, check forced. then asks if I would like to fix such and such-- after all that then it tells me that I have 3.4% noncontiguous disk space.


I know for sure the data is all still there b/c when I pop in a Knoppix CD, I can still see everything. So its not a hardware problem...

Also, my sshd still runs (I think) so I suppose I could ssh into my box and cp all the important data out of it... but I'd like to fix it rather than format

THANKS in advance to all for the help!!

flbwhx 06-15-2004 09:51 PM

maybe the fsck and fsck.ext2 is damaged,so you can try the following step:
1.find a floppy disk and copy fsck and fsck.ext2 file from other computer,of course this computer is running the same operating system(linux).
2.restart you computer by linux install cd-rom,maybe you should change your BIOS setting.
3.select the rescue mode.
4.mount the floppy disk.
5. replace your fsck and fsck.ext2 by the right fsck and fsck.ext2.

my english is poor,maybe above is not clear!

good luck!

blo1005 06-16-2004 01:43 AM

i did what you suggested-- i popped in my gentoo LiveCD and copied over the fsck files to my /sbin ... same error seemed to pop up when i rebooted. no luck...

btw, your directions were very understandable =)


All times are GMT -5. The time now is 09:30 AM.