fsck and format the filesystem at startup in case of error

From: herc (herc_6_at_hotmail.com)
Date: 06/17/04


Date: 17 Jun 2004 04:38:12 -0700

Hi,

I want to change the fsck at startup for a particular partition (eg
/dev/hdd3) in such a way that the fsck can't fix the error
automatically it will not stop but format this partion again using
mkfs.ext2 and send a messages to syslog.
Can somebody tell me which startup script I have to change and how I
can to this ? I using debian version 3.0. In the directory /etc/init.d
I found a script checkfs.sh, since /dev/hdd3 is the only partion that
will be mount as read-write ( the other partitions are mounted as ro)
I suppose I need to change this script.

Regards,
herc



Relevant Pages

  • Re: fsck
    ... level one startup. ... The script would then be able to accomplish the ... run fsck ... reboot back to level 5 ...
    (Fedora)
  • Re: [SLE] e2fsck command
    ... Before I get into creating the script I would like the list ... fsck will only tell about logical ... I use fsck which is a frontend to to the other file systems and will pick the correct one if available.. ... You also must leave out the extended partition and swap partition from this script. ...
    (SuSE)
  • Re: [SLE] fsck!!!
    ... >> that is needed during the manual fsck part. ... >> You need to boot the rescue system, from the CD or DVD, not from the HD. ... > ACPI disabled, Install - Safe settings, Manual install, Rescue System, ... You need to have somethings printed before hand: the partition table, ...
    (SuSE)
  • Re: [SLE] Booting Problem
    ... Please repair manually and reboot. ... except rebooting during the installation. ... > 'fsck failed' again. ... that normally it is NOT a problem with a partition gone bad. ...
    (SuSE)
  • Re: [SLE] fsck!!!
    ... If the problem is in the root partition, ... Also, considering your fstab: ... > that is needed during the manual fsck part. ... >>local harddisk, boot safely, rescue mode and a couple of others. ...
    (SuSE)