bug-parted
[Top][All Lists]
Advanced

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

2.5.2 Example: Resizing an ext2 partition on a crowded disk. Mistake?


From: Eric Promio
Subject: 2.5.2 Example: Resizing an ext2 partition on a crowded disk. Mistake?
Date: Wed, 4 Dec 2002 14:33:04 +0100

Hello, thank you for read my message.

In the 2.5.2 step of the GNU parted manual, there is line of text that i not
understand, this is the paragraph:
****************************************************************************
****************************************************************************
*******
Suppose your disk layout looks like this:
(parted) print
Disk geometry for /dev/hda: 0-8063.5 megabytes
Disk label type: msdos
Minor   Start     End    Type            Filesystem     Flags
1          0.0     23.5  primary         ext2           boot
2         23.5   8056.0  extended
5         23.6   3545.6  logical         ext2
6       3545.6   7067.7  logical         ext2
7       7067.7   7326.5  logical         ext2
8       7326.5   7585.4  logical         ext2
9       7585.4   7844.2  logical         linux-swap

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda8             251M   31M  207M  13% /
/dev/hda1              23M  2.4M   19M  11% /boot
/dev/hda5             3.4G  577M  2.7G  18% /usr
/dev/hda6             3.4G  289M  2.9G   9% /home
/dev/hda7             251M   12M  226M   5% /var
Suppose you wanted to increase the `/var' partition (`/dev/hda7') to 1GB,
using some space from `/home' (`/dev/hda6').
To resize a partition with Parted, you use the resize command:
(parted) resize partition_number new start new end
new start must be the same as the old start for ext2 partitions
(unfortunately). So this process is going to be rather complicated. It is
possible, though. (2) <parted.html>
Shrink the `/home' partition (`/dev/hda6') by 500MB:
# parted /dev/hda
(parted) resize 6 3545.6 6200
Make a new partition in its place. This is where `/var' will be, eventually.
This new partition will be numbered 10.
(parted) mkpartfs logical ext2 6200 7067.7
****************************************************************************
*************************************************************
In the shrink step, the end for the partition 6 for shrinking process of
500MB i think is 6567.7 that is:

        7067.7 - 500 = 6567.7

this means :

resize 6 3545.6 6567.7

why you write 6200 as end partition?

I am mistaken?

Eric Promio Zamora
address@hidden





reply via email to

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