Re: e2fsck after hard shutdown
All of the disk repair tools are in the Fedora initramfs. This includes e2fsck, btrfs (check), and xfs_repair. It is possible to run it before root mounts by using rd.break=pre-mount as a mount option. --- Chris Murphy -- users mailing list users@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
Re: e2fsck after hard shutdown
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@lists.fedoraproject.org From: Ralf Corsepius Date sent: Sat, 5 Sep 2015 07:59:50 +0200 Send reply to: Community support for Fedora users 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@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:mi...@kuentos.guam.net mailto:msetze...@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@HOME CREDITS ROSETTA 33898211.543299 | SETI61203875.206697 ABC 16613838.513356 | EINSTEIN70320821.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 -- users mailing list users@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
Re: e2fsck after hard shutdown
Ralf, do you mean that I could unmount my filesystems from inside the root window and proceed with e2fsck? tnx 2015-09-05 7:59 GMT+02:00 Ralf Corsepius : > 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@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 > -- Antonio Montagnani Skype : amontag52 Linux Fedora 22 (Twenty-two) inviato da Gmail -- users mailing list users@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
Re: e2fsck after hard shutdown
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@lists.fedoraproject.org From: Ralf Corsepius Date sent: Sat, 5 Sep 2015 07:59:50 +0200 Send reply to: Community support for Fedora users > 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@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:mi...@kuentos.guam.net mailto:msetze...@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@HOME CREDITS ROSETTA 33898211.543299 | SETI61203875.206697 ABC 16613838.513356 | EINSTEIN70320821.471095 -- users mailing list users@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
Re: e2fsck after hard shutdown
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@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
Re: e2fsck after hard shutdown
Robert Nichols ha scritto il 05/09/2015 alle 03:32: On 09/04/2015 04:40 PM, antonio montagnani wrote: Sometimes if you have to shut-down improperly or power is missing, it happens that your system doesn't start in the usual way, but in a kind of emergency mode, and you can enter in it by Ctrl D...after that usually you have to make a control on your filesystem using an installation media (DVD or USB key) and running e2fsck at least on your /home. Is it not possible to run e2fsck during the standard boot before filesystems are mounted?? (maybe a stupid question, forgive me and my bad english) Instead of typing Ctrl-D, enter the root password and you should get a root shell, from which you can run e2fsck. The only time you should need to do that is if the filesystem has damage more serious than can be safely repaired by the automatic fsck. Since you mentioned "e2fsck" I'm assuming that your filesystem is ext2/3/4. If it's actually one of the newer, more exotic types (xfs, btrfs, ...), none of this advice may apply. do you mean that I could run e2fsck from inside the root shell? I guessed that filesystems were already mounted and e2fsck doesn't work on mounted filesystems I have to study. :-) -- Antonio M Skype: amontag52 Linux Fedora F22 (Twenty two) on Fujitsu Lifebook A512 http://lugsaronno.altervista.org http://campingmonterosa.altervista.org -- users mailing list users@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
Re: e2fsck after hard shutdown
On 09/04/2015 04:40 PM, antonio montagnani wrote: Sometimes if you have to shut-down improperly or power is missing, it happens that your system doesn't start in the usual way, but in a kind of emergency mode, and you can enter in it by Ctrl D...after that usually you have to make a control on your filesystem using an installation media (DVD or USB key) and running e2fsck at least on your /home. Is it not possible to run e2fsck during the standard boot before filesystems are mounted?? (maybe a stupid question, forgive me and my bad english) Instead of typing Ctrl-D, enter the root password and you should get a root shell, from which you can run e2fsck. The only time you should need to do that is if the filesystem has damage more serious than can be safely repaired by the automatic fsck. Since you mentioned "e2fsck" I'm assuming that your filesystem is ext2/3/4. If it's actually one of the newer, more exotic types (xfs, btrfs, ...), none of this advice may apply. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it. -- users mailing list users@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
Re: e2fsck after hard shutdown
On 09/04/2015 02:40 PM, antonio montagnani wrote: Is it not possible to run e2fsck during the standard boot before filesystems are mounted?? Normally fsck is run during boot, before filesystems are mounted read/write. You should only be dropped to the emergency shell if errors are found in filesystem, in which case you will be asked if and how those errors should be fixed. Advanced filesystems like btrfs and ZFS have checksums and other reliability measures that will help the filesystem driver automatically repair errors. -- users mailing list users@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