[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: deleting and resizing ext2 partitions
From: |
Andrew Clausen |
Subject: |
Re: deleting and resizing ext2 partitions |
Date: |
Tue, 11 Sep 2001 07:37:14 +1000 |
User-agent: |
Mutt/1.2.5i |
On Mon, Sep 10, 2001 at 01:37:06PM +0200, Tilman Sauerbeck wrote:
> Hi all,
> I still have some questions about parted, even after reading the
> documentation :)
>
> Disk geometry for /dev/hda: 0.000-14655.867 megabytes
> Disk label type: msdos
> Minor Start End Type Filesystem Flags
> 1 0.031 7.844 primary ext2 boot
> 2 7.844 196.105 primary linux-swap
> 3 196.106 290.236 primary ext2
> 4 290.237 14653.037 extended
> 5 290.268 478.498 logical ext2
> 6 478.529 2863.146 logical ext2
> 7 2863.178 14653.037 logical ext2
>
> I want to do the following:
> delete partition 1. This was my /boot partition, but I updated to a
> recent version of LILO so I don't need a separate /boot partition
> anymore.
(parted) rm 1
So, you searched for "delete" in the documentation, and didn't find it?
> I'd like to add the free space resulting from this to my swap partition.
(parted) resize 2 0 196.105
> As a third step, I want to shrink partition 6 or 7 and also add the
> resulting free space to the swap partition.
They aren't next to the existing swap. But, you can have more than
one swap partition.
(parted) resize 7 2863 14500
(parted) mkpartfs logical linux-swap 14500 14653
> I am not sure whether this is possible, please comment on this. IMHO it
> would be great if there was another parted HOWTO or more examples...
I'm accepting contributions...
> One final question:
> parted doesn't get the C/H/S values for my disk right, i.e. the values
> are not the same like the ones the BIOS shows me. The values from the
> BIOS seem to make more sense to me, so I should append
> "hda=right-values" to my boot parameters, right?
This doesn't matter, since you're not using anything that needs to use
the CHS values.
Andrew