LinuxQuestions.org
Register a domain and help support LQ
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 05-13-2012, 02:04 PM   #1
jim_d
Member
 
Registered: May 2010
Posts: 50

Rep: Reputation: 0
How does one run fsck?


Do I understand this correctly?:

fsck cannot be run on a mounted volume--specifically the volume that contains the Linux root filesystem.

So how do you run fsck on the Linux filesystem? If you umount the root filesystem, do commands still work?

Thanks--
 
Old 05-13-2012, 02:32 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,175
Blog Entries: 1

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Here's a usefull page
http://jamesmcdonald.id.au/it-tips/g...ntu-disk-stuff
 
Old 05-13-2012, 04:14 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Generally I boot off of some sort of rescue disk if I need to fsck the root filesystem. In principle, one can also remount it read onlu ("mount -o remount,ro /"), but I always find it much safer to boot off other media and have it completely unmounted.
 
Old 05-14-2012, 09:41 PM   #4
jim_d
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 0
btmiller:
"Generally I boot off of some sort of rescue disk if I need to fsck the root filesystem. In principle, one can also remount it read onlu ("mount -o remount,ro /"), but I always find it much safer to boot off other media and have it completely unmounted."

So I could boot from an Install/LiveCD, and then use the terminal window? I'm assuming the file system on the hard drive is not mounted when booting fr/LiveCD, correct?

Thanks--
 
Old 05-14-2012, 09:44 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,680
Blog Entries: 12

Rep: Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902
You can mandate it on reboot with shutdown -rF now (or the amount of delay of your choosing).
 
  


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
How to run fsck during a shutdown sequence, or how to run one-time init scripts? bgoodr Debian 5 11-28-2010 04:08 PM
fsck run? Decepticon22 Linux - Desktop 3 06-18-2010 01:28 PM
computer asks me to run a FSCK Manually, but won't : says can't run on mounted lightwave Linux - Newbie 12 04-02-2008 01:25 AM
How run fsck? lectraplayer Linux - Newbie 1 10-05-2003 09:38 PM
How to run fsck? EnVoy Linux - General 2 03-20-2003 02:52 PM


All times are GMT -5. The time now is 09:50 AM.

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