On Fri, Jan 14, 2005 at 11:18:19PM +0100, Frank Gevaerts wrote:
On Fri, Jan 14, 2005 at 10:53:21PM +0100, Peter Teunissen wrote:
1> Bezegny Martin pointed out I should try 'tune2fs -O ^has_journal
/dev/hda3' wich i did try but needs to be done on an unmounted or
read
only device, wich i guess is only possible on a / device when booted
from CD, right? (this is going to sound so NooB :-) How do I
accomplish
that? I heard something about booting from CD and opening a shell but
don't know how to do that. What's the magic button?
No need for a CD. Try:
# telinit 1
This should stop a lot of services, and give you a prompt to enter
your
root password. After entering the root password, type:
# mount / -o ro,remount
Now your root filesystem should be mounted read-only, so tune2fs
should
work. After this, just reboot.
Or, if you have installed some kind of bootmanager that gives you a
menu,
add "ro" to the bootprompt (and maybe an "S" for single-user mode,
too).
Once you get a login prompt, do your tune2fs, remount / rw, and that's
it. :-)
Btw: If you want even finer control about the mount options of the root
filesystem, see the "rootflags=" option (as listed in the kernel
source's
Documentation/kernel-parameters.txt) and "rootfstype=". In your case,
the
following should all do the same (without warranty, just gathered from
various manpages and documents), when entered at LILO's prompt (for
example):
<kernel selection> ro
<kernel selection> rootflags=ro
<kernel selection> rootflags=noload
HTH,
Jan
--
Jan C. Nordholz
<jckn At gmx net>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org