View previous topic :: View next topic |
Author |
Message |
Firebirth n00b
Joined: 05 Jan 2003 Posts: 47
|
Posted: Fri Jan 10, 2003 4:11 pm Post subject: Can GRUB run in failsafe? |
|
|
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! .
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 |
|
|
keratos68 Guru
Joined: 27 Dec 2002 Posts: 561 Location: Blackpool, Lancashire, UK.
|
Posted: Fri Jan 10, 2003 6:40 pm Post subject: |
|
|
Reboot. At the GRUB prompt, edit the command line such that you append the following:
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 |
|
|
Firebirth n00b
Joined: 05 Jan 2003 Posts: 47
|
Posted: Sat Jan 11, 2003 10:04 am Post subject: |
|
|
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 |
|
|
Firebirth n00b
Joined: 05 Jan 2003 Posts: 47
|
Posted: Sat Jan 11, 2003 1:49 pm Post subject: |
|
|
uhh... fixed it. I just added at the end of Code: | kernel /boot/bzImage root = /dev/hda3 | , which gave me a bash shell. |
|
Back to top |
|
|
keratos68 Guru
Joined: 27 Dec 2002 Posts: 561 Location: Blackpool, Lancashire, UK.
|
Posted: Sat Jan 11, 2003 2:33 pm Post subject: |
|
|
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 |
|
|
|