LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   primary and extended partitions (https://www.linuxquestions.org/questions/linux-newbie-8/primary-and-extended-partitions-675493/)

nwtlnxqstns 10-10-2008 08:48 AM

primary and extended partitions
 
Hi,

I have a 80gig HD partitioned for Windows XP NTFS on a 30gig primary partition. I have mandrake, ubuntu and vector on about 8gig logical partition which is under an extended partiton. The remaining space is unassigned. I tried to add another logical partition but it will only let me create a primary partiton. I know about the 4 primary partition max. How do I create more logical partitions under an extended partition?
Thanks

i92guboj 10-10-2008 08:54 AM

Quote:

Originally Posted by nwtlnxqstns (Post 3306123)
Hi,

I have a 80gig HD partitioned for Windows XP NTFS on a 30gig primary partition. I have mandrake, ubuntu and vector on about 8gig logical partition which is under an extended partiton. The remaining space is unassigned. I tried to add another logical partition but it will only let me create a primary partiton. I know about the 4 primary partition max. How do I create more logical partitions under an extended partition?
Thanks

I guess the free space if *after* the extended partition.

There can be only one extended partition, so, resize it to use all the remaining space. Then create additional logical units *inside* the extended one.

onebuck 10-10-2008 11:54 AM

Hi,

What does 'fdisk -l' show for your device(s)?

Code:

sample;

~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf5b5f5b5

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        3824    30716248+  7  HPFS/NTFS
/dev/sda2            3825        4074    2008125  82  Linux swap
/dev/sda3            4075      10300    50010345  83  Linux
/dev/sda4          10301      60801  405649282+  5  Extended
/dev/sda5          10301      10425    1004031  83  Linux
/dev/sda6          10426      11671    10008463+  83  Linux
/dev/sda7          11672      12668    8008371  83  Linux
/dev/sda8          12669      12918    2008093+  83  Linux
/dev/sda9          12919      13915    8008371  83  Linux
/dev/sda10          13916      15161    10008463+  83  Linux
/dev/sda11          15162      16407    10008463+  83  Linux
/dev/sda12          16408      28856    99996561  83  Linux
/dev/sda13          28857      41305    99996561  83  Linux
/dev/sda14          41306      53754    99996561  83  Linux
/dev/sda15          53755      60801    56604996  83  Linux

Notice the layout of the 'dev/sda4' for 'fdisk -l /dev/sda'.

Code:

cfdisk /dev/sda sample;

                        cfdisk (util-linux-ng 2.13.1)

                              Disk Drive: /dev/sda
                      Size: 500107862016 bytes, 500.1 GB
            Heads: 255  Sectors per Track: 63  Cylinders: 60801

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sda1        Boot        Primary  NTFS            [^C]            31453.48
    sda2                    Primary  Linux swap                        2056.32
    sda3                    Primary  Linux ext3      [/spare1]      51210.60
    sda5                    Logical  Linux ext3      [/]              1028.16
    sda6                    Logical  Linux ext3      [/home]        10248.70
    sda7                    Logical  Linux ext3      [/usr]          8200.61
    sda8                    Logical  Linux ext3      [/var]          2056.32
    sda9                    Logical  Linux ext3      [/tmp]          8200.61
    sda10                  Logical  Linux ext3                      10248.70
    sda11                  Logical  Linux ext3                      10248.70
    sda12                  Logical  Linux ext3                      102396.52

Now look at the '/dev/sda' and the output of 'cfdisk /dev/sda'.

I have the logical disks within the '/dev/sda4' extended partition.

nwtlnxqstns 10-13-2008 09:53 AM

Hi,

Thanks for all your help with this. I managed to resolve the problem.

onebuck 10-13-2008 01:40 PM

Hi,

Please post your solution so the thread can be brought to a proper close. That way if someone does a search an finds your thread there will be a solution.


All times are GMT -5. The time now is 09:48 AM.