<---- template headericclude ----->
converting primary partition to extended
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    converting primary partition to extended

    Hi all ,

    I am trying to install fedora on a computer whose current partition table looks like this:

    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x28000000

    Device Boot Start End Blocks Id System
    /dev/sda1 1 6 48163+ de Dell Utility
    /dev/sda2 7 398 3148740 b W95 FAT32
    /dev/sda3 * 399 38662 307355580 83 Linux
    /dev/sda4 38663 38913 2016157+ 5 Extended
    /dev/sda5 38663 38913 2016126 82 Linux swap / Solaris

    I will have to shrink the /dev/sda3 partition and use that freed up space as an extended partition. I can then install Fedora onto this newly created partition.

    Can I somehow do this? Or is there another way to free up space and install Fedora ?

    Thanks!!
    Mayuresh

  2. #2
    Join Date
    Jun 2006
    Posts
    7,544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stardust496

    I am trying to install fedora on a computer whose current partition table looks like this:

    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x28000000

    Device Boot Start End Blocks Id System
    /dev/sda1 1 6 48163+ de Dell Utility
    /dev/sda2 7 398 3148740 b W95 FAT32
    /dev/sda3 * 399 38662 307355580 83 Linux
    /dev/sda4 38663 38913 2016157+ 5 Extended
    /dev/sda5 38663 38913 2016126 82 Linux swap / Solaris

    I will have to shrink the /dev/sda3 partition and use that freed up space as an extended partition. I can then install Fedora onto this newly created partition.

    Can I somehow do this? Or is there another way to free up space and install Fedora ?
    Hello stardust496,

    You already have an extended partition (/dev/sda4). It's relatively small and is completely filled by a single logical partition (/dev/sda5 which is the swap). You should shrink /dev/sda3 as you said, but then simply "grow" the adjacent extended partition into the space that created. Then the space you need will be inside the extended partition. Install Fedora there. It will do just fine installed in logical partitions. Download and create a GParted LiveCD. It will do all of that work and make it very clear what I'm suggesting.

    P.S.: If you decide to use standard partitions for Fedora as you are doing now for whatever Linux is installed already, then Fedora will find and share the existing swap. Don't try to create another one. If you choose to use LVM (the default Fedora partition layout), then nevermind about this. Fedora will create a swap in the LVM physical volume.

  3. #3
    Join Date
    Dec 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! gparted did things very smoothly as you said. I wish it were included in the fedora livecd itself. I now have my old ubuntu living in a primary partition and fedora living in an extended partition and I can use either at boot time.

    I just have one question - What is the purpose of marking a partition as "boot" ? In my current setup, only the ubuntu partition is marked as "boot" , not the fedora one. But I can boot into either ubuntu or fedora anyway..

    Thanks!

    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x28000000

    Device Boot Start End Blocks Id System
    /dev/sda1 1 6 48163+ de Dell Utility
    /dev/sda2 7 398 3148740 b W95 FAT32
    /dev/sda3 * 399 13166 102558960 83 Linux
    /dev/sda4 13167 38913 206812777+ 5 Extended
    /dev/sda5 38663 38913 2016126 82 Linux swap / Solaris
    /dev/sda6 13167 38662 204796557 83 Linux

  4. #4
    Join Date
    Jun 2006
    Posts
    7,544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stardust496

    I wish it were included in the fedora livecd itself.
    I think it is. At least it was on the last Fedora LiveCD that I made.

    Quote Originally Posted by stardust496

    What is the purpose of marking a partition as "boot" ? In my current setup, only the ubuntu partition is marked as "boot" , not the fedora one. But I can boot into either ubuntu or fedora anyway.
    The short answer is that it has no purpose at all for a system that boots with GRUB.

    The partition table located in the master boot record holds information about the four possible primary partitions (e.g., partition type, size, start, end, etc). One of those things is also whether the partition is the "active" partition. That is what the "boot" thing in fdisk is referring to. It matters to MS systems. They boot by having the MS boot code in the master boot record examine the partition table to determine the active partition and then execute that partition's boot sector code. That results in the Windows system's boot files in the partition being executed which eventually leads to the kernel being loaded. The reason none of that matters to GRUB is because it boots in stages each of which knows where the next stage is located. It never relies on the active flag of any partition to boot. As you just discovered.

Similar Threads

  1. Partitioning - extended & primary
    By Ross86 in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 29th October 2008, 01:59 PM
  2. Primary and Extended Partitions
    By LouArnold in forum Installation, Upgrades and Live Media
    Replies: 13
    Last Post: 1st November 2007, 08:20 AM
  3. How to mount extended & LVM partition ?
    By kio in forum Using Fedora
    Replies: 3
    Last Post: 9th July 2006, 05:17 PM
  4. primary or extended partition???
    By buchalkalan in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 25th September 2005, 04:14 PM
  5. Extended or Primary
    By gonde in forum Installation, Upgrades and Live Media
    Replies: 10
    Last Post: 15th September 2004, 04:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]