Re: Resize partition

From: jim lawrence (fedorajim_at_gmail.com)
Date: 04/30/05

  • Next message: Greg Swallow: "Mounting FAT32/VFat Partitions at Boot"
    Date: Sat, 30 Apr 2005 09:23:51 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    On 4/29/05, Rick Stevens <rstevens@vitalstream.com> wrote:
    > weetat wrote:
    > > Hi all ,
    > >
    > > I am using Fedora core 2 (kernel 2.6.11.7) .
    > > I would like to resize the fedora box partition.
    > > The partition file system are shown below :
    > >
    > > I would to delete /dev/sda2 which is window 2000 OS and copy over
    > > remaining size to /dev/sda5 .
    > > Anybody have any ideas how to do that ?
    > >
    > >
    > > Device Boot Start End Blocks Id System
    > > /dev/sda1 1 4 32098+ 12 Compaq diagnostics
    > > /dev/sda2 * 5 1024 8193150 7 HPFS/NTFS
    > > /dev/sda3 1025 1661 5116702+ 83 Linux
    > > /dev/sda4 1662 5530 31077742+ f W95 Ext'd (LBA)
    > > /dev/sda5 1662 2298 5116671 83 Linux
    > > /dev/sda6 2299 2935 5116671 83 Linux
    > > /dev/sda7 2936 3572 5116671 83 Linux
    > > /dev/sda8 3573 3699 1020096 83 Linux
    > > /dev/sda9 3700 5275 12659188+ 83 Linux
    > > /dev/sda10 5276 5402 1020096 83 Linux
    > > /dev/sda11 5403 5529 1020096 82 Linux swap
    >
    > It's very, very dangerous to try to join partitions by deleting one and
    > expanding the second to use that space. Since they're adjacent, it
    > could be done using parted and resize2fs, but you really, REALLY need to
    > back up EVERYTHING before you start futzing around with the partition
    > tables. I can almost guarantee you'll mess up at least once. Trust me
    > on that.
    >
    > You'd be better off using lvm to tie the two together, but you still
    > need to move the content off sda5 first. I hesitate to offer details
    > on how to do this in this forum, but in a nutshell, you'd:
    >
    > 1. Back up sda5.
    > 2. Use "fdisk" to change the partition type of sda2 to 83 (linux).
    > 3. Use "pvcreate" to create physical volumes (PVs) on sda2 and sda5
    > (this will wipe out the content of both partitions).
    > 4. Use "vgcreate" to create a volume group out of sda2 and sda5.
    > 5. Use "vgchange -y" to make the volume group visible.
    > 6. Use "lvcreate" to create a logical volume (LV) out of the PVs.
    > 7. Mount the LV where sda5 originally was.
    > 8. Restore the old sda5 contents to the new LV.
    >
    > You MUST read the man pages on pvcreate, vgcreate, vgchange, lvcreate,
    > and LVM in general. It's not difficult, but it is confusing the first
    > time you do it.

    Not to mention that sd4 is a extendended "Container" of sd3, sd2 & sd1
    Suposed those partitions are primary?
    > --
    > fedora-list mailing list
    > fedora-list@redhat.com
    > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    >

    -- 
    Jim Lawrence
    Registered Linux User: #376813
    ********************************************************
    When I'm feeling down, I like to whistle. 
    It makes the neighbor's dog run to the end of his chain and gag himself.
    ************************************
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Greg Swallow: "Mounting FAT32/VFat Partitions at Boot"

    Relevant Pages

    • Re: mkinitrd and glibc version problem in etch
      ... What warnings did you get about LVM? ... resize partitions, but also migrate partitions of of failing drives. ...
      (Debian-User)
    • Re: What are the advantages of LVM?
      ... With LVM you can dynamically resize partitions. ... I can resize ext2/3fs partitions as it is without LVM. ... one cool feature of LVM is it can combine disks into one volume and dynamically resize volumes comprising multiple disks. ...
      (Ubuntu)
    • Re: Software to clone disk and resize target partiions at same time?
      ... >> resize any or all of the partitions. ... That only means that partitions it doesnt understand the format ... I think its best to clone from the bootable rescue CD too, ... > I have to be sure and unplug it and plug the target disk in it's place so ...
      (comp.sys.ibm.pc.hardware.storage)
    • Re: What are the advantages of LVM?
      ... With LVM you can dynamically resize partitions. ... volume and dynamically resize volumes comprising multiple disks. ...
      (Ubuntu)
    • Re: Disk Management reports less space
      ... I resized the partitions using Acronis Partition Manager. ... windows fails to recognize ... You need a third party utility to resize a working system. ... As it is your C drive has no free space and your sys will be unstable. ...
      (microsoft.public.windowsxp.general)