Baris Hasdemir writes:
hi,
my partitions are those /dev/hdb1 /boot /dev/hdb2 swap /dev/hdb3 /
I want to move /home directory to another hdd for later installs.
I have an unformatted partition /dev/hda3 and I want to mount it to /home without disturbing the existing user directories, files, their permissions, ownerships, and groupships.
should this work?: reboot in rescue mode (suse 7.2 disk 1) format /dev/hda3 (by the way i dont know how to format as ext2, or formatting in linux in general, please direct me to the relevant command for this) /mount -t ext2 /dev/hda3 /mnt/temp # cp /home/* /mnt/temp -r
Do a man on cp. cp -a will preserve owner, group, perms, links, etc.
# umount /dev/hda3 # rm /home/* -r # mount -t ext2 /dev/hda3 /home
does it really work? or will I have the groups or ownerships changed? or any other things that I should know before attempting such a radical change with my fully working system?
thanks, baris
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com