Hello,

I have two hard disks, /dev/hda and /dev/hdb. The latter has only two
primary partitions assigned to swap and /home. I want to create a third
partition in /dev/hdb and asign it to /var, which currently lives in
/dev/hda in the same partition of / (no separate partition for /var). 

I am thinking on the following:

1. "tar cvf var.tar /var/*" to have a backup of the current contents of
   /var.
2. "tar cvf home.tar /home/*" to have a backup of home.
3. "umount /home" and use cfdisk to create the new partition.
4. Modify /etc/fstab to account for the new mapping of file systems.
5. Mount /home and restore the files from home.tar
6. Reboot Linux and once the new /var is mounted restore the files from
   var.tar

I'm not sure about the last point since during the booting process some
info in /var might be needed. Also, if it works, what happpens to the
files in the original /var (in /dev/hda)? I'd appreciate if someone can
enlighten for me the right way to do this.

Thank you,

Pedro Ivan
----------

P.S. I overlooked giving /var its own partition when I first installed
debian and it lives under the root partition. However /var/spool/mail is
getting to big (to many users!) and that's why I need the extra space
available in /dev/hdb.

Reply via email to