LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-15-2013, 09:20 AM   #1
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 406
Blog Entries: 2

Rep: Reputation: 98
Fixing Broken OS from Another Partition???


Hey Everyone!

Inexperienced noob here...so please...flashcards and finger-puppets [explain in simple terms and post specific terminal commands, if applicable].

O-K, I went to install Xmonad last night in Debian [I know... way over my head- just an experiment to satisfy curriosity. Debian is now my test-bed OS- I'm using Crunchbang as my primary]

I logged out and logged back in specifying the Xmonad as my DE/WM....but apparently it is broken. Had to do a hard-shutdown [press power button to turn 'puter off] and now, if I try and run Debian, it won't boot-up, because of the broken Xmonad; and I use auto login, so there is no way to specify another DE.

Can I disable auto login or otherwise fix the system in Debian from my Crunchbang partition? [I do know how to mount a partition].
 
Old 10-15-2013, 09:31 AM   #2
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 569
Blog Entries: 3

Rep: Reputation: 73
In your Debian install, you should be able to access a vritual terminal by holding down Alt+Ctrl+Fn (try F1, F2, etc). From there log in and issue

Code:
sudo apt-get purge xmonad
Hopefully this will fix your problem.

Edit:

If that doesn't work, try booting to single user mode. When GRUB comes up, highlight your entry for Debian and edit it (press 'e' if I remember correctly) and add 'single' to the line (or if still as a bad old habit, 'S').

Last edited by goumba; 10-15-2013 at 09:38 AM. Reason: Added S
 
1 members found this post helpful.
Old 10-15-2013, 10:22 AM   #3
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 406
Blog Entries: 2

Original Poster
Rep: Reputation: 98
Hi,

Thanks for the suggestions. Unfortunately, the Cntrl+Alt+Fn didn't do anything....

And while I was able to get into the edit mode on GRUB, I don't quite know where to put "single".....
 
Old 10-15-2013, 10:43 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
single goes on the line that starts with linux.

Normaly you should have a grub entry that says recovery mode. If you know your root password you can boot into this and have a command line presented to you. Then go ahead as goumba said.

Last edited by zhjim; 10-15-2013 at 10:47 AM.
 
1 members found this post helpful.
Old 10-15-2013, 10:59 AM   #5
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 406
Blog Entries: 2

Original Poster
Rep: Reputation: 98
Yes, I had tried recovery mode- same thing- just a black screen with the "busy circle". I'll see if I can edit the GRUB line now. Thanks.
 
Old 10-15-2013, 11:27 AM   #6
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 406
Blog Entries: 2

Original Poster
Rep: Reputation: 98
YES!

I tried the Cntrl+Alt+F1 again; and this time it worked! Removed the Xmonad, and VIOLA[sic]! I'm posting this from Debian.

Thanks to the both of you!

For future reference: When I was in the virtual terminal, after I removed the Xmonad, I typed "exit", and was taken back to a login prompt. Could figure out how to either start the system from there, or exit gracefully- so had to do the hard shutdown. What should I have done?
 
Old 10-15-2013, 12:34 PM   #7
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 406
Blog Entries: 2

Original Poster
Rep: Reputation: 98
Lesson learned- I'm going to do a minimal Debian install in VirtualBox to use as a test-bed!
 
Old 10-15-2013, 12:55 PM   #8
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
Normaly ctrl-alt-del pushed all together should reboot the system. When logged in you can either use init 0 to shutdown init 6 to restart. Or use the shutdown or reboot command. Also this might vary per distribution. There sometime is poweroff as well.

Or if you just hit the power button once most systems also shutdown. This should be the case with any system with acpi tools installed and acpi beeing active.
 
Old 10-15-2013, 03:18 PM   #9
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 406
Blog Entries: 2

Original Poster
Rep: Reputation: 98
Thanks, Zhjim! Why didn't I think of Cntrl+Alt+Del?! I tried "shutdown" and "poweroff"- didn't work. I think I might have needed to do "sudo ____"? I always feel like a failure when I have to hit the power button to turn it off! Just once I'd like to do it the proper way!
 
Old 10-16-2013, 03:28 PM   #10
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 569
Blog Entries: 3

Rep: Reputation: 73
On Debian,

Code:
$ sudo halt
will completely shut down the system and

Code:
$ sudo reboot
will reboot. If you have kexec-tools installed, you'll get a faster reboot as it reloads the kernel and stuff without you having to go through POST, etc.

Last edited by goumba; 10-16-2013 at 03:30 PM.
 
  


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] Synamptic - Fixing broken dependicies Hevithan Linux - Newbie 7 09-03-2011 09:52 PM
LXer: Fixing Linux: What's Broken And What To Do About It LXer Syndicated Linux News 0 12-01-2008 03:20 PM
No luck fixing broken packages dishbert Ubuntu 14 10-08-2006 11:02 PM
Apt-Get i need help fixing broken dependencies turkenator02 Suse/Novell 2 05-11-2006 05:36 AM
fixing or reading a broken FAT partition ?? e1000 Linux - General 1 08-02-2004 02:37 PM


All times are GMT -5. The time now is 11:27 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