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.
|
 |
11-01-2009, 10:44 AM
|
#1
|
Member
Registered: Jul 2009
Location: Denmark
Distribution: Fedora
Posts: 95
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,824
|
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: Arch
Posts: 8,529
|
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: Denmark
Distribution: Fedora
Posts: 95
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: Denmark
Distribution: Fedora
Posts: 95
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,824
|
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: Denmark
Distribution: Fedora
Posts: 95
Original Poster
Rep:
|
That's what I wanted. Thank you very much !
|
|
|
All times are GMT -5. The time now is 01:41 AM.
|
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
|
|