LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2012, 08:15 PM   #1
snipedout
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
How to completely reinstall debian without access to root terminal


Hello everyone! Long story short I edited the permissions or files or something in the /bin folder and now I am unable to access the root terminal or any system or administrator program that would allow me to mess with the files on the system.

I can still log in to the user and everything is fine and dandy in the recovery mode, but for whatever reason when I type my password in to try and access root it says it is incorrect.

I've tried every single solution I can find sooo now I just want to completely reinstall debian from recovery mode. I've reinstalled gnome but that didn't help anything. Is there a way to install a clean and fresh debian system from recovery mode? I can't find a solution anywhere
 
Old 03-22-2012, 09:28 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,342
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
I doubt it, not in the sense you mean. I think in the long it's likely better and a lot less effort in the long run to back up any vital data and reinstall clean.

Last edited by frankbell; 03-22-2012 at 09:30 PM.
 
Old 03-22-2012, 10:30 PM   #3
snipedout
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I don't have any vital data so it's all good. How do I reinstall clean? I would love to be able to do that
 
Old 03-22-2012, 11:30 PM   #4
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 96

Rep: Reputation: 39
Any reason you couldn't just use an installation CD and start from scratch?
 
Old 03-22-2012, 11:36 PM   #5
snipedout
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
That's the problem, I can't access root terminal and I can't install new packages. But I can do stuff from recovery mode. Is there a way to make an installation cd?
 
Old 03-22-2012, 11:47 PM   #6
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Yes but the question then is how did you install it in the first place if you didn't use any installation media (cd-dvd-usb)? Don't you still have the original disc? if you don't can't you just download a new one?

Anyway getting into recovery mode have you tried su at the prompt? I doubt that would do anything anyway apart from allowing you to repair the thing you broke but you would have to know what you broke anyway to be able to repair it wouldn't you?
 
Old 03-23-2012, 04:59 PM   #7
snipedout
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
downloaded free off the internet. su doesn't work.
 
Old 03-23-2012, 05:32 PM   #8
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by snipedout View Post
downloaded free off the internet.
So you have an install disc then, why don't you use it?
 
Old 03-23-2012, 08:20 PM   #9
snipedout
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
That's a negative ghostrider
 
Old 03-23-2012, 08:27 PM   #10
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by snipedout View Post
That's a negative ghostrider
Then download one and use it, and keep it as well so if you ever break your system again you can do a a quick install.
 
Old 03-23-2012, 08:32 PM   #11
snipedout
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I did and I'm getting an unable to mount because I'm not the "superuser"
 
Old 03-23-2012, 08:56 PM   #12
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Don't try to install with the OS on the hard drive already running, reboot to the CD and do a clean install.
 
Old 03-23-2012, 10:58 PM   #13
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slackware_64 13.37
Posts: 183

Rep: Reputation: 21
Quote:
Originally Posted by k3lt01 View Post
Don't try to install with the OS on the hard drive already running, reboot to the CD and do a clean install.
+1 on that!
 
Old 03-24-2012, 06:39 PM   #14
McPhart
LQ Newbie
 
Registered: Mar 2012
Location: The Netherlands
Distribution: Debian Sarge, Ubuntu and BackTrack
Posts: 6

Rep: Reputation: Disabled
Just interrupt the boot process and edit the boot command.
Use init=/bin/bash and then boot it.

You will boot into a shell with root credentials. Now mount whatever partitions you need, so you have access to /bin.
Next, enter passwd root. This will let you set a new root password.
Reboot the system and login as root. If your system defaults to X and a root-login is not allowed, press <CTRL>+<ALT>+F1 to get a non-graphical shell. Login as root and fix whatever needs to be fixed.
 
Old 03-25-2012, 08:23 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Good info in post #14, but sounds like the OP has really broken the system and has no vital data, so it would (almost definitely) be quicker/simpler to clean install.
Really depends how bad the damage is AND whether OP knows how to fix it.
If he needs to ask here, re-install is definitely quicker.
 
  


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
Deleted keystore, can I completely reinstall jdk? littlegreywings Linux - Server 3 09-07-2009 07:14 AM
How can I change the Debian boot sequence from the Root Terminal? habreu Linux - Newbie 1 01-26-2009 01:09 PM
Uninstall MYSQL completely then reinstall....help! phill79 Linux - Newbie 2 08-31-2008 02:46 PM
Completely Reinstall X Parksy Linux - General 5 09-14-2004 02:27 AM
completely remove mysql and reinstall siphi Linux - Software 4 04-09-2004 06:27 PM


All times are GMT -5. The time now is 06:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration