[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] "Failsafe" full restore procedure



Matthew Goade wrote:

Notes: cfdisk reports the unused space as unusable. I cannot(to my knowledge) make a partition out of it. I do not have sufficient space on / to tar /home onto it in order to resize /home.

Matthew,

Assuming the /home partition is large enough to hold a copy of itself I think you could tar /home up into itself and then ftp the tar to another machine whilst you resize the partition. I believe this should work.

I included the instructions for resizing the /home partition just in case you missed it in the archives. Once you have the /home partition resized you bring the tarball back and unpack it.

Login as root ==> su -
Make a temp directory ==> mkdir /home/hometmp
CD to the new directory ==> cd /home/hometmp
Tar a copy of /home ==> tar cvf home.tar /home
Shut down all services ==> /etc/rc.d/init.d/httpd stop

*NOTE* You must shut down all services (i.e. admserv, httpd, inetd,etc..)

CD to root/root directory ==> cd /root
Unmount /home ==> umount /home
Change /home partition to new size ==> cfdisk
Write changes to /home partition (usually hda4)
Make filesystem/format ==> mkfs /dev/hda? (where ? is the # for /home)
Re-mount /home partition ==> mount /home
CD to root ==> cd /
Un-tar copy of /home ==> tar xvf /home/hometmp/home.tar home
Remove backup of /home ==> rm -r /home/hometmp

Regards,

Toby Miller

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx