LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fsck caused problems (https://www.linuxquestions.org/questions/linux-newbie-8/fsck-caused-problems-588407/)

Micik 09-30-2007 11:00 AM

fsck caused problems
 
Hello guys,
I wanted to see how fsck works and execute this command when computer was in ordinary working mode (through terminal from GUI), now I cannot start GUI any more adn I can only login as root (root@(none)). Now when I execute fsck it found and correct errors, but when I try to restart with init 6 I get error message "INIT cannot execute /etc/rc.d/rc", something like that... I thought fsck is supposed to fix things, not to screw them up... :(
Also, when I use RESET button, again I can only login as root, GUI (KDE) cannot start and every time I execute fsck -p, I get message /dev/hdb1 (this is where mandrake is installed) contains errors, check forced and ....(0.3% nom-contigous).../... blocks
What should I do?

AAnarchYY 09-30-2007 01:15 PM

what is the command you used?

i hope you didnt fsck a rw mounted drive, that can cause problems.

b0uncer 09-30-2007 02:23 PM

Quote:

Originally Posted by Micik
I wanted to see how fsck works and execute this command when computer was in ordinary working mode---

Quote:

Originally Posted by AAnarchYY
i hope you didnt fsck a rw mounted drive, that can cause problems.

Exactly. You should have read the instructions first..and if everything is working all right, you don't have a reason to use it (not even "test"), so you shouldn't have. Well, now that you have, you should fix things up if possible. Run fsck on the same partition you ran it in the first case, but this time don't mount the partition like you usually would. If it can fix the trouble, all right, but if it can't, see what the problem is and what actions it requires; a reinstall is the worst case I can think of, along formatting the partition, but that's how it goes.

Micik 09-30-2007 03:05 PM

Well, I did just that... I've run fsck on mounted partition because if I'm not wrong that partition is mounted automatically when GUI (KDE) is started. Now when I start computer I can only see login:
I have tried to umount the same partition and run fsck but every time I restart machine and run fsck it finds and fix problems, but no effect.
I have two questions:
1. Is it ok just to type "umount /dev/hdb1" from root directory just to unmount /hdb1, when I type that I don't get any error message, just shell again?
2. Whwn I log in as root, and try to restart computer with init 6 I get error message INIT: cannot execute /etc/rc.d/rc and INIT no more process left in this run level

AAnarchYY 09-30-2007 04:28 PM

remount it read-only
Code:

mount -ro remount /dev/hdb1
then run fsck

if that still craps out, try booting off a cd like knoppix and fsck it from that.


All times are GMT -5. The time now is 12:06 AM.