Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can GRUB run in failsafe?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Firebirth
n00b
n00b


Joined: 05 Jan 2003
Posts: 47

PostPosted: Fri Jan 10, 2003 4:11 pm    Post subject: Can GRUB run in failsafe? Reply with quote

Somtimes you do something that you really regret afterwards!

Like I run a seventeenorbust.com (a distributed attempt at solving the Sierpinsi problem) client, and wanted it to start automatically at startup...

Therefore I added a line in /etc/local.start, which made the client run!

And upon startup, the client ran! - It ran and it ran, and there was nothing I could do about it. CTRL+F? just gave me blank screens without any login forms... and CTRL+C didn't do anything. Therefore I can't even edit /etc/local.start to remove the line that I added! :oops:.

I use GRUB; is there any way to make it pass running local.start? - Is there some key combination that ends the startup process, and gives me a terminal (CTRL+ALT+DELETE won't do)... And yes, i have tried pressing CTRL+ALT, and lying my other arm on the keyboard.
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Fri Jan 10, 2003 6:40 pm    Post subject: Reply with quote

Reboot. At the GRUB prompt, edit the command line such that you append the following:
Code:
init=/bin/bash


Continue with this new boot command and the system should drop you into a BASH shell, without going through rc.

Of course, very little will be setup here, so you may need to define a few PATHs and manually load any modules such as networking in addition to mounting any filesystems manually (depends on how you've set things up).
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
Back to top
View user's profile Send private message
Firebirth
n00b
n00b


Joined: 05 Jan 2003
Posts: 47

PostPosted: Sat Jan 11, 2003 10:04 am    Post subject: Reply with quote

Still no good... GRUB dsoesn't know anything about a init command.

And I just wondered... before GRUB want's to do anything, it loads the kernel, and with the kernel, it loads local.start. Doesn't it? How shall I then skip it, if it is in the kernel automatically?

Shall I get one of my friends kernels on a disk and load that one instead? - That seems quite an awful lot just to pass a file!
Back to top
View user's profile Send private message
Firebirth
n00b
n00b


Joined: 05 Jan 2003
Posts: 47

PostPosted: Sat Jan 11, 2003 1:49 pm    Post subject: Reply with quote

uhh... fixed it. I just added
Code:
single
at the end of
Code:
kernel /boot/bzImage root = /dev/hda3
, which gave me a bash shell.
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Sat Jan 11, 2003 2:33 pm    Post subject: Reply with quote

You need to add it to the end of the boot command, but anyway you've done it another way now.
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum