LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-14-2011, 09:13 PM   #1
Blushus
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
Question how to run fsck on root partition - Voyage-linux Version 0.6


Hi All,

I had a power failure on this machine and since have not been able to mount new drives.

When I try a df, I get:
df: cannot read table of mounted file systems: Stale NFS file handle

If I try and edit view or delete etc/mtab I get:
/etc/mtab: Stale NFS file handle

I also see these errors relating to mtab at boot, so I would like to run fsck on the root to try and fix these erors but so far haven't been able to get it to run. So far I have tried
  • shutdown -Fr now
  • "touch /forcefsck" then reboot
  • changed the mount count to be higher than the maximum mount count using tune2fs then rebooted

I have also edited the /etc/init.d/voyage-util file to make sure the system boots does not boot in read only mode.

Still I am unable to force an fsck to run, am I missing something?

Thanks
 
Old 06-14-2011, 09:36 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
It may work if you use .forcefsck instead of forcefsck.

try as root
Code:
cd /
touch .forcefsck
 
Old 06-14-2011, 10:17 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
And as a last resort, just boot single user, remount the root as rw in need. Do the fsck (yes, whilst mounted), then immediately reboot.
 
Old 06-14-2011, 10:27 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
NFS is a network share. The computer offering the share may need the nfsserver process restarted.
 
Old 06-15-2011, 01:16 AM   #5
Blushus
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
And as a last resort, just boot single user, remount the root as rw in need. Do the fsck (yes, whilst mounted), then immediately reboot.
This worked, ran a fsck, it fixed the errors now everything is working again as it should. Thank you very much for your advice.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please advice to run fsck on root FS. manojugusthy Linux - General 1 11-26-2010 07:43 PM
disabling fsck on root partition ritam_bkp Linux - Newbie 3 09-27-2008 09:11 AM
Missing root password + need to run fsck himalaya81 Fedora 12 06-03-2008 01:53 PM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 09:03 PM
Run fsck on root (/) at boot Sako73 Linux - Newbie 2 12-02-2004 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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