5

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?

3 Answers 3

7

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.

2
  • I guess that worked. :}
    – Rilindo
    Sep 13, 2011 at 18:30
  • It helped me to get the idea :)
    – jwchang
    Sep 13, 2011 at 18:35
7

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.

1
  • 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, 2011 at 17:41
5

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

8
  • I will try that
    – jwchang
    Sep 13, 2011 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?
    – jwchang
    Sep 13, 2011 at 17:22
  • What are you trying to achieve ?
    – user9517
    Sep 13, 2011 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, 2011 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, 2011 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.