Move home directory to different partition
#1
Hi,

I am just getting to get to grips with XBMC Live on a new Revo.. I have a 4GB XBMC partition, 2GB swap space and the remainder of the 160GB hdd free to be used for other data (movies, etc).

Now that it is set up, it seems that some people advise setting the remaining space as the 'home' directory. Is it possible to do this with a working system, or must I reinstall the entire setup?

Any tips?

Thanks!
Reply
#2
sure you can. just use gparted for instance. partition and format the space, mount it, move your home dir there, edit /etc/fstab, boot, off you go.
Reply
#3
Hi Spiff, thanks for the quick reply!

I am currently formatting the space to ext 3 (was originally ext4, but I hear this can be less stable..)

so can I confirm how I would do this?

i did sudo fdisk -l to find it is /dev/sda2
then..
sudo mkdir /media/internalhdd
sudo mount /dev/sda2 /media/internalhdd
sudo mv /home/* /media/internalhdd/
sudo rm /home/
sudo unmount /media/internalhdd
sudo mount /dev/sda2 /home
sudo nano /etc/fstab
(add to bottomSmile /dev/sda2 /home ext3 defaults 0 0

should I also move /tmp, /var by same process?
Also, will this work when it is running with me logged in, or is there another way to run it (logged out?)
Reply

Logout Mark Read Team Forum Stats Members Help
Move home directory to different partition0