LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2002, 08:25 PM   #1
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Rep: Reputation: 15
Question ext_2fs_check_if_mount problem


Sometime after installing my DVD-ROM (or reinstalling, once I got a working model) I began having extremely weird and frustrating things happen, especially at bootup. I see the following error messages:
"MOUNTING USB FILESYSTEM: Can't create lock file /etc/mtab/~75: read-only file system (use -n to override)"

"ext2fs_check_if_mount: input/output error while determining whether /dev/hdb7 is mounted [I don't remember that device in the setup -JM]"

"/ contains a file system with errors; check forced."

During the last error message, my HDD makes an irritating thrashing noise. I have to run fsck -A -V; echo ==$?== just about everytime I boot up [and then reboot] in order to get past this point. Once I'm up and running, I hear this thrashing noise a lot, especially when launching a program for the first time (a pain in the butt during SOF)

One last thing: when the bootup is complete, I get a long command line prompt, ending with "DIRCOLORS: 'etc/DIR_COLORS':no such file or directory" from here I can type startx, and KDE seems to run normally except for the thrashing noise and attendant slowdown.

I would appreciate any help very much!
 
Old 04-19-2002, 03:16 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232

If you don't use USB, disable it.
Then, use a boot disk/installation cd and run fsck on all partitions. It looks there is something not right. Running it when the partition is mounted won't always help.
 
Old 05-11-2002, 08:44 PM   #3
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the suggestion. Here's what I get when I boot from my rh 7.1 boot floppy: "Kernel panic: unable to mount root fs on 03:05". I'm out of ideas. I've got 3+ "linux bibles", but I'll be damned if I can find a freaking clue. Maybe it's me.

I've tried some other things, like disconnecting the DVD-ROM and rebooting; no difference from the above ext2fs business. I'm still having to run fsck whenever I boot up, and I swear I'm going to apply a baseball bat to the HD if it doesn't quit making that damn thrashing noise. Like it's looking for something and fussing at me because it can't find it.

I'd really like to resolve this. Thanks to anyone in advance.
 
Old 05-12-2002, 02:08 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have your RH installation cd? If yes, boot from it, choose "rescue" mode and try to run fsck from it.
 
Old 05-12-2002, 03:43 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
Just a thought

Sounds frustrating. Not being an expert, it just occurred to me: I had all kinds of problems with windows. I had Norton utilities installed, to doctor everything, memory checks and so.
I finally installed Linux. Straight away the mem check program in the start up menu found that the RAM was at fault, at 64.7 MB. I replaced it and since then have had no trouble with the physical side of things, just getting software to work under Linux is not easy for me.
As I say, just a thought, you might like to check the physical side of things.

Good Luck
Peter
 
Old 05-13-2002, 01:47 AM   #6
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Original Poster
Rep: Reputation: 15
I really appreciate your attention. I booted from the installation CD and typed in "linux rescue" at the prompt. However, when I try to run fsck, I get "Parallelizing fsck version 1.19 (13 Jul-2000) WARNING: Couldn't open /etc/fstab: No such file or directory." What am I doing wrong? Thanks again.
 
Old 05-13-2002, 10:38 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well, you should be able to use fsck without fstab... Which options are you using and how do you start fsck?
 
Old 05-13-2002, 12:35 PM   #8
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Original Poster
Rep: Reputation: 15
I rebooted, went into BIOS, and forced bootup from the CDROM. At the prompt I entered "linux rescue". I got a prompt for which language and keyboard, then it says it's running anaconda and to please wait. I'm guessing it then goes to a bash shell prompt. Then I type in "fsck -V -A; echo == $? =="
Thanks,
Jamie
 
Old 05-13-2002, 03:22 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Acha! Now it's clear. -A option means fsck reads fstab and checks all filesystem mentioned there. Use
fsck /dev/xxxx (maybe with -V if you wish), where xxxx is your / (hda5, probably; try cat /proc/partitions to see the list).
 
Old 05-13-2002, 11:57 PM   #10
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Original Poster
Rep: Reputation: 15
I booted from the installation CD, typed in "linux rescue", and ran "fsck /dev/hdb7 (where my / is); echo ==$?==". Leaving off the "-A" did seem to help things along, though I noticed it still said, "Couldn't open /etc/fstab; no such file or directory." Then, "/ contains a file system with errors, check forced." Then it went through the thrashing thing, correcting the short reads, etc. I answered "y" to everything, then typed "exit" and then "halt" at the bash prompt, and then rebooted the regular way. No difference at all. Any other ideas? I'm willing to try pretty muchanything at this point.
 
Old 05-14-2002, 12:57 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Could you try this again? I mean reboot, run it once, then again without reboot. The second time there should be no error (or only those most serious ones). If still errors, run it the third time etc. (2 runs are my maximum, I've never had a situation to run it the third time).
 
Old 05-15-2002, 12:36 AM   #12
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Original Poster
Rep: Reputation: 15
I rebooted from the installation CD, ran fsck on /dev/hdb7 three times (as well as three times on hdb1 and 5). It kept returning "== 0 ==". When I then booted normally from the HD, I still had to run fsck and reboot again in order to get through the boot process. All the error messages look the same, and it's still thrashing. It appears nothing has changed.

I don't know if this might be a clue or not, but a common thread among the error messages seems to be that the system doesn't seem to be able to see /etc or anything in it.

Thanks for your perseverance; I really appreciate the help.

Last edited by j4m13; 05-15-2002 at 12:38 AM.
 
Old 05-15-2002, 02:00 PM   #13
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Os your /etc on /dev/hdb7 or somewhere else?
 
Old 05-15-2002, 03:26 PM   #14
j4m13
Member
 
Registered: Sep 2001
Location: Denton, Texas
Distribution: slack 9.1
Posts: 32

Original Poster
Rep: Reputation: 15
I hate to be so ignorant, but how would I go about finding out?
 
Old 05-18-2002, 02:09 AM   #15
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
I find the quickest way to locate anything in Linux is simply locate, in a console.

e.g. locate hdb7
or locate *.png
Finds everything really fast!! Sometimes more than you need!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 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