Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to put my /var/logs on a separate partition. I know how to fstab, but one thing concerns me...

If I create the partition and mount it to /var/logs what would happen to the data already there... and do I need to worry about the permissions of "anything"? Thank you in advance for your help.

share|improve this question

First you need to delete/move the data in /var/logs/. I don't think you can mount a partition on a folder that has sub-folders or files.

You don't need to worry about permissions, because I think root does all the writing, so it will automatically have permissions. [My /var/log/ folder permissions are 755, so any user can view, but only the owner (root) can write].

share|improve this answer

Simple. Just all you need to do is create an empty partition and set it's mount point to /var.

To do this you must have an USB/DVD Live system and then you can do it with Gparted. after creating the partition on wards all your log data which is a subfolder in /var will move into that directory.

share|improve this answer
To add information, I'm doing everything from the command like. I was just concerned about the data already there when I set fstab and reboot. – Jon Will Sep 14 '13 at 15:47
That you can move right , simply use sudo mv [source_path] [ Dest_path] – Raja Sep 14 '13 at 15:48

Your Answer


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.