Subject: Re: disk full on i386 1.6.1 !
To: None <netbsd-help@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 10/23/2003 21:13:48
On Thu, Oct 23, 2003 at 09:38:40AM -0700, Jeremy C. Reed wrote:
> On Thu, 23 Oct 2003 richard.ploix@fr.adp.com wrote:
> 
> > - /dev/wd0e /usr
> >
> > Questions :
> > 1 - I want to use the dos-partition 3 for my NetBSD box, howto do ?
> 
> Use disklabel to create a new BSD partition, like named wd0f.
> 
> mbrlabel can do this for you. Have a look at the mbrlabel man page.
> 
> Then use newfs to create a filesystem on the newly created partition.
> 
> > 2 - I want to move /usr from dos-partition2 to dos-partition 3, howto do ?
> 
> You may want to do this in single user mode.
> 
> Mount the new partition, such as:
>  mount /dev/wd0f /mnt
> 
> Then copy all of /usr/ (but not "usr" directory name itself) to it. You
> can use tar, pax, cpio, cp (-Rp), or other tools to copy everything over.
> 
> Unmount partitions:
>  umount /mnt
>  umount /usr
> 
> (Old /dev/wd0e will still contain original copy of /usr.)
> 
> Mount new partition as /usr:
>  mount /dev/wd0f /usr
> 
> Check to see if it works.
> 
> Edit /usr entry in your /etc/fstab file, like:
> /dev/wd0f /usr ffs rw 1 2
> 
> > 3 - I want to give the free area (from /usr) to / , howto do ?
> 
> You could use disklabel to edit the size of the wd0a partition. But,
> I don't think there are any tools to grow the filesystem. So you would
> have to backup all of wd0a to another location, disklabel it, newfs
> (reformat and lose all data), mount it, and copy everything back.

A resizefs has been available, but I don't remember who write it
or where to get it.
A search in the mailing lists archive should give some results.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--