e2fsck after hard shutdown

antonio montagnani antonio.montagnani at alice.it
Sat Sep 5 06:29:56 UTC 2015


Michael D. Setzer II ha scritto il 05/09/2015 alle 08:21:
> As root you can run this
> # touch /forcefsck
>
> Then the next reboot should result in it running an fsck on the root partition
> as part of the boot.
>
> I have an option on my classroom machines, that has it boot with a kernel
> that runs in just ram, and it does an fsck of all of the regular linux partitions
> on the disk to confirm everything is error free.  One could also boot from a
> live cd and run fsck since the partitions should not be mounted.
>
>
> On 5 Sep 2015 at 7:59, Ralf Corsepius wrote:
>
> Subject:        	Re: e2fsck after hard shutdown
> To:             	users at lists.fedoraproject.org
> From:           	Ralf Corsepius <rc040203 at freenet.de>
> Date sent:      	Sat, 5 Sep 2015 07:59:50 +0200
> Send reply to:  	Community support for Fedora users
> <users at lists.fedoraproject.org>
>
>> On 09/05/2015 07:31 AM, antonio montagnani wrote:
>>
>>> do you mean that I could run e2fsck from inside the root shell?
>> Yes.
>>
>>> I
>>> guessed that filesystems were already mounted and e2fsck doesn't work on
>>> mounted filesystems.... I have to study. :-)
>>
>> Depends, depends on what actually happened/gone wrong.
>>
>> In most such cases, the filesystems are mounted read-only or not mounted
>> at all.
>>
>> Ralf
>>
>>
>> --
>> users mailing list
>> users at lists.fedoraproject.org
>> To unsubscribe or change subscription options:
>> https://admin.fedoraproject.org/mailman/listinfo/users
>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>> Have a question? Ask away: http://ask.fedoraproject.org
>
>
> +----------------------------------------------------------+
>    Michael D. Setzer II -  Computer Science Instructor
>    Guam Community College  Computer Center
>    mailto:mikes at kuentos.guam.net
>    mailto:msetzerii at gmail.com
>    http://www.guam.net/home/mikes
>    Guam - Where America's Day Begins
>    G4L Disk Imaging Project maintainer
>    http://sourceforge.net/projects/g4l/
> +----------------------------------------------------------+
>
> http://setiathome.berkeley.edu (Original)
> Number of Seti Units Returned:  19,471
> Processing time:  32 years, 290 days, 12 hours, 58 minutes
> (Total Hours: 287,489)
>
> BOINC at HOME CREDITS
> ROSETTA     33898211.543299   |   SETI        61203875.206697
> ABC         16613838.513356   |   EINSTEIN    70320821.471095
>

I am not sure that it could work with system.d systems....

-- 
Antonio M
Skype: amontag52

Linux Fedora F22 (Twenty two)
on Fujitsu Lifebook A512

http://lugsaronno.altervista.org
http://campingmonterosa.altervista.org



More information about the users mailing list