LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-05-2014, 10:14 AM   #1
karim19841
LQ Newbie
 
Registered: Jul 2014
Posts: 9

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


hi,
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 10:42 AM.
 
Old 07-05-2014, 01:47 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,848

Rep: Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952Reputation: 1952
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, 02:02 PM   #3
frieza
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,226

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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)
Code:
# 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
Code:
# yum-compete-transaction
with
Code:
# 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 02:03 PM.
 
  


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

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

All times are GMT -5. The time now is 01:14 PM.

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