Alan McKinnon <[email protected]> writes:

> On Monday 19 July 2010 20:58:37 Allan Gottlieb wrote:
>> I am unable to umount /usr in single user mode on an old system.
>> I believe the system is baselayout-1 and is amd64.
>> The trouble is open files, at least some of which appear to be related
>> to bash and locale (see the files below).
>> 
>> I use grub.  On the kernel line can I specify sh instead of bash?
>
> Not directly. grub and init does not know about, or even care about, bash.
>
> You can change root's shell in /etc/passwd to sh and bash should run in sh 
> mode. Or you can append init=/bin/sh to the grub boot line and try that. You 
> will of course have to run all the init scripts yourself as init will not run 
> when you do this. And you can't reboot either - when you exit the shell in 
> this mode you'll get a panic

Thanks for the information.

allan

Reply via email to