LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] How to force an fsck on a single partition for the next reboot only

[ILUG] How to force an fsck on a single partition for the next reboot only

Stephen Brooks stephen at lincor.com
Tue Jul 12 12:53:23 IST 2005


John P. Looney wrote:
> On Tue, Jul 12, 2005 at 12:37:53PM +0100, Conor Wynne mentioned:
> 
>>Hi all,
>>
>>Does anyone know how to force an fsck for only the next boot?
>>And only for one partition?
>>
>>I can do it with tune2fs, but I only wish to have it set for a single boot.
> 
> 
>  Can't you use -T "feckin' ages ago", to set the time it was last checked
> to be over 180 days ago ? That should get you a once-off check.
> 
> John 
> 
As root "touch /forcefsck"

Next time you boot it'll force an fsck on all partitions.

-- 
Stephen Brooks <stephen at lincor.com>      Digital Depot, Thomas Street
Senior Software Engineer                            Dublin 8, Ireland
Lincor Solutions Ltd.                          Ph: +353 (0) 1 4893683



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell