LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2007, 11:00 AM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 199

Rep: Reputation: 16
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?

Last edited by Micik; 09-30-2007 at 11:03 AM.
 
Old 09-30-2007, 01:15 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
what is the command you used?

i hope you didnt fsck a rw mounted drive, that can cause problems.
 
Old 09-30-2007, 02:23 PM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 09-30-2007, 03:05 PM   #4
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 199

Original Poster
Rep: Reputation: 16
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
 
Old 09-30-2007, 04:28 PM   #5
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help using Rescue Mode - How to fsck(power outage caused kernal panic on bootup) Arodef Red Hat 3 04-16-2006 11:44 AM
Need help using Rescue Mode - How to fsck(power outage caused kernal panic on bootup Arodef Linux - Software 1 04-08-2006 01:54 AM
Problems caused by swaret update or...?Help technobeast Slackware 4 11-03-2004 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration