Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!nntp.primenet.com!mr.net!newshub.tc.umn.edu!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to combine two file systems Date: 23 Aug 1996 21:50:17 GMT Organization: Private BSD site, Dresden Lines: 54 Message-ID: <4vl92p$6s8@uriah.heep.sax.de> References: <4vgbqa$7r@ceil.fv.net> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E root@fv.net (Brian Bayorgeon) wrote: > I have FreeBSD 2.0 Release Uh, such an old release. :) > Ok, here is the thing... > > I am trying to re-work the disk partitions. Originally I created an > additional partition (/data) beyond the standard /, /usr/, /var, and > swap. I would now like to delete /var and /data and make a new, > larger /var. My first thought was to use "sysinstall" from a boot > disk and go into Custom, Label and use the Disklabel Editor. Then Don't do it. The ``W)rite'' menu item wasn't doing really well, in particular in this very first version of sysinstall. Of course, you need to backup your data first... Then, run disklabel -e wd1s1 ...and edit the partitions. You will see something like: [...] 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2400000 0 4.2BSD 1024 8192 8192 # (Cyl. 0 - 2298*) b: 200000 2400000 swap # (Cyl. 2298*- 2490*) c: 4197405 0 unused 0 0 # (Cyl. 0 - 4020*) g: 1197405 3000000 4.2BSD 1024 8192 8192 # (Cyl. 2873*- 4020*) h: 400000 2600000 4.2BSD 1024 8192 8192 # (Cyl. 2490*- 2873*) Don't touch partition `c', it is ``magic''. You wanna collapse `e' and `g', so add the sizes of `e' and `g', and use this one as the new size for `e'. Then delete the `g' line, and you should be done. After this, run newfs /dev/rwd1s1e mount the new partition, and restore the desired data. Don't forget to edit /etc/fstab. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)