Changing Root Passwords without a Live CD
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Feb 9 20:06:06 UTC 2010
On Tue, Feb 09, 2010 at 02:40:52PM -0500, Robert Brockway wrote:
> -n may be necessary to account for a read-only mtab file:
>
> mount -n -o remount,rw /
mount updates /etc/mtab after doing its work, so in this case it isn't
necesary.
> The only other thing I'll add is that the system probably won't reboot
> cleanly if you have used init=/bin/bash so remount the filesystem
> read-only before rebooting or resetting.
>
> mount -n -o remount,ro /
Yes, or at least do a sync first. reboot does seem to tell the kernel
to do a reboot, which does sync the filesystem at least, but it never
hurts to be paranoid.
--
Len Sorensen
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list