![](https://seccdn.libravatar.org/avatar/99bbf0e2807d0c1a81e021665cc9e09f.jpg?s=120&d=mm&r=g)
On Monday 18 September 2006 10:37, Hylton Conacher(ZR1HPC) wrote:
The other day I powered on, and whilst the system was checking if the fs were clean, I was asked to enter the root password as the / (dev/hda1) fs needed repairing. It was mounted read only and to mount it read/write I would need to issue #mount -n -o remount,rw /.
I entered the password and remounted / as rw. Initially I tried #fsck / which returned that the journal had neen recovered,
If i'm not mistaken, the commands are filesystem specific. i'm assuming you're using reiserfs because you mention a journal (maybe XFS or ext3?). If it's reiserfs, try this: ~> reiserfsck --help reiserfsck: unrecognized option `--help' Usage: reiserfsck [mode] [options] device Modes: --check consistency checking (default) --fix-fixable fix corruptions which can be fixed without --rebuild-tree --rebuild-sb super block checking and rebuilding if needed (may require --rebuild-tree afterwards) --rebuild-tree force fsck to rebuild filesystem from scratch (takes a long time) --clean-attributes clean garbage in reserved fields in StatDatas Options: -j | --journal device specify journal if relocated -B | --badblocks file file with list of all bad blocks on the fs -l | --logfile file make fsck to complain to specifed file -n | --nolog make fsck to not complain -z | --adjust-size fix file sizes to real size -q | --quiet no speed info -y | --yes no confirmations -V prints version and exits -a and -p some light-weight auto checks for bootup -f and -r ignored Expert options: --no-journal-available do not open nor replay journal -S | --scan-whole-partition build tree of all blocks of the device Then try: ~> reiserfschk --fix-fixable /device/name That may tell you that you need to use --rebuild-tree. Don't use --rebuild-tree unless you NEED to, because it can lose data. In my experience, however, it has lost only a couple very old files which i hadn't touched in years. -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts