kickstart question

Steve Gaudet sgaudet at angstrommicro.com
Wed May 16 13:07:37 PDT 2001


Quoting "J. G. LaBounty" <jgl at unix.shell.com>:

>  
> Is there some parameter to the kickstart "part" command that
> will tell it to check for bad blocks when building the filesystem?
> 
> ie
> clearpart --linux
> part /boot --size 31 --ondisk hda
> part / --size 1500 --ondisk hda  --RUNBADBLOCKonthis??
> part swap --size 1000 --ondisk hda
> part /tmp --size 70 --ondisk hda
> part /work1 --size 40 --grow --ondisk hda
> part swap --size 1000 --ondisk hdc
> part swap --size 1000 --ondisk hdc
> part /work2 --size 40 --grow --ondisk hdc

Hello John,

There is not currently an option to the 'part' kickstart command to enable
checking for bad blocks. It does not look terribly hard to modify Anaconda,
which is RedHat's installer, to accept such a parameter. 

The alternative is to check for bad blocks at the end of the install, in the
post section of the kickstart file. It would be something like this:

%post
umount /dev/hda1 && e2fsck -c /dev/hda1
umount /dev/hda2 && e2fsck -c /dev/hda2
... do that for all your partitions

You would be able to see the output from that command one of the virtual
terminals, I think the 4th one. 

Cheers,

Stephen Gaudet
Angstrom Microsystems
200 Linclon St., Suite 401
Boston, MA 02111-2418
pH:617-695-0137 ext 27
cell:603-498-1600
e-mail:sgaudet at angstrommicro.com
http://www.angstrommicro.com




More information about the Beowulf mailing list