LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2004, 10:40 AM   #1
sujith_marar
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Rep: Reputation: 0
HOw to boot from init to go to text mode


Dear Linux Friends

I have been waiting for a week
Earlier
posted queries for booting from GRUB from text mode
as my Linux OS is hanged at interactive text mode

I could do afew twsit
I booted into the shell

When I did the above operation...............
MY GRUB BOOTLOADER shows this way

root hd(0,0)
kernel /boot/vmlinuz-2.4.18-24.8.0 ro root=LABEL=/ init=/bin/sh(typed at the end of the line. )(the other option I tried- linux 3 at the end of the line- did not work)
initrd /boot/initrd-2.4.18-24.8.0.img

The first init=/bin/sh worked

It comes init propt
as hwon below
init2.05#
I could see all the directories
But it is only read onle
when i tried to do this way
init2.05#cp /mnt/D:/etc/inittab /etc/inittab
my modified inittab is in /mnt mount
i want to replace that one with this
so effect takes from id:5 to id:3
Any other options can i try
from here
how to remount filesystem with read/write permissions
from init2.05#
Give eg
please help

Thanks
 
Old 06-25-2004, 12:43 PM   #2
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Not sure if I follow the problem, but this may help. At the end of the line (in grub) that starts with:

kernel /boot/vmlinuz......

Just put a 3 at the end. Nothing else. So, it'll look like this...

kernel /boot/vmlinuz-2.4.18-24.8.0 ro root=LABEL=/ 3

that will get you to a normal command prompt, from which you can edit anything you'd like, as long as you're root.

Hope that helps...

Good luck!
 
Old 06-25-2004, 04:25 PM   #3
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
In the case you are booting in a shell, then it's normal that the root filesystem is mounted as readonly.

In this case you need to "remount" it as readwrite, which is done by:

mount -o remount,rw /

Be carefull: You also need to mount the proc Filesystem in this case:

mount proc -t proc /proc

Booting into a shell is a nice thing if you have forgotten your root password, but of course it's also a security thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot in text mode Fredstar Linux - Newbie 7 01-17-2005 02:31 AM
HELP: boot up in text-mode only? kevingpo Linux - Hardware 4 12-12-2004 07:53 AM
firestarter echo flood in init mode 3 (text) wizel Linux - Networking 4 03-17-2004 12:52 PM
Don't know how to boot in a non-text mode leejenson Linux - Newbie 10 11-15-2003 07:35 AM
How to boot without X (Text mode)??? Jefklak Red Hat 5 10-16-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration