Solved

Linux Mount var folder problem

Posted on 2010-11-18
3
530 Views
Last Modified: 2012-05-10
I want to mount an external harddrive to var folder but whenever i mount it aftrer installing brand new linux cent os it looses all folders in it , how should i securely mount disk to var folder without loosing all content in var
0
Comment
Question by:3XLcom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
Hatrix76 earned 350 total points
ID: 34167759
You do not loose anything.

you have to understand what mounting means. You mount a filesystem to a directory, and the directory will become the new filesystem (in your case the external harddrive). All contents below the mount-directory (in your case var) will not be accessible until you unmount the harddrive.

Why in the first place do you want to mount something to /var?

normaly you mount something to /media/<something> or /mnt/<something> .... the logic of mounting something to /var eludes me in the moment.

If there is a real reason to mount to your /var please state your requirements for doing so.

best
Ray
0
 
LVL 23

Assisted Solution

by:savone
savone earned 150 total points
ID: 34167797
Hatrix76 explained why your stuff is not accessible when mounting external HD to var.

If you want to keep your external HD mounted to var and still have the stuff in var accessible, you will have to move all the stuff in var to your HD.

So mount your external HD to /mnt/exthd (or whatever floats your boat)

Then move everything in var to /mnt/exthd

then unmount /mnt/exthd and remount it at var like you want.

0
 

Author Closing Comment

by:3XLcom
ID: 34167893
i see :) i have a scsi disk 140 Gb but my web sites is more then 200Gb so i bought an external disk , plesk use var folder for store emails and vhosts and ....
ok i will try it :)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question