On Mon, 2007-06-18 at 15:56 +0100, Dave Howorth wrote:
Fernando Costa wrote:
I have the /home on its own partition, but I need to move it to the root partition without losing data, which is the safest way to do that? My root partition is about 20G and the /home partition is about 8G and less than 1G is used because I store my data in a different partition.
openSUSE 10.2
Lots of advice about how to do this from various people, so let me be contrarian :)
Don't do it.
I believe it's much better to have too many filesystems rather than too few. You don't say what your real problem is - I guess you're trying to recover the 8 GB? So copy the contents of /home into the root partition temporarily, reformat the 8 GB as LVM space and then recreate /home as a logical volume.
BTW, your root partition is way too big, IMHO. I'd have about 2 GB for root and put the other 18 GB into LVM with /usr, /var, /opt in their own logical filesystems. If you're using ext3 or reiserfs (don't know about others), you can then grow them as needed.
I'd make all changes while running some other system (e.g. a live disk like Bob Kline suggested). I always keep my previous system in another 2 GB partition for this sort of work.
Cheers, Dave
Hi Dave, Fernando, I agree with keeping as many seperate file systems as possible If something "boils over" it can only fill one partition (being it /home, /tmp, /var/tmp, /var/spool, /var/log or what ever) Gives you also the freedom to tune it differently (many small files, a buch of large iso's) Using it and LVM (with reiser, ext2, ext3) for quite a while. You can grow them online and shrink them offline. Only exception personally, is for temporary test installations, (just /) Keep important files (data, config, xml-descriptions) somewhere else, like on a mounted smb- or nfs-share. Hans -- pgp-id: 926EBB12 pgp-fingerprint: BE97 1CBF FAC4 236C 4A73 F76E EDFC D032 926E BB12 Registered linux user: 75761 (http://counter.li.org) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org