how exactly surface-fixing "chkdsk /F /R c:" at every single boot for linux?
Hello,
I would like that at every single boot, the linux box does cluster per cluster the typical wonderful windows : Code:
chkdsk /F /R /dev/hda1 |
On my Slackware boxes, the boot scripts check for the file /etc/forcefsck - if it exists fsck is run. I'd expect most distros do something like that, but I'm not a Debian user so I don't know specifically what you'd check for.
|
is
Code:
tune2fs -c 2 /dev/sda1 I am so sure it does not only the first when is linux /dev/hde2... and if it is cluster per cluster like does chkdsk for windows |
Using -c 2 with tune2fs sets the number of mounts after which the filesystem will be checked by e2fsck to 2. It does not force a check on each re-boot.
I'm not sure what the windows chkdsk does but maybe using something like e2fsck -c to check for bad blocks is the same thing. In the Slackware boot script /etc/rc.d/rc.S the following is used to test for the check flag: Code:
if [ -r /etc/forcefsck ]; then Code:
/sbin/fsck $FORCEFSCK -C -a / Code:
/sbin/fsck $FORCEFSCK -C -R -A -a |
All times are GMT -5. The time now is 07:47 AM. |