Erick Andrade wrote: > I have OpenBSD4.9 running on a VPS, and i want to reduce the size of > /home partition, > and increase the size of /usr. > > After reduce the size of /home, disklabel says: > --- OpenBSD area: 64-20964825; size: 10236.7M; free: 2000.3M > > But, when i try edit /usr partition to add the 2G free space to it, > disklabel says: > --- Partition f is currently 2185664 sectors in size, and can have a maximum > size of 2185664 sectors.
You can't reduce the size of a ffs (filesystem), /home here. Unless you destroy it and then re-create it. And I can't think of an easy way (if any) to move the beginning of an existing ffs system (that's what I think you want to do with here with /usr). What you can do is use the space freed after re-creating the /home label / fs to create another label/fs that could hold, for example, /usr/src. If I were you, I'd just do backups (you got backups already, right?) and reinstall properly.