On Monday 10 Jan 2005 05:49, Hylton Conacher (ZR1HPC) wrote:
Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote:
Looking into running a periodic check on my partitions to check for bad sectors.
Reading the man pages on fsck and e2fsck I decided that e2fsck was the better of the two for this purpose and therefore will use the command:
#> e2fsck -ccfpvC 0 </dev/hdxx>
The above command will as per the man page: e2fsck -cc This option causes e2fsck to run the badblocks(8) program If this option is specified twice, then the bad block scan will be done using a non-destructive read-write test. -f Force checking even if the file system seems clean. -p Automatically repair ("preen") the file system without any questions. -v Verbose mode on -C 0 This option causes e2fsck to write completion information to the specified file descriptor so that the progress of the filesystem check can be monitored. This option is typically used by programs which are running e2fsck. If the file descriptor specified is 0, e2fsck will print a completion bar as it goes about its business. This requires that e2fsck is running on a video console or terminal.
Do I specify a double option(-c) as above? Is this advised over a single c ie which is better to detect fs errors and repair them?
You installed ext2 partitions? EXT2 died since about SuSE 6.x or is this an old distro?
Thankfully not, I have all my partitions ext3. Reading the man page I see that fsck is more for ext2 fs while e2fsck is for ext3 ones.
If you have reiserfs, don't try e2fsck on it, it gives horrible errors, thankfully when I acccidentally did it some years back, it didn't do any damage, just put up strange errors.
I have the ability for Reiser but happen to be comfortable with ext3, and happen to know it has a longer track record.
I think not by a very very long margin ext3 has recently (last year or so had some serious problems) I have been using Reiser now since the early 6.X releases of suse and the only problems i have had are due to failed hardware hard drives are not built to last now the die when left on for months at a time . Pete -- Linux user No: 256242 Machine No: 139931 G6NJR Pete also MSA registered "Quinton 11" A Linux Only area Happy bug hunting M$ clan, The time is here to FORGET that M$ Corp ever existed the world does not NEED M$ Corp the world has NO USE for M$ Corp it is time to END M$ Corp , Play time is over folks time for action approaches at an alarming pace the death knell for M$ Copr has been sounded . Termination time is around the corner ..