From: John Gay (John_Gay at domain eur.3com.com)
Date: Fri 04 Feb 2000 - 13:17:52 GMT
Thanks for the detailed info on using tar. It certainly made me feel better
knowing what was going on. I just created /opt, and pointed fstab to an empty
partition. Then I used your command to move /var. Being paranoid, I just had a
browse through /mnt when I was done and checked to see what was moved. It was
all there. Then I used the same technique to copy /usr. This currently resides
on a 2G partition, an is 1.8G already! I used your command again, and. . .
waited. Then I went down stairs to get a smoke. Had another look, and finished
my smoke. Then I went and made a cup of tea. Enjoyed the tea, and was just about
to go make another one, when it finally finished! I updated fstab, and
re-booted, and . . .
Everything worked perfectly! I love when a plan comes together.
I've now got /usr, /var and /opt on separate partitions. /home, / and my swap
space are still on their original partitions. and I've got a free 2G partition
where /usr used to live.
My next step is to re-arrange my first hard drive. I can use the same trick to
back-up /home to a sub-directory of /var for the moment. I am just concerned
about / and swap.
Is swap initialised in single-user mode? Even if it is, I should be able to just
un-initialise it, right? The most worrying point is messing with /. I do have
two 800M partitions set aside for CD images, so I should be able to copy / to
there, and then burn it to CD. But how do I copy / without including /home,
/var, /usr and /opt? I just want an exact copy of the partition. is there a
command I can use to copy a partition directly, rather than having to work with
the entire file system? That way I could just say copy /dev/hda2 and be done
with it. I think I'll also copy my kernel to floppy, and change the floppy to
boot from CD for the time being. What was the command for changing the root
device?
Thanks again for all your help and understanding. Little by little, this UNIX
stuff is sinking in. I am hoping to get some training courses in UNIX soon, then
I can start helping others and stop bothering everyone on this list.
Cheers,
John Gay
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:21 GMT