bug-parted
[Top][All Lists]
Advanced

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

Re: move 5 xxx.xx End?


From: Andrew Clausen
Subject: Re: move 5 xxx.xx End?
Date: Tue, 9 Jul 2002 16:21:16 +1000
User-agent: Mutt/1.3.28i

On Tue, Jul 09, 2002 at 01:04:37PM +0800, Mathias Koerber wrote:
> Hi
> 
> My old partition table looked like this:
> 
> print
> Disk geometry for /dev/hda: 0.000-11513.250 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.031     62.753  primary   ext3        boot
> 2         62.754    188.261  primary   linux-swap
> 3        188.262   1686.511  primary   ext3
> 4       1686.511  11507.497  extended
> 5       1686.542   3184.760  logical   ext3
> 6       3184.792   4180.979  logical   ext3
> 7       4181.010   4683.010  logical   ext3
> 8       4683.041   5185.041  logical   ext3
> 9       5185.072   5687.072  logical   ext3
> 10      5687.104   6087.128  logical   ext3
> 11      6087.160   6487.185  logical   ext3
> 12      6487.216   6785.266  logical   ext3
> 13    6785.297   8291.359  logical   ext3
> 
> 
> 1. I want to
>       a) expand partition 3 to at least 4GB
> and therefore to move the extended partition
> including all the other partitions towards the end
> of the disk.
> 
> (parted) resize 4 1686.511 11513.250  - worked
> 
> next I´m trying to simply move partition 5 to the end
> of the extended partition to create space in front:
> 
> (parted) move 5 8291.360
> End?

Ooops, I'm not sure why the docs say this.  Maybe I was planning
to implement it (!)  Anyway, I'm not sure it's a good idea.

> 2. After moving partition 5, can I simply resize the
> extended partition 4 using
> 
> (parted) resize 4 1686.542 11513.250

That's what it is already!

> and will that keep all the partitions inside it
> correctly set up?

Yes, you can resize extended partitions, without data loss, etc.

> 3. Finally, I will delete partition 3 and recreate it
> to take up all the space up to just before partition 4
> (no need resizing, it will get a diff filesystem anyway),
> and create a partition 14 at the end too. Those seem simple.

Right.

Cheers,
Andrew




reply via email to

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