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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-13-2012, 01:04 PM
|
#1
|
Member
Registered: May 2010
Posts: 50
Rep:
|
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--
|
|
|
05-13-2012, 01:32 PM
|
#2
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
|
|
|
|
05-13-2012, 03:14 PM
|
#3
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
05-14-2012, 08:41 PM
|
#4
|
Member
Registered: May 2010
Posts: 50
Original Poster
Rep:
|
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--
|
|
|
05-14-2012, 08:44 PM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 20,016
|
You can mandate it on reboot with shutdown -rF now (or the amount of delay of your choosing).
|
|
|
All times are GMT -5. The time now is 10:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|