On Thursday 13 January 2005 04:28, Sven Köhler wrote: > hi, > > it seems that the rootfs (a reiserfs) is damanged. I thought that i just > have to create the file /forcefsck so that /etc/init.d/checkroot will > run fsck on the filesystem, but the command that is executed is "fsck -C > -a -f", but that command doesn't check the filesystem if it is a > reiserfs. fsck.reiserfs skipps all checks as it seems, since the > filesystem has been marked as cleanly unmounted. > > The problem is, that i cannot remount the rootfs read-only after the > system has been booted completly. So i have the following questions: > > - how can i tell gentoo to do a real complete check of the rootfs at > startup (where the rootfs should be read-only mounted) > - how can i do that via ssh on a running system > - which paramters can i pass when booting gentoo, so that it boots into > maintainance mode where the rootfs is still mounted read-only? Adding "1" to the command line makes it boot in single-user mode (I think I've tested it), like for any distro (the kernel does not handle it, so it passes it to init, which uses it, since it's a number, as runlevel selection). And in single-user mode you *can* remount the root_fs as read-only (in some distros it's kept read-only, IIRC).
And "telinit 1" as root *turns* the system to single user mode (where ssh *does* not run). Btw, why don't you do the check on the host? Real probleems or will to do it properly? -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user