[SOLVED] Fixing Broken OS from Another Partition???
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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].
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
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.
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?
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.