LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-16-2012, 06:31 PM   #1
rollme
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Rep: Reputation: Disabled
Force boot to cli on startup


I have a fubar'd Squeeze VM that displays a blank black screen on startup. Loader is grub, and the VM is running on Xen XCP 1.1.0, connected via XenCenter 6.0. VM ran fine until I did some hacking and set the resolution obviously too high. Is there a key sequence I can press that will boot to the command line? I've tried Ctrl+Alt+Backspace, "e", to no avail.
 
Old 08-16-2012, 06:49 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

the grub menu should give you an option to boot into "recovery mode" which will just give you a shell.

Evo2.
 
Old 08-16-2012, 06:51 PM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Just pass the runlevel you want (3) as a kernel boot option. You should have a boot menu which will probably be grub based, if you see something with a countdown timer when you boot that will be it, you need to press [tab] or [a] to modify the arguments - just add ' 3' at the end and press [enter].
 
Old 08-16-2012, 07:15 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by kbp View Post
Just pass the runlevel you want (3) as a kernel boot option. You should have a boot menu which will probably be grub based, if you see something with a countdown timer when you boot that will be it, you need to press [tab] or [a] to modify the arguments - just add ' 3' at the end and press [enter].
You do realise this is the Debian forum right? By default run level 3 will be the same as the default runlevel (which is 2).

Evo2.
 
Old 08-16-2012, 07:48 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
No I didn't notice .. just searched for zero reply posts
 
Old 08-16-2012, 11:25 PM   #6
rollme
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
F12

Quote:
Originally Posted by evo2 View Post
Hi,

the grub menu should give you an option to boot into "recovery mode" which will just give you a shell.

Evo2.
I was able to press F12 and get boot choices ,but no option to load a shell.
 
Old 08-16-2012, 11:51 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

that sounds like your bios menu. You have to wait until you see the grub screen, then use the arrow keys on your keyboard to select a kernel to boot.

Evo2.
 
Old 08-17-2012, 02:49 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Can you CTRL+ALT+F1 to a virtual terminal? If you can then kill xorg from there.
 
Old 08-17-2012, 10:26 AM   #9
rollme
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

that sounds like your bios menu. You have to wait until you see the grub screen, then use the arrow keys on your keyboard to select a kernel to boot.

Evo2.
No not the bios, here is a screenshot of what I get when I press F12.

@caravel, I tried CTRL+ALT+F1 after pressing 2 with no luck.
Attached Thumbnails
Click image for larger version

Name:	debianboot.jpg
Views:	25
Size:	40.4 KB
ID:	10393  
 
Old 08-18-2012, 04:52 AM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,443

Rep: Reputation: Disabled
If you have a live distro;

edit /etc/rc3.d, remove S18lightdm, then edit /etc/inittab, change id:2:initdefault: to id:3:initdefault:

Reboot & you should now boot into a shell on your system.

Just change initdefault back to 2 when you are finished sorting out X.
 
Old 08-18-2012, 05:05 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by fatmac View Post
remove S18lightdm
Shouldn't that be gdm3 instead of lightdm on a Debian system?
 
Old 08-18-2012, 07:24 AM   #12
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Squeeze still has Gnome 2, so if the Op has Gnome or XFCE, it is probably gdm2. It could also be kdm if using the KDE CD and with LXDE ... ?
 
Old 08-18-2012, 07:32 AM   #13
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,443

Rep: Reputation: Disabled
Sorry, I just used my system as a reference, I'm on Wheezy/XFCE, so yes, it probably is gdm if running Gnome.

The main point being to disable/remove what is starting up X from one of the init levels & to use that to get in.
 
Old 08-18-2012, 07:53 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

that is not Debian it appears to be the virtual machines equivalent to the bios boot device menu.
In you first post you explicitly said you are using grub.

Evo2.
 
  


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] Force Truecrypt to run in CLI only czezz Slackware 5 04-27-2012 05:32 AM
[SOLVED] Centos not taking me to CLI, snort runs at startup vip2442 Linux - Newbie 2 10-24-2011 10:51 AM
Chrony configuration - client only, force update at startup slacky Linux - Software 1 03-03-2011 08:19 AM
Force interactive startup?? vicky_me Red Hat 2 04-06-2007 05:16 PM
loading CLI programs in X at startup edM Slackware 3 10-20-2005 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration