On Fri, 1 Mar 2002, Steven O'Reilly wrote:

> Hi
> 
> I have what I hope is a simple problem.  My laptop has 4 partitions (Red Hat,
> Debian, Win95 and swap)
> 
> Since I'm running out of space I want to combine the two linux partions into
> one, but keep my debian installation which has all my e-mail etc and gets the
> most use.
> 
> Is my only otion to leave the current partition settup and move things like
> /home , /var, or have I missed some obvious tool for doing this?  Any pointers
> in the right direction would be useful as I have a setup I'm happy with that
> can use the internal modem etc.

The safest way is to move say /home to the former redhat partition.
mke2fs /dev/hdaX
mount -t ext2 /dev/hdaX /floppy
cd /home
find ./ | cpio -p /floppy/
mv /home /home.old; umount /floppy; mount -t ext2 /dev/hdaX /home

Now check everything looks fine, then delete /home.old
I use find because it finds files beginning with dot.
I do the mv, umount, mount on one line to minimise how long /home is 
missing. It's not so critical with /home but when doing with /var it's 
good, don't forget to restart syslog for /var too.

-- 
---<GRiP>--- 
Web: www.arcadia.au.com/gripz 
Answering Machine/fax: 02 4950 1194 (wait 5 mins if no answer)

Mobile: 0408 686 201

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to