LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2008, 09:48 AM   #1
nwtlnxqstns
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
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
 
Old 10-10-2008, 09:54 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Quote:
Originally Posted by nwtlnxqstns View Post
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.
 
Old 10-10-2008, 12:54 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,898
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
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.
 
Old 10-13-2008, 10:53 AM   #4
nwtlnxqstns
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Hi,

Thanks for all your help with this. I managed to resolve the problem.
 
Old 10-13-2008, 02:40 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,898
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/boot size and primary vs. extended partitions Seiken Slackware 8 03-02-2005 11:49 PM
partitions -- primary vs. extended pH* Linux - General 1 04-06-2004 02:56 PM
Primary and Extended Partitions Flossie Linux - Newbie 2 03-16-2004 01:25 PM
setting up a linux partition and primary/extended partitions joemamma Linux - Newbie 6 02-23-2003 02:47 PM
Primary and Extended Partitions batman Linux - Software 1 10-18-2000 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration