Super User is a question and answer site for computer enthusiasts and power users. 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've two disks in my PC. My /home is in the /dev/sda3 so it's on sda1. Then I have another disk formated and mounted as /data in /dev/sdb1. I want to move /home to /data or delete data complety and resize /home to fit all the space in data. My partition system use LVM and it's CentOS 6.3. Which solution is best and what I need to do in order to get this done?

EDIT: This is my df output:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5             29696992   2402600  25785836   9% /
tmpfs                   928504         0    928504   0% /dev/shm
/dev/sda2               495844     83245    386999  18% /boot
/dev/sdb1            307665016    233508 291803016   1% /data
/dev/sda3              5124192    489980   4373912  11% /home
share|improve this question

migrated from Nov 4 '12 at 1:40

This question came from our site for system and network administrators.

up vote 1 down vote accepted

if you want to completely remove /data and /home is a lvm.. you can just grow /dev/sda3 by using /dev/sdb1

If you post a df output I can help more with the answer.


So you don't use LVM at all. So your best bet to get it working right now is something like the following if you don't care about anything in data

umount /data
mkfs.ext4 /dev/sdb1
mount -a
mv /home/* /data/
umount /data
umount /home

Edit /etc/fstab and remove the /dev/sdb1 line and change /dev/sda3 with /dev/sdb1. Then mount

mount -a

/home should then be using /dev/sdb1 and have all your files in it.

share|improve this answer
Done, edited the main entry and added the df command output – ReynierPM Sep 20 '12 at 12:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .