LinuxQuestions.org
Visit Jeremy's Blog.
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 11-13-2009, 04:32 PM   #1
CT_0000
Member
 
Registered: Sep 2009
Posts: 69

Rep: Reputation: 15
Partitioning.. Primary and Extended.


I'm just a little confused. I have a 320GB HDD on my laptop (about 298GB available) and I'm freshly installing openSUSE 11.2. I usually do default but this time I want to change it a little. I want a 4GB Swap, 20GB root, and remainder /home... but im not sure what order to partition the hdd in and whether to make each one primary or extended?
 
Old 11-13-2009, 04:36 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can have up to 4 primary partitions. So if you have a Windows install, that has to be primary. Then you can make the others also primary if you never want to divide it up again. I would put swap at the end because it is easy to delete and recreate if you need to make it an extended partition for some reason.
 
Old 11-13-2009, 04:43 PM   #3
CT_0000
Member
 
Registered: Sep 2009
Posts: 69

Original Poster
Rep: Reputation: 15
Its just going to be one distro of linux on here. Should I make a 20GB primary of / , about 270GB primary of /home , and a small Swap at primary?

I'm just not really sure what the extended is I guess.
 
Old 11-13-2009, 04:48 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Basically there's an old archaic reason that only allows 4 primary partitions. So in order to have more than that, some clever guys came up with the idea to use "extended" partitions that allowed up to some huge number of total partitions (which has since been shrunk to 15 partitions max last I heard). Some operating systems (i.e. Windows up until XP, I believe) would not allow you to install to extended partitions.

You can read more about it here.

Last edited by pljvaldez; 11-13-2009 at 04:51 PM.
 
Old 11-13-2009, 04:59 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Also, I googled around a bit and it appears the 15 partition limit on linux is a function of the way the libATA kernel driver is implemented. Apparently scsi drives can only hold 15 partitions. Since the kernel developers decided that all drives should be handled by libata, all drives now have this limit unless you go back and reompile your kernel. Then you can exceed it on IDE hard disks.
 
Old 11-13-2009, 05:13 PM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Why there are extended...

You might first use a linux live-cd to open a terminal and with root privileges type the command "fdisk -l".

This will read the partition tables and perhaps show you that if Windows is installed, there is a hidden Windows rescue partition as well as the Windows OS partition. Two of the primary partition will have been used.

If this is the case, when you install linux, use the openSUSE partitioning tool to create an extended partition. You may have swap, root, and home as logical partitions as well as whatever others you need within the extended partition.

You will have to create the partition yourself, but it is not difficult. Remember that you can perform all the act of installation including partitioning without making any changes before a warning that the installation process is about to begin. You can explore and fumble without doing any harm.

If you have Vista and want to shrink its partition, do so with the Vista partitioning tool or as a consequence, Vista will not boot.

http://en.wikipedia.org/wiki/Disk_partitioning

Last edited by thorkelljarl; 11-13-2009 at 05:16 PM.
 
  


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
Partitioning; safe to add a primary when already having primary and extended/logical? Wim Sturkenboom Linux - General 2 08-16-2009 01:10 PM
Swap - Primary or Extended BrokeBody Linux - Hardware 13 04-23-2007 11:40 PM
Primary or Extended Partition ? Christof999 Linux - General 4 07-02-2006 01:05 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

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

All times are GMT -5. The time now is 03:16 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
Open Source Consulting | Domain Registration