On Thu, Jul 26, 2007 at 12:50:33PM -0600, Mark Zimmerman wrote: > On Thu, Jul 26, 2007 at 07:13:05PM +0200, hyjial wrote: > > Hi list ! > > I recently jumped into the OpenBSD's world from > > GNU/Linux's one. I am still not familiar with some of > > OpenBSD's practices and encounter some problems. > > Well, here is the point : > > I have just installed OpenBSD-4.1-release on a IBM > > Thinkpad T22 laptop. Some mistakes (which I'd better > > not talk about ;) lead me to change my partitions > > layout : > > I had a 10M wd0h and a 9G wd0i. > > I deleted wd0i and expanded wd0h. > > All this has been done by accessing the disk through a > > shell on the install CD. > > Now, disklabel(8) run from the on-disk system show the > > right size for wd0h. > > But the mounted wd0h partition still seems to have its > > ancient size (10M). I tried to delete the /dev/wd0h > > node and re-create it : no improvement. (df still > > shows 10M available). > > Did you rebuild the filesystem? (man newfs) You did not mention this. > > -- Mark
Disklabel only creates space for a filesystem. The filesystem itself stays as it was created. This is the same in the Linux world. With some filesystems in the Linux world you can resize them (at least expand) to e.g the new size of the available disk partition space. Reiserfs can expand while mounted. Ext3 while unmounted. OpenBSD ffs can also be expanded but only while unmounted. See growfs(8). I do not know if growfs is available on the installation CD. If not, and if it is not possible to boot the system without the wd0i disk slice, you will have to create a new empty disklabel slice, create a new filesystem on it, and (if you need to) tar over the contents from the old filesystem. This should be possible to do from the install CD. The command manuals are available online at http://www.openbsd.org. Copy something like: # (cd /src && tar -cXf -) | (cd /dst && tar -xpf -) If wd0h does not contain anything interesting, just scratch it by creating a new filesystem on the disk slice using newfs(8). -- / Raimo Niskanen, Erlang/OTP, Ericsson AB