Notes below \/ Ed Harrison wrote:
** Reply to message from Nick Webb
on Sat, 15 Sep 2001 01:31:59 -0700 First, thank you for a quick and very informative reply.
Your welcome
I have a few questions (in-line)
# 1. Find a free partition big enought to hold the data for said # partition, lets say /dev/hde1 is the current / (root) partition and that # /dev/hdg1 is the free partition.
/dev/hdb5 is already formatted ext2 and contains an old copy of SuSE 6.4. Is it best to simply rm -rf the whole partition, or reformat it?
I would reformat it, just to make sure everything is gone . . .
# # 2. If the free partition isn't formatted, format it with a command like # 'mkfs.ext2 /dev/hdg1'
# # 6. Dump current filesystem to temp partition # cd /mnt/root # find ./ -xdev | cpio -pdv /mnt/tmpdrive
I thought that a problem with cpio is that it changes all ownership to root.root during the copy process. Is this not accurate?
When I did this to my machines, I moved all partitions except boot (/, /home, /usr, /opt, etc.) and I never had any problems with this, everything had the same permissions and ownership as before the copy. However, it is possible that was a bug in some version of cpio, but it worked for me.
# # 7. Make sure you have a good backup of all your needed data (if you # mess up and have no backup, good-bye data!) # # 8. Format the original partition with reiserfs # umount /dev/hde1 # mkreiserfs /dev/hde1 # # 9. Restore data back # mount /dev/hde1 /mnt/root # cd /mnt/tmpdrive # find ./ -xdev | cpio -pdv /mnt/root #
Is it possible to format the new partition (see number 1) with reiserfs and then copy or rsync the current data to it? It is afer all a spare partition at this point.
yes, you could format it with reiserfs and follow the directions in the same way. In fact, that may be better. That way if you fail to mount the spare partition then there really isn't a big deal. Then you could correct the problem before converting the rest.
Ed Harrison, broadcasting on ----/ / _ ---/ / (_)__ __ ____ __ --/ /__/ / _ \/ // /\ \/ / -/____/_/_//_/\_,_/ /_/\_\ by SuSE(7.2), Kernel 2.4.9, X 4.1 or Windows98 (running in vmware 2.0.4 for fun) PolarBarMailer 1.20 with IBM JDK 1.3.0
participants (1)
-
Nick Webb