You write:
> Hi I have a single drive running open bsd 2.9
Hmm. You know that ext2resize only resizes ext2 filesystems? I think
BSD is using FFS or some other type of filesystem than ext2, so it will
not work in this case.
> I want to enlarge /home and and shrink /usr
> /home i believe is /dev/hda6
> /usr is /dev/hda5
> will this work out? I'm worried since it says in the manual that to enlarge
> a partition i must keep the same start cylinder....
The same is true with shrinking - you need to keep the same starting
cylinder as well.
> I'm not exactly sure that /home and /usr partitions are /dev/hda6 and
> /dev/hda5 but they could be...
That is not a good sign, if you're not sure which one is which. You
can use "mount" to show which partitions are mounted where. Of course
under BSD I think the devices have different names as well.
> also there might be partitions inbetween the /home and /usr partitions..
> is it still feasible to resize partitions shrinking one and enlarging the
> other?
This will definitely not work, because DOS-style partitions need to be
one "chunk" of disk space (i.e. contiguous). I think BSD has "vinum"
which is a volume manager, and allows you to do things like that. I
don't know if you can upgrade-in-place from DOS partitions to vinum.
In any case, before you do ANYTHING, you should make a full backup of
your disk, or you risk destroying everything, especially since you are
not exactly sure of your disk layout.
You may also want to look at the GNU parted tool, because I think it
handles BSD/DOS partitions (I don't know if it does BSD FFS resizing
or not).
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
|