?
Solved

Boot Embedded Linux without Login prompt

Posted on 2006-05-25
6
Medium Priority
?
2,249 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:dimitry
  • 3
  • 3
6 Comments
 
LVL 38

Accepted Solution

by:
wesly_chen earned 1500 total points
ID: 16763550
>  (Embedded, Kernel 2.4.20) without login prompt - directly to bash
If you use Grub boot loader, then
press "e" key twice on the Grub boot screen then edit the line start with
kernel= ......     init=/bin/sh      <=== Add init=/bin/sh

Then "Enter" and press "b" key.

so you can directly to bash/sh
0
 
LVL 11

Author Comment

by:dimitry
ID: 16763814
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...
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 16764040
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):
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 11

Author Comment

by:dimitry
ID: 16764163
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.. :)
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 16765251
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).
0
 
LVL 11

Author Comment

by:dimitry
ID: 16765616
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,
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month17 days, 3 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question