1 |
On Monday 03 May 2010 17:06:19 KH wrote: |
2 |
> Am 03.05.2010 16:56, schrieb Alan McKinnon: |
3 |
> > On Monday 03 May 2010 16:30:53 Colleen Beamer wrote: |
4 |
> [...] |
5 |
> |
6 |
> >> I don't understand what you mean by booting to a single user |
7 |
> >> maintenance mode. How do I do that? |
8 |
> > |
9 |
> > At the grub menu, select the kernel you wish to boot. |
10 |
> > Press "e" |
11 |
> > Move cursor to the "kernel" line |
12 |
> > Press "e" |
13 |
> > Move cursor to the end of the line. Append " 1" or " single" |
14 |
> > Press<enter> |
15 |
> > Press "b" |
16 |
> > |
17 |
> > This will load the kernel and run a modified start-up sequence (not the |
18 |
> > regular init command). You get a root shell which is quite limited but |
19 |
> > usually adequate for repairing broken system. |
20 |
> > |
21 |
> > In a way, it's very similar to booting into a LiveCD without having to go |
22 |
> > and find the CD first |
23 |
> |
24 |
> Hi, |
25 |
> |
26 |
> and again I learnd something I didn't know, jet. |
27 |
> |
28 |
> Anyway I also would try to follow Dales advise with pressing "i" during |
29 |
> boot. |
30 |
|
31 |
There's all kinds of neat tricks you can do when booting or starting up. grub |
32 |
passes parameters and options to the kernel just like your shell passes |
33 |
parameters and options to a program you start. There's docs about it in |
34 |
/usr/src/linux/Documentation but be warned - they are written by kernel devs |
35 |
and most of them seem to assume the reader also knows as much as a kernel dev. |
36 |
So it can be hard going sometimes. |
37 |
|
38 |
A neat trick I use often is to append "init=/bin/bash" to the grub line. This |
39 |
runs bash after the kernel is loaded, not the usual init. You can't logout as |
40 |
normal though - try it and see :-) |
41 |
|
42 |
|
43 |
|
44 |
-- |
45 |
alan dot mckinnon at gmail dot com |