On (21/10/01 12:57), Graeme Fowler wrote:
> On Sun, 21 Oct 2001, Matthew Rose wrote:
> > Try LILO: linux emergency init=/bin/sh
> > which will do te minimum on booting and dump you right into a root
> > shell.
<snipped some good advice from Graeme>
>
> To summarise:
>
> LILO: linux init=/bin/sh
> <wait>
> # /usr/bin/passwd root
> <new root pw>
> <new root pw>
> # /sbin/shutdown -r now
>
> ...which still might hang (due to the lack of as 'real' init process), but
> at least you just set the root pw so when you power cycle your
> recalcitrant little beast and it asks for the password to complete a
> filesystem check, you know what it is. At least... you should ;-)
>
The other thing to watch out for is that the root fs will probably be
mounted read only. mount -o remount,rw <rootfs device> may be handy.
Matt
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------
This archive was generated by hypermail 2.1.3 : Thu 22 Nov 2001 - 13:18:22 GMT