Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!news.mathworks.com!worldnet.att.net!ix.netcom.com!alcocer From: alcocer@netcom.com (Dario Alcocer) Subject: Moving /usr, /usr/src to new disk? Message-ID: <alcocerE49Myq.4Iu@netcom.com> Summary: Ideas on moving /usr filesystem to new disk Keywords: filesystem moving /usr Sender: alcocer@netcom20.netcom.com Organization: Netcom On-Line Services X-Newsreader: NN version 6.5.0 CURRENT #9 Date: Sun, 19 Jan 1997 17:23:14 GMT Lines: 45 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34217 I'm running FreeBSD 2.1.0, with wd0 a 850MB WD Caviar IDE drive. I'm starting to run out of space under /usr, and I want to install some new software (emacs, among others), and I don't have enough room left. I was thinking of moving a second 850MB disk (same model) from my Windows PC to my FreeBSD machine as wd1. What I'd like to do is move /usr and /usr/src to this new disk. This the procedure I was contemplating on using for this: o shutdown machine to install the new IDE disk, and boot to single-user mode. o run fdisk, disklabel, and newfs to setup a couple of filesystems on new disk (ideas to do this more easily are welcome) o for /usr and /usr/src, run the following comands: # mount /dev/wd1s1X /mnt (where X are the new slices for /usr and /usr/src) # cd /mnt # dump 0f - /dev/rwd0s1e | restore -rvf - # umount /mnt Will this work correctly? Any ideas on how to do this more easily/safely/correctly are welcome. BTW, here's what my current configuration looks like: pino# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 19966 14288 4080 78% / /dev/wd0s1h 145110 111314 22186 83% /u /dev/wd0s1e 201310 181268 3936 98% /usr /dev/wd0s1f 302222 157636 120408 57% /usr/src /dev/wd0s1g 100398 44460 47906 48% /var procfs 4 4 0 100% /proc Thanks in advance. -- Dario Alcocer alcocer@netcom.com -- -- Dario Alcocer alcocer@netcom.com