Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

my os is CentOS 6 running as a virtual machine under ESX. I don't know why /home folder is mapped to the biggest partition. I want my own folder /data (which is next to /etc, /root, /home and others) to be 1.2T big.
How can I achieve this?

centos6 ~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
                       50G  4.2G   43G   9% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/sda1             485M   52M  408M  12% /boot
                      1.2T  199M  1.2T   1% /home
share|improve this question

migrated from Nov 18 '13 at 18:35

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

You could create another logical volume (lv) and then steal space from lv_home and give it to lv_data (or whatever you call it). But that is going to involve a good amount of work to make sure that nothing in the partition on lv_home is using that space (work I'm not rightly sure how to perform offhand).

It might be easier to simply change your mount points if you really don't care about /home and aren't going to care in the future. This would involve actually creating a /home directory on the / filesystem (on lv_root) then moving all of /home to there. After which you can mount the partition on lv_home to /data (once you've moved all your data to there from the current /data.

If this is a new system you might be better off just reinstalling from scratch and getting the partitioning and layout correct in the installation wizard.

Alternatively you could just move the contents of /data to /home/data and then symlink or bind mount from /home/data to /data.

share|improve this answer
Thank you! This is what I want! – Driver Nov 19 '13 at 15:48

You can recursively copy your contents from /data/x to /home/x by doing

cp -Rp /data/x /home

After that change your login directory to be /home/x by using 'usermod' command.

share|improve this answer
Thanks, but I want to keep /data folder. I just want it to be much more bigger (1.2T) than it is now. I don't use /home folder and it should be as small as possible. – user2274366 Nov 18 '13 at 18:22

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.