LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01: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, 01:32 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 08: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, 08:44 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 18,774
Blog Entries: 28

Rep: Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977
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 03:08 PM
fsck run? Decepticon22 Linux - Desktop 3 06-18-2010 12: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 12:25 AM
How run fsck? lectraplayer Linux - Newbie 1 10-05-2003 08:38 PM
How to run fsck? EnVoy Linux - General 2 03-20-2003 01:52 PM

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

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration