LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2005, 06:50 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,166

Rep: Reputation: 51
need filesystem repair


My (old) slave drive died and it seems it did some damage to the filesystem of the (newer) master drive, this is on my main machine.
This slave drive was used as a backup for files on the master drive and my latest CD backup is a few weeks old, so if I restore from the CD I will loose a few weeks of work..

Is there anyone able to advise what to do?

Here are a few details:
With the dead drive connected, it is impossible to boot, the system sees it as the master and the screen shows a distorted assortments of images.

With this dead drive removed I can boot up to a point.

OS Fedora C2, EXT3 filesystem
the drive is divided into some 13 partitions
at boot up I get the following message:
fsck.ext3Possibly non-existent or swap device?
then follow 10 messages
/dir: clean, ... files, .... blocks (where "dir/" is a partition)
the last of the ten is:
/var/www: clean,1286/256000 files, 19684/511930 blocks (this is the directory I worked in in the last few weeks)
this is followed by:
[FAILED]
*** An error occurred during the filesystem check.
*** Dropping you to a shell; the system will reboot when you leave the shell
Give root password for maintenance
(or type Control-D to continue): (entered password here)
bash: id: command not found
bash: id: command not found
bash: id: command not found
bash: [: too many arguments
(Repair filesystem) 1 # _

I have no idea what to do and reluctant to try any recovery software without advice.
Thank you very much for your help.

I have exactly the same installation on my other machine if that's of any help.

Last edited by rblampain; 07-12-2005 at 07:10 AM.
 
Old 07-12-2005, 08:26 AM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
It seems like Fedora is looking for the drive and not finding it. Have you commented out the entry for the dead drive in /etc/fstab?
 
Old 07-12-2005, 09:36 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,166

Original Poster
Rep: Reputation: 51
Thanks to mdg.
No, I haven't. I'm now unable to do it because I can't boot up.
 
Old 07-12-2005, 10:15 AM   #4
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
You can use your Fedora CD to boot up in repair mode, or whatever it's called in Fedora.

Mount your / partition under /mnt, chroot to /mnt and then you can edit /etc/fstab with vi or whatever is loaded with Fedora.
 
Old 07-12-2005, 11:11 PM   #5
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,166

Original Poster
Rep: Reputation: 51
The problem was the obsolete hdb line in fstab as you said.
I accidentally fixed it. I said "accidentally" because I do not know what the system did. Here are the steps I followed and the results:
1) got into repair mode and tried to locate "fstab" in "/etc" doing a "ls -l" from /etc, the file does not show.
2) from /etc do a "ls -l fstab" - got "no such file or directory"

My second machine was meant to be a backup of the first and the fstab file was the same except for a few lines relating to networking and the lack of entry for hdb because it had no slave drive.

3) So I copied its fstab file to a floppy and then copied from the floppy to the /etc directory of the first machine.
4) Checked that the copy worked, it didn't but the original file that did not show was back with the obsolete line.
5) Removed that line and rebooted successfully.

Thank you again for your help.
 
Old 07-12-2005, 11:17 PM   #6
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Glad you got it working
 
  


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
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
How to Repair a Filesystem? CatLinuz Linux - Newbie 3 02-24-2004 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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