LinuxQuestions.org
Review your favorite Linux distribution.
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 01-18-2003, 09:02 PM   #1
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Rep: Reputation: 15
switching to runlevel 3


i have runlevel 5 but on boot the X does not run and screen appears and disappears frequently(b4 login)

how do i now edit the runlevel
 
Old 01-18-2003, 09:11 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It's in /etc/inittab

You should see a line:
id:5:initdefault:

Edit it to:
id:3:initdefault:

Cool
 
Old 01-20-2003, 11:31 PM   #3
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
but how should i edit /etc/inittab as i cannot login

the screen just go on blinking and nothing can be done
 
Old 01-21-2003, 12:24 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Use a rescue disk. Usually the first disk of any distro will do the trick. Type "linux rescue" at the prompt, and it will look for and mount your system under /mnt/sysimage. chroot /mnt/sysimage then use vim or whatever editor you like to edit inittab. Reboot and there you go.

Sounds like you need to play with your x configuration, but that's another story alltogether.

Have you tried doing a ctrl-alt-F1 while it was acting strange? It might drop you at a login:
 
Old 01-27-2003, 10:53 PM   #5
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
Unhappy

ctrl-alt-f1 did nothing, the filckering just goes on

what to do now
 
Old 01-27-2003, 11:21 PM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,837

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally posted by sami
ctrl-alt-f1 did nothing, the filckering just goes on

what to do now
Have you tried Ctrl-Alt-Del to reboot?

When the system is starting up, you should be able to enter Ctrl-X (if you're using `lilo' as the boot loader, anyway. Dunno about `grub'). This exits the graphical boot selection and drops you to the text console. Then enter the kernel label followed by `single'. Press Tab if you need to see a list of the bootable kernels. For example, I have two kernels: generic from the install and custom, so I'd see

boot: [Tab]
custom generic

boot: custom single [Enter]

The system will then startup in single user mode. It will mount filesystems but not start all the usual collection of services. You can then cd to /etc and edit inittab to change the default run level. I'm assuming that you're familiar enough with vi to make the needed change. When you're done, I normally just reboot using `sync ; sync ; reboot'.

Hope this helps.

Good luck.

Rick
 
Old 01-29-2003, 12:42 AM   #7
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
i have grub wiped out due to win xp installataion

so know i boot using loadlin from DOS

someone has told me to pass init=1 as loadlin parameter

i will try it soon

Thank You
 
Old 01-29-2003, 12:38 PM   #8
Tafta
Member
 
Registered: Jan 2003
Location: Bandung, Indonesia
Distribution: Mandrake, SUSE, RedHat
Posts: 55

Rep: Reputation: 15
try ctrl+alt+F2 (F2 ... F6 are OK) to login in text mode.
try press ESC when you're still at LILO (or GRUB) then
type linux 3 (the number of runlevel you want to use)
 
Old 01-29-2003, 05:24 PM   #9
phoenix
LQ Newbie
 
Registered: Jan 2003
Location: PA
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
When i want to log in to run level 3 in my RH8 i just type
at the boot: prompt before linux starts loading,

linux 3
 
Old 01-29-2003, 11:33 PM   #10
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
i boot linux in the following way

1) Boot from DOS

2) go to c:\ where i have copied loadlin.exe and vmlinuz form RH CD

3) use the command: loadlin vmlinuz root=/dev/hda8 ro

4) i have also tried: loadlin vmlinuz root=/dev/hda8 ro init=1
but failed

5) now should i use: loadlin vmlinuz root=/dev/hda8 ro linux 3

?

as there is no boot loader now so i have to boot from DOS and use loadlin


NOTE: while booting linux some steps get "FAILED" while mounting drives
 
Old 07-03-2003, 12:44 PM   #11
jjdm
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Unhappy Bypass Password or Format Hard Drive

Hello

I'm brand new to the world of Linux
I was given a machine with Mandrake installed
but i wasn't given the username or password. Now how would
i bypass these screens and i doubt if i can. So the next step
would be to format the hard drive i have attempted as much but
am having problems using FDISK from a windows based system.
(don't know if that has any bearing) Is there a specific FDisk
program that has to be used with Linux?

Any help much appreciated.

jjdm@telusplanet.net

Last edited by jjdm; 07-03-2003 at 12:49 PM.
 
Old 07-03-2003, 05:52 PM   #12
gavinayling
LQ Newbie
 
Registered: Jul 2003
Location: England
Distribution: Redhat 9
Posts: 15

Rep: Reputation: 0
New linux install

you're probably better off installing a new installation of linux onto the same partition. Redhat offers the option of overwriting the linux partitons only (if you have non-linux partitions).

why are you trying to use FDisk etc?
 
Old 07-03-2003, 06:05 PM   #13
jjdm
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Thanks for your reply - the problem is that the linux machine is set up with a username and password which i don't know. The box was given to me and i was never told what the username or password was so now i'm trying to make use of the computer by formating the drive and reinstall an OS.
 
Old 07-05-2003, 03:59 AM   #14
Tafta
Member
 
Registered: Jan 2003
Location: Bandung, Indonesia
Distribution: Mandrake, SUSE, RedHat
Posts: 55

Rep: Reputation: 15
bypassing password

There are some ways to bypass password in Mandrake distro.
If you're using LILO as bootloader in graphic mode : press ESC at boot screen to get into text mode and type "linux single" (w/o the " ") or "linux 1". This will make linux enter single user mode which will allow user to enter root for maintenance without password (you won't be able to fo this in some distro like SuSE).

When you get your prompt type passwd at the prompt and enter a new password.

Otherwise try to boot from Linux CD and find out yourself the maintenance and fixing tools included with the distro (i believe it won't be too difficult).

Good luck ! ^_^
 
Old 07-06-2003, 07:41 PM   #15
jjdm
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Thanks for your reply that worked!!! I was able to set up an new password. UNFORTUNATELY once the new password is set up and i get the prompt it still requires a Username which i've also attempted to manipulate. I just can't get in. It definitely sets up a new password but when i enter it at the login screen it won't match anything. Any other ideas thanks...Jesse
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
Odd behavior switching to runlevel 3 or shutting down sntnlz Linux - Hardware 4 11-28-2005 10:19 PM
Switching Runlevel Planky SUSE / openSUSE 13 02-13-2005 01:35 PM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM
Problem in Switching into GUI (runlevel 5) lamco Linux - Software 4 12-12-2001 08:50 PM

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

All times are GMT -5. The time now is 03:06 PM.

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