View previous topic :: View next topic |
Author |
Message |
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Mon Aug 31, 2009 9:12 pm Post subject: using grub to boot to another runlevel [Solved] |
|
|
How can I edit grub to load my kernel with a different run level that does not start a lot of the other services. Have been working on an issue that causes my machine to lock up when XDM starts now and then. I can fix it, but I need an easy way to boot with a different run level if it re-occurs or I have similar problems. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting.
Last edited by njcwotx on Wed Sep 02, 2009 10:14 pm; edited 2 times in total |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Mon Aug 31, 2009 9:23 pm Post subject: Re: using grup to boot to another runlevel |
|
|
njcwotx wrote: | How can I edit grub to load my kernel with a different run level that does not start a lot of the other services. Have been working on an issue that causes my machine to lock up when XDM starts now and then. I can fix it, but I need an easy way to boot with a different run level if it re-occurs or I have similar problems. | What you are probably looking for is softlevels. You can create a new directory under /etc/runlevels and symlink (or use rc-update) to add in the services you want. You will need to pass in the parameter softlevel=my-new-runlevel-name to your kernel string when you boot. |
|
Back to top |
|
|
stuNNed2 n00b
Joined: 17 Jul 2009 Posts: 32 Location: New Orleans, LA, U.S.
|
Posted: Mon Aug 31, 2009 11:54 pm Post subject: |
|
|
i think on the kernel line in grub you can put: "init=3" or whatever runlevel you want to boot into. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Sep 01, 2009 11:22 am Post subject: |
|
|
but in grub.conf to the kenrel line init=Single
thats it |
|
Back to top |
|
|
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Wed Sep 02, 2009 10:13 pm Post subject: |
|
|
It works, thanks _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
|
|