Linux - NewbieThis 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.
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.
I have several question on using fsck on Ubuntu. As I know its not possible to use fsck on mounted system. Booting other system from USB is not an option for me. The best for me is doing fsck on boot time. Questions:
1. Will shutdown -F -r now work on ubuntu. I used man shutdown and did not find -F option, so maybe its not for ubuntu ?
2. How can I set options for fsck which will run on system boot ?
3. Where I can see logs of fsck that run on boot time ?
4. As I know fsck runs every 35 (don't know exactly) boots of system. How can I change this value
I will be very greatful if I get answers to these questions.
Thanks in advance.
1. -F is in Debian, so I have no idea why it wouldn't be found in Ubuntu
4. use tune2fs to change the number of mounts after which your ext3 filesystems will be checked
I want to return little bit to this topic. For example e2fsck runs in boot time, but with what parameters it runs ? I mean normally from command line you use:
What about running at boot time ? What device will be scanned and what scanner options will be used ? Normally question is with what command line will run e2fsck at boot time ? Thanks.
If you have the file /etc/init.d/checkfs.sh, you can read it for details. If not, grep for "fsck" in /etc/init.d/* and look at the boot scripts fsck is found in. On my system, the ultimately used command line is
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.