Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have mounted an additional hard drive and all my files in /var are gone.

I added one more EBS hard drive in Amazon EC2. After mounting that drive my whole /var is gone.

I cannot even start Apache and also cannot use apt-get...

What should I do to restore it to be like before or at least make apt-get working?

share|improve this question

3 Answers 3

up vote 7 down vote accepted

It sounds like a) you accidentally mounted var to your EBS volume. Something like this:

mount /somevolume /var

you'll need to this:

umount /var

Or it is b) you accidentally unmounted var. Quickest way is to remount all (hopefully var still exists in fstab:

mount -a

We definitely need the steps you have done, but at this point, you really have nothing else to do short of trying to rebuild /var.

share|improve this answer
    
I guess that worked. :} –  Rilindo Sep 13 '11 at 18:30
    
It helped me to get the idea :) –  Jeong Woo Chang Sep 13 '11 at 18:35

You need to hire someone who knows about Unix & Linux to manage your server.

We can only help so much - there is a minimum level of understanding necessary that you do not appear to have.

share|improve this answer
5  
+1 - You appear to be in way over your head -- Seek. Professional. Assistance. Preferably before you do irreparable harm to your environment. –  voretaq7 Sep 13 '11 at 17:41

Did you mount your new volume over the top of your existing /var ? If you unmount your new 'hard drive' does it reappear ?

share|improve this answer
    
I will try that –  Jeong Woo Chang Sep 13 '11 at 17:15
    
It appears but apache does not work like before and what should I do to mount that extra drive and make everything works fine? –  Jeong Woo Chang Sep 13 '11 at 17:22
    
What are you trying to achieve ? –  Iain Sep 13 '11 at 17:25
1  
@Jeong, you have to be really specific as to what you're trying to achieve. It's pretty obvious you want to add more storage... –  Chris S Sep 13 '11 at 17:34
1  
@Jeong - You can't even describe the issue in a meaningful way. You really should hire someone that knows what they are doing. –  MDMarra Sep 13 '11 at 17:49

Your Answer

 
discard

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.