Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-05-2014, 09:14 AM   #1
LQ Newbie
Registered: Jul 2014
Posts: 12

Rep: Reputation: Disabled
root bash doesn't act like root after sys instability

while i was on internet iceweasel freeze for a second and after a while i tried to use the root terminal of Debian (which also change from user@hostname to bash-4.1# in a mysterious (?) way) it didn't act anymore as a root terminal,it act like a normal bash session.
Now if i try to open virtualbox it says "Segmentation fault" but it worked fine until that moment.

Just one last thing that i think that can be correlated:
Yesterday while i was downloading some file from YUM the computer crashed and a black screen appeared with the white cursor on the left.When i tried to reboot the system it switch to a console-only operative system and the only way i was able to fix it was formatting the system.

Ps: The computer is new and tested so it can't be an hardware error.

Thanks to everyone who will help.

Last edited by karim19841; 07-05-2014 at 09:42 AM.
Old 07-05-2014, 12:47 PM   #2
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,023

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
What is your set-up, must we guess?
Do you mean you have a Red Hat derivative running as a VirtualBox guest? If so, which system did you "format" and what do you mean by that -- reinstall the operating system?
Old 07-05-2014, 01:02 PM   #3
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
just to be certain, you are using YUM on a debian system or a guest? yum is a redhat/fedora package manager, the debian package manager is apt-get

my guess is that the system crashed in the middle of writing critical system files, leaving the system in a partially updated state with incompatible versions of software running, or only partially installed packages.

one way of fixing this is to boot a live cd, mount and chroot into the crashed install
(from a root prompt on the live cd)
# mkdir /rescue
# mount /dev/sda1 /rescue (or whatever your root partition is)
# mount --bind /proc /resuce/proc
# mount --bind /sys /resuce/sys
# mount --bind /dev /resuce/dev
# chroot /rescue
# yum-complete-transaction
# exit
# reboot
if it's a debian based system replace
# yum-compete-transaction
# apt-get -f install
(you may have to install yum-utils package first for yum-complete-transaction)

i have had to do this more than once myself so i know it should work.

Last edited by frieza; 07-05-2014 at 01:03 PM.


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
What is /proc/sys/kernel/real-root-device HaroldWho Linux - Kernel 2 10-15-2008 01:58 PM
How to run a shell script as root (when user is not root) taylorkh Linux - Newbie 10 09-12-2008 06:05 PM
Shell script to start MPlayer doesn't work in any other directory than /root lagu2653 Programming 5 04-28-2006 03:22 AM
Sys V, old computer and missing root password nutz Other *NIX 3 03-14-2006 02:21 AM
sys and srv in root basilogics Linux - Software 1 08-19-2005 09:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration