Skip to main content

Thread: How to: Move /home to it’s own partition


if have arrived here searching, may have come across this blog carthik.

while excellent in it's instruction, many readers tripping when comes maintaining moved '/home' directories/files owner:group properties.

quote posted carthik
now, copy files over:
since “/home” directory have hardlinks, softlinks, files , nested directories, regular copy (cp) may not job completely. therefore, use learn debian archiving guide:
$cd /home/
$find . -depth -print0 | cpio --null --sparse -pvd /mnt/newhome/

make sure copied on correctly. might have tweaking , honing make sure right, in case.
the above code may cause real nightmare particularly if have many users in home directory, of copied files , folders become root:root.

better handled performing following instead maintain owner:group properties directories/files copied over:-

code:
$( cd /home ; tar cfv – . ) | ( cd /mnt/newhome ; tar xf – )
hope helps.

code:
cd /home; rsync -av . /mnt/newhome
accomplishes task well.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] How to: Move /home to it’s own partition


Ubuntu

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached