Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a dual boot system running Windows7 and Mint 13. Somehow, long story (I tried to uninstall my LAMP server in one go) I managed to delete my login managers. I tried to boot in text mode and install one but I didn't get a login prompt. Next I tried recovery mode, but when I try to enable networking the system hangs indefinitely while mounting the file system. Next round, live USB disk (getting CD's is a hassle at the moment.) Any other ideas?

share|improve this question
What do you mean by login manager? Which package did you remove? –  Bibhas Mar 20 '13 at 7:54
I had KDE and MATE installed. I accidentally removed all of KDE including KDM. I think it must have gotten rid of gdm3 as well –  Yitzchak Mar 20 '13 at 8:05

1 Answer 1

You should be able to get a bash prompt you should be able to add the following to the end of the line which says "kernel"


This will bypass all the login scripts and give you a bash prompt (as root). With some luck you can then fix your disk problems, then reboot in text mode, then install your Window Manager from the command line.

Another possibility (if you are lucky) might be to boot the system and see if you can switch to a text console (try X) where X is each number between 1 and 7. With some luck you should be asked for a login on at least one of these terminals, and then install the manager.

share|improve this answer
I tried and cannot get a text console (mentioned in my question). Whne you say "You should be able to get a a bash prompt" do you mean root without networking in recovery mode, because that's the only prompt i can get? –  Yitzchak Mar 20 '13 at 8:29
And which file do I add that line to? –  Yitzchak Mar 20 '13 at 13:39
You don't add it to a file, you edit the bootloader when your computer starts up. The whole idea is to get your computer into a state where you can start repairs. –  davidgo Mar 20 '13 at 19:06
No, recovery mode is probably something different. Booting with init=/bin/bash does not set up any network environment or run any scripts. It starts the most basic system (ie the kernel) and replaces the init script (which loads all the services and the environment) with a simple bash shell - not services are loaded. –  davidgo Mar 20 '13 at 19:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.