bug-parted
[Top][All Lists]
Advanced

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

Re: move extended containing ext2?


From: Andrew Clausen
Subject: Re: move extended containing ext2?
Date: Fri, 28 Sep 2001 11:04:43 +1000
User-agent: Mutt/1.2.5i

On Thu, Sep 27, 2001 at 05:32:15PM -0700, Kenneth Gibbs wrote:
> 
> I have a (hopefully) quick question about the use of parted.
> First, its a dual boot Win2K + RH7.1 box.  I use the NT boot-
> loader (ie copy the boot.ini file into c:\, etc.).  Now, I
> want to install win4lin (I've done so on my old box at home
> and it works just fine).  Exactly what I'd like to do is
> shrink the W2K partition (minor=1) to about 1/2 its present
> size, move the linux boot partition (minor=2) down on top of
> that, and resize the extended partition to fill the disk.  I
> have a couple of questions though:
> 
> 1) Do I need to copy the boot.ini file back in to the W2K
> partition?   In other words, if I move the boot partition does
> that file change?

As long as it remains the boot partition, it doesn't need to change.

> 2) The parted documentation explicitly states that you CAN
> resize ext2 "partition" but only if the START stays the same.

Right.

> On the other hand, it says you can resize extended partitions
> and does not mention that caveat.

Right.  You can resize extended partitions without restriction.

> What if the extended partition contains an ext2 filesystem?

It makes no difference.  When you move an extended partition, no
data is moved.  Just, you get some free space at the start/end/whatever.

> As it lives and breaths now my disk looks like this:
> 
> Disk geometry for /dev/hda: 0.000-28629.562 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.031   8001.123  primary   FAT         boot, lba
> 2       8001.123   8024.655  primary   ext2
> 3       8024.656  28623.625  extended
> 5       8024.687   8283.515  logical   linux-swap
> 6       8283.546  28623.625  logical   ext2
> 
> What I'd like to end up with is more like this:
> 
> Disk geometry for /dev/hda: 0.000-28629.562 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.031   4001.123  primary   FAT         boot, lba
> 2       4001.123   4024.655  primary   ext2
> 3       4024.656  28623.625  extended
> 5       4024.687   4283.515  logical   linux-swap
> 6       4283.546  28623.625  logical   ext2

        (parted) resize 1 0 4001
        (parted) move 2 4001 4025
        (parted) resize 3 4025 28623

Andrew




reply via email to

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