bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resizing two partitions


From: Andrew Clausen
Subject: Re: resizing two partitions
Date: Fri, 3 Aug 2001 07:35:37 +1000
User-agent: Mutt/1.2.5i

On Thu, Aug 02, 2001 at 11:01:04AM -0700, dino bartolome wrote:
> Hi I have a single drive running open bsd 2.9
> 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....

This will be a problem.  The only way around it is to shrink the partitions
enough to be able to copy the partition into the free space.

Eg:

        AAAAAAAAaaaaaaaaaaaBBBBBBBbbb
        AAAAAAAA           BBBBBBB
        AAAAAAAABBBBBBB
        AAAAAAAABBBBBBBbbbbbbbbbbbbbb

A means used space on partition A.
a means unused space on partition A.

> I'm not exactly sure that /home and /usr partitions are /dev/hda6 and
> /dev/hda5 but they could be... 

Have a look in /etc/fstab.

> also there might be partitions inbetween the /home and /usr partitions..
> is it still feasible to resize partitions shrinking one and enlarging the
> other?

It really depends on the layout.  Use parted to print out your partition
table:

        # parted /dev/hda print

Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]