27 Apr
2003
27 Apr
'03
15:15
On Sun, 27 Apr 2003 16:58:42 +0200 Federico Damontewrote: > o i would like to know: > > 1. is there something like "scandisk" under linux (sorry for the > "MSism"!) that checks the *surface* of the partition? > > 2. how can i reformat the swap filesystem (if there is such a thing)? 1. fsck. There is a different fsck for each type of file system. For the most part, you don't need to invoke it manually. (For reiserfs, it is reaserfsck). 2. mkswap will effectively rebuild your swap partition. Assuming your swap partition is /dev/hda2: mkswap -c /dev/hda2 This will do what you want. Make sure that /dev/hda2 is not the active swap partition. You can use swapoff to turn it off and swapon to turn it on. (You should be able to use both reiserfsck and mkswap from the rescue system. NEVER run fsck on a mounted file system -- except on the root file system where you run it with root read-only. Reiserfsck will not repair the mounted root file system). -- Jerry Feldman Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9