On Thu, 2002-07-18 at 19:05, Oliver Elphick wrote: > Boot into single-user mode - this is because with /var you will be > deleting stuff that is currently in use in a multi-user > environment. It isn't necessary if you're moving /home or the like. > > # cfdisk /dev/hdc # partition new hard disk > # mke2fs /dev/hdc1 # Make a file system on new partition I'd consider using one of the journalled filesystems (reiser, ext3, ...) as fsck is quite annoying on todays large disks. > # mount /dev/hdc1 /mnt # mount it on /mnt > # cd /var # don't forget this or the next commands > # will destroy everything > # cp -a . /mnt # copy the filetree to the new filesystem > # rm -rf . # delete it from the old filesystem If you're really sure. I would # cd .. # mv var old-var # mkdir var > # umount /mnt # remove the new partition from /mnt > # mount /dev/hdc1 /var # and put it in its new position > > Edit /etc/fstab to insert the line for mounting /var automatically. > > Go to multi-user mode again. cheers -- vbi -- secure email with gpg http://fortytwo.ch/gpg
Attachment:
signature.asc
Description: This is a digitally signed message part