Computing.Net > Forums > Linux > What does fsck / do?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

What does fsck / do?

Reply to Message Icon

Name: John Swanson
Date: March 21, 2002 at 15:37:46 Pacific
Comment:

I copied kernel 2.2.13 over 2.2.11 using W98.
Then ArmedLinux said there errors. I copied back the old kernel and restarted again. BUT still said there were errors and stopped at the bash. SOOO I typed:
fsck /
This worked away for a while AND,
now I have no HD, or particians or nuthin!
What have I done . . .???
Is there a way to undo what I did.

P150/32RAM/W98SE-ArmedLinux/D-Link NIC
John.



Sponsored Link
Ads by Google

Response Number 1
Name: Thomas Adam
Date: March 22, 2002 at 05:49:39 Pacific
Reply:

Oh Dear :-( That was very very stupid of you. I bet you were logged in as user ROOT too!!

What you've done, is you've just destroyed all the data on the drive.

fsck / is supposed to check the data integrety on the drive, but it can only do this, if the root of your drive (/) IS MOUNTED READ-ONLY....so, what you SHOULD have done, was the following:

1. init 6
2. At the Lilo prompt, type:

linux root=/dev/hdxx init=/bin/bash ro

(replacing "hdxx" with the device that your main linux partition is on...

Then, when you are at the shell, type:

fsck -f /

This will run a check on your drive. If there are any inodes that are "bad", they will be put in the directory:

"/Lost+Found"

The only way to undo your error is to replace the MBR -- I suggest a complete re-install....sorry!

Hope That Helps,

--Thomas Adam


0

Response Number 2
Name: John Swanson
Date: March 22, 2002 at 09:37:38 Pacific
Reply:

Indeed it does . . .

Thank-You!

I managed to get back up in record time and am now having trouble getting my NIC to work. I tried a compiled rtl8139.o but it was the wrong version. I use kernel 2.2.11
and have noidea of how to upgrade the whole kernel. That's how it screwed it up last time. I got a zillion error messages.

Can one find modules scattered all over Linux? Is there a generic dir for them?

The search flies by so fast I can't make note of where they are.

I found some at /lib/modules/2.2.11/net
3c501.o
3c503.o
3c505.o
3c509.o
3c515.o
8390.o
dummy.o
tulip.o
lance.o
*rtl8139.o

The last entry is bright yellow while the others blend in.

How can I do this?

Thanks,
John.



0

Response Number 3
Name: bunduk
Date: March 23, 2002 at 05:58:11 Pacific
Reply:

man
i think that u have spend 5 times more time on fixing your box than reinstalling a fresh copy.
it is hard to say good bye to a box u love but next time make tests on a different box


0

Response Number 4
Name: John Swanson
Date: March 23, 2002 at 07:09:56 Pacific
Reply:

I still wouldn't have rtl8139.o :(

Could you help me with that?
To compile a new kernel or
the above module to 2.2.11 ?
In general terms?
Not just how your dist works?
This ArmedLinux seems to store files in different places that other distros.

Thanks, John.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: What does fsck / do?

What does YUM do, exactly? www.computing.net/answers/linux/what-does-yum-do-exactly/28670.html

init - what does it do? dhcp, dns. www.computing.net/answers/linux/init-what-does-it-do-dhcp-dns/21589.html

What is Linux Doing?? www.computing.net/answers/linux/what-is-linux-doing/20129.html