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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-01-2009, 10:44 AM
|
#1
|
|
Member
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91
Rep:
|
Fsck on ubuntu
Hello all,
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.
Best regards,
alpha
|
|
|
|
11-01-2009, 11:06 AM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
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
|
|
|
|
11-01-2009, 11:09 AM
|
#3
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Quote:
|
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 ?
|
It works on debian.
Why don't you try?
Quote:
|
2. How can I set options for fsck which will run on system boot ?
|
You can use
or install autofsck
https://wiki.ubuntu.com/AutoFsck
Quote:
|
3. Where I can see logs of fsck that run on boot time ?
|
/var/log/fsck/
Quote:
|
4. As I know fsck runs every 35 (don't know exactly) boots of system. How can I change this value
|
see #2
Last edited by repo; 11-01-2009 at 11:20 AM.
|
|
|
|
11-01-2009, 12:17 PM
|
#4
|
|
Member
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91
Original Poster
Rep:
|
Thank you very much for such detailed answer !
Regards,
alpha
|
|
|
|
12-31-2009, 08:57 AM
|
#5
|
|
Member
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91
Original Poster
Rep:
|
Hello,
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:
Code:
e2fsck [ -pacnyrdfvstDFSV ] [ -b superblock ] [ -B blocksize ] [ -l|-L bad_blocks_file ] [ -C fd ] [ -j external-journal ] [ -E extended_options ] device
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.
|
|
|
|
12-31-2009, 09:20 AM
|
#6
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
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
|
|
|
1 members found this post helpful.
|
12-31-2009, 09:25 AM
|
#7
|
|
Member
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91
Original Poster
Rep:
|
That's what I wanted. Thank you very much !
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:13 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
|
|