LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2014, 06:57 PM   #1
techux
Member
 
Registered: Mar 2013
Posts: 56

Rep: Reputation: Disabled
/bin/ empty after system reboot/crash


Hi guys.

Today happened something really weird in my redhat 5.10.

I restarted the server remotely, and after sometime it didnt come back. so when I opened the console it shows the message:

Quote:
INIT: Id "x" respawning too fast: disabled for 5 minutes
and the promtp
(none) login:
of course I couldnt login with the root account or any other account.

1- first I ran e2fschk -fy for my LVM partitions, it found some errors in my root partition(LVM) and"fixed it". didnt work, same issue at boot.

2- using google I found it might by sometime with the Xorg and advise to edit the inittab and change it to start in runlevel 3 instead of 5. So I did in rescue mode, and nothing. Now I didnt see any error message, just go to the prompt:

Quote:
(none) login: (couldnt log in)


3- so I started in rescue mode again. automatically mount the system file.

but when I ran #chroot /mnt/sysimage I got the error:

Quote:
chroot cannot execute /bin/sh no such file

as I was connected using a KVM from my computer I recorded my screen and this was the error I get just before "the (none) login:"



Quote:
INIT cannot execute etc/rc.d/sysinit

Then I boot in rescue again and when I go to /mnt/sysimage/bin it is TOTALLY empty... there are folders in the rest of folders (but not all of them)

I tried copying the /bin folder from another server, same installation (cluster and same server model)

but of course it wont boot, there are some errors from missing files, rc.d....etc etc...


So the thing is, is this possible to happen if the file system get corrupted?...we have been restarting the server several times a day while configuring the cluster.

I checked the logs in rescue mode and didnt find anything weird in the .bash_history, secure, audit.
 
Old 02-22-2014, 12:17 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,774

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Running fsck with the "-y" option without knowing what the problem was is a good way to lose a lot of data. You will probably find that the missing files have been dropped into lost+found, but without their original names. As for what caused it, that "fsck -y" has obliterated that trail. As an example, though, a corrupted root inode can cause an entire filesystem to get dumped into lost+found (thankfully with only the top level directory names lost).
 
Old 02-28-2014, 11:52 AM   #3
byau
Member
 
Registered: Sep 2009
Location: Los Angeles, CA
Posts: 33

Rep: Reputation: 5
I'm pretty sure it's an aberration. And as far as why it got obliterated in the first place, inode confusion happens when something is in memory but doesn't get written to the filesystem so the filesystem is not how the OS expects it to be. I haven't ever seen that happen to a whole filesystem though.

Did you re-install?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't empty trash bin Zero4 SUSE / openSUSE 3 03-18-2013 10:10 AM
Can not empty recycle bin joboy Ubuntu 3 12-21-2011 08:31 AM
qt/bin/ is empty extrasolar Linux - Software 2 07-14-2006 06:06 PM
empty desktop after a crash viktoranagy Fedora 1 10-02-2005 11:39 AM
Needing root to empty the bin??! hongman Linux - Newbie 2 03-01-2005 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:05 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
Open Source Consulting | Domain Registration