LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-16-2009, 08:17 AM   #1
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
Not able to boot directly in runlevel 1: Bug or New Feature?


Sometimes, when I need to affect some quick changes on my box, I boot up in runlevel 1 by adding "single" to my kernel line in the Grub menu. I use Grub because I also have Vista+RHEL+CentOS for operational reasons and then Slack for everything else.

Since I upgraded to Slack13 I noticed that this was not working. I assumed that it was because I had installed on a encrypted LV, so I tried it on VirtualBox installs. I tried both on GRUB and LILO on the Virtual Slack. I tried both the 32 and 64 bit versions. It does not work.

Can anyone advise if he/she managed to boot in runlevel 1 immediately from LILO or GRUB?
 
Old 11-16-2009, 08:23 AM   #2
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
I've booted to runlevel one from both grub and lilo in Slackware 13. Maybe you should better define "does not work".

Adam
 
Old 11-16-2009, 08:29 AM   #3
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Original Poster
Rep: Reputation: 89
"Does not Work" means that even thought I force the box to boot in runlevel 1 from GRUB/LILO, I still end up in the runlevel I have in /etc/inittab (usually runlevel 3 or 4):

chris3@DeepThought:~$ sudo /sbin/runlevel
N 3
chris3@DeepThought:~$




Chris
 
Old 11-16-2009, 08:33 AM   #4
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Well out of curiousity I just tried again on this box with Lilo. I hit tab, typed in the name of the kernel I wanted to use, and added 'single' and ended up in single user mode. I can't try grub at the moment, but I know I've done it from grub on my home machine before.

Adam
 
Old 11-16-2009, 08:56 AM   #5
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Original Poster
Rep: Reputation: 89
OK.
I tried it again over here as well and I have to retreat one step back.
It appears that it works on the Huge Kernel but not on the Generic Kernel.
Will you confirm that?
 
Old 11-16-2009, 09:06 AM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Sorry, but I can't do that for a while. I am using a custom kernel and won't be able to reboot again today.
 
Old 11-16-2009, 09:56 AM   #7
witek
Member
 
Registered: Oct 2008
Location: Poland, Łódź
Distribution: Lubuntu, Salix
Posts: 102

Rep: Reputation: 19
I booted into level 3 (I`m using 4 as default) just by adding init 3 to lilo prompt. Why not to try with init 1?
 
Old 11-16-2009, 11:06 AM   #8
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Original Poster
Rep: Reputation: 89
I confirm that init 1 works even when booting with the Generic Kernel.
Problem solved!
I was just wondering if this is documented anywhere.
 
Old 11-16-2009, 11:09 AM   #9
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
If anyone is interested, you can comment out the /etc/inittab line that determines default runlevel, and upon every boot, init will ask you what runlevel you want.
If you rarely boot into a different runlevel, you may find this annoying, but I for one find it pretty practical..


Sasha
 
Old 11-16-2009, 11:46 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,390
Blog Entries: 3

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480
Hi,

Quote:
Originally Posted by ChrisAbela View Post
OK.
I tried it again over here as well and I have to retreat one step back.
It appears that it works on the Huge Kernel but not on the Generic Kernel.
Will you confirm that?
You would need a 'initrd' for the generic kernel unless you customized it.
 
Old 11-16-2009, 01:50 PM   #11
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Original Poster
Rep: Reputation: 89
Quote:
You would need a 'initrd' for the generic kernel unless you customized it.
I confirm that I do have an initrd with the Stock Generic Kernel, and my laptop (not a box-desktop, if I may corect my earlier post) boots Slackware without any probelms with this kernel. Actually, as I installed Slackware on an encrypted LV partition, I have lost the possibility of booting from the Huge Kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Possible bug or strange feature of upgradepkg? w1k0 Slackware 13 08-14-2009 04:31 PM
wget 1.8.2 - feature or bug? tek1024 Linux - Software 2 02-27-2007 08:39 AM
Is this a bug, or a new feature? zero_g Programming 2 09-20-2006 08:57 AM
bug or feature? Gunnyman Linspire/Freespire 5 03-06-2004 04:18 PM
DrakPerm feature or bug? Doergn Mandriva 0 09-20-2003 06:56 AM


All times are GMT -5. The time now is 05:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration