-
July 16th, 2003, 09:49 AM
#1
Member
Getting into maintenance mode in linux?
My problem is that my X server is stuffed and all i need to do to fix it is edit the XF86Config file. But my system boots runlevel 4 (xwindows initialization) by default and tries to load the screwed x server. I need to bypass the x initialization so i can just get a console. Do i do this by booting into maintenance mode? and how do i do that?
-
July 16th, 2003, 10:19 AM
#2
If you use LILO as a boot amanger you can pass the line init=/bin/bash rw to your kernal image..
this starts bash (as root) before any other initialisations.. the rw is for Read and Write access (needed to edit the XF86Config)
start your puter..
lilo asks you to select (or enter) what you want..
say you have a kernal image called Linux..
then make it
Linux init=/bin/bash rw
this trick works on most distro's.. and is also handy if you ever loose your root password..
simply remove the password-hash for root in /etc/shadow
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
July 16th, 2003, 10:27 AM
#3
Member
ok i dont use lilo, i use loadlin. what do i do with that.
-
July 16th, 2003, 10:32 AM
#4
Member
Equally, you could try booting your distro from CDROM (if you have one) and take options similar to 'recover system', then change whatever you need to change in X
-
July 16th, 2003, 10:34 AM
#5
H'm I never realy liked Loadlin..
but a good trip to google made me realise it's realy easy to do the same thing with loadlin..
just add init=/bin/bash rw to the linux line in your batch or whatever way you start loadlin..
so when you have something like this:
loadlin.exe c:\linux\vmlinuz
make just add the init stuff..
loadlin.exe c:\linux\vmlinuz init=/bin/bash rw
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
July 16th, 2003, 12:46 PM
#6
Boot into runlevel 3.
Just add a "3" on to the end of your kernel command-line, via lilo or loadlin, or whatever. It should then come up in 3, with everything running except X.
-
July 17th, 2003, 06:11 PM
#7
Member
Or you can hit CTRL + ALT + F1 and it will throw you to a terminal window sans xwindows.
[glowpurple]www.networksynapse.net[/glowpurple]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|