LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-23-2004, 03:36 PM   #1
CatLinuz
LQ Newbie
 
Registered: Feb 2004
Distribution: redhat
Posts: 2

Rep: Reputation: 0
How to Repair a Filesystem?


I need help!

I am using rh9 and running only a txt based system. Before I encountered problems, I activated fsck and the shutdown -h now command.
After that, error occured informing me that filesystem initialization failed: here are some lines of failed initialization:

loading default keymap(us):
/etc/rc.d/rc.sysinit: line 16222:/dev/null: read-only filesystem [failed]

setting hostname localhost.localdomain: dup2: bad file descriptor [failed]
/etc/rc.sysinit:line 173: /dev/null:read only filesystem
initializing USB controll(EHCCI-HCO) [failed]

awk: cmd.. line:2: fatal: cannot open file "/proc/mount for readn(no such file of directory)

checking root filesystem
dup2: bad file descriptor [failed]

*** dropping you to a shell
*** when you like tehe shell give root password of maintenance
(or type control-d to continue):
repair filesystem 1#:

i look for ways and found this command:

fsck -V -A

i tried the command but returned error msg:

couldn't open /proc/partitions:
no such file or directory
is /proc mounted?

so i mounted the /proc and execute the fsck.

then an infinite loop msg appears "ext3-fs error (device ide0(3,3));ext3_readdir: bad entry in directory # 32449: rec_len%4!=0-offset = 2984, inode = 1281453, rec_len= 36270, name_len = 19

here is the copy of my fstab file. maybe it could help solve the problem.

LABEL = / ext33 defaults 1 1
none /dev/pts devpts gid = 5 mode = 620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda4 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom/ udf, iso96600 noauto, owner, kudzu, ro 00
/dev/fd0 /mnt/floppy auto noauto, owner kudzu 00


I was challenged to learn how to repair such problems and also learn to analyze and interpret error messages as possible.

I am hoping for tips, suggestions whatsoever regarding this matter.

thank you very much!


CatLinuz
 
Old 02-23-2004, 03:59 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
afaik, you're not supposed to run fsck on filesystems that are mounted. if you did that, you might be scr3wed. one of the gurus here might be able to help you fix the damage if it's fixable, but i wouldn't mess around with fsck anymore until you're sure you know what you are doing.
 
Old 02-24-2004, 01:24 PM   #3
CatLinuz
LQ Newbie
 
Registered: Feb 2004
Distribution: redhat
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for the tip SYNAPTICAL! Kindly inform our friends here, maybe they could help me about it. BTW, how will i know if the damage is fixable or not?
 
Old 02-24-2004, 01:27 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,219

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
unmount the filesytem then run fsck?
 
  


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
filesystem repair Ammad Linux - General 1 09-12-2005 11:57 PM
need filesystem repair rblampain Linux - Software 5 07-12-2005 11:17 PM
Filesystem Repair borisys Linux - Newbie 3 06-24-2005 10:24 PM
filesystem repair natalia21 Linux - Software 1 02-03-2005 06:50 AM
Repair a filesystem ...fsck is it??????? hrg Linux - General 3 07-24-2004 07:41 AM

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

All times are GMT -5. The time now is 02:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration