LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 08:20 AM   #1
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465
Blog Entries: 2

Rep: Reputation: 119Reputation: 119
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, 08:31 AM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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 08:38 AM. Reason: Added S
 
1 members found this post helpful.
Old 10-15-2013, 09:22 AM   #3
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465

Original Poster
Blog Entries: 2

Rep: Reputation: 119Reputation: 119
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, 09:43 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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 09:47 AM.
 
1 members found this post helpful.
Old 10-15-2013, 09:59 AM   #5
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465

Original Poster
Blog Entries: 2

Rep: Reputation: 119Reputation: 119
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, 10:27 AM   #6
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465

Original Poster
Blog Entries: 2

Rep: Reputation: 119Reputation: 119
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, 11:34 AM   #7
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465

Original Poster
Blog Entries: 2

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

Rep: Reputation: 233Reputation: 233Reputation: 233
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, 02:18 PM   #9
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: BunsenLabs Linux
Posts: 465

Original Poster
Blog Entries: 2

Rep: Reputation: 119Reputation: 119
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, 02:28 PM   #10
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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 02:30 PM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 AM.

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