Files in /var are gone

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?


Solution 1:

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.

Solution 2:

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.

Solution 3:

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