Link to home
Start Free TrialLog in
Avatar of dimitry
dimitry

asked on

Boot Embedded Linux without Login prompt

I need to boot Linux (Embedded, Kernel 2.4.20) without login prompt - directly to bash. I prefer level 3 but signle-user mode is Ok as well.
Unfortunately I am still getting message:
  Give root password for maintenance
  (or type CONTROL-D for normal start-up):

Thanks
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dimitry
dimitry

ASKER

Thanks, it works. However, anything else is not initialized...The best thing will be change is config files to boot to bash but without login prompt...
After you login to the shell prompt, then you can do
mount -o rw /   <=== remount the / to read/write
passwd root    <=== reset the root password
then boot into nomal run level and give the root password when it prompts
Give root password for maintenance
  (or type CONTROL-D for normal start-up):
Avatar of dimitry

ASKER

Sorry, that I was not clear.... I know root password. My target is not to reset it.
It is embedded Linux (not x86 at all)... I want to boot it without login prompt to bash. Your first suggestion is Ok and I run bash.
However, I skip all init scripts and I would like to run it without prompt as well.. :)
Then edit
/etc/grub.conf or /boot/grub/grub.conf
and find the line as follows:
kernel= ......     init=/bin/sh      <=== Add init=/bin/sh

Save and reboot to see if it works.

If you use LILO bootloader, then edit /etc/lilo.conf and run (cd /etc; lilo).
Avatar of dimitry

ASKER

As I've already written, your suggestion is working. However, it doesn't run any initial system scripts...
Do you know what I need to change in /etc/something... to boot Linux up to bash without login prompt ? Some getty or whatever it is ?
Again it is not PC, there is no grub, or LILO... But I can pass parameters from bootloader to kernel, so init=/bin/sh is working, but I would like
something "better" if it is possible....

Thanks,