Hard Drive Partitions Explained!
Posted on August 19th, 2006 | 5,253 words | No Comments »
Partitions!
what are they and what do they mean?
What is this tutorial?
- I’ve gotten a lot of questions lately like the following:
"what are partitions?"
"how do I change my partitions?"
"how do I partition my hard drive for linux?"
"will linux erase windows?"
"can I run windows on the same computer as linux?"
I figured the easiest way to answer all these partition questions I get is
to just write it all up on a page and point people to it whenever they have
a question. This page doesn’t actually teach you how to do anything,
but it does teach you about partitions so you can use the knowledge in your
decisions.
What is a partition?
- A partition is a part of a hard drive.
What’re partitions for?
- A partition is a "holder" for your operating system.
Windows uses a partition. Linux uses partitions. BSD uses partitions. Usually,
most computers only have one partition for one operating system. But we
aren’t normal, are we?
Windows partition? -
Windows uses a single partition to install all of its junk to. In fact, when
you look at your "c" drive, your "c" drive isn’t actually
the whole hard drive. It’s just the partition (part) of it you allowed windows
to see.
Can you have 2 or more
partitions? - yes! Let’s say you had a special need to install
windows 98 and windows xp on the same computer. You could create 2 partitions
on the hard drive. You can give the first one to windows98, and the second
one to windows XP.
What about space? -
Partition sizes are measured in bytes. A gigabyte (1,000,000,000 bytes) is
the most common reference to partition size. For an example, lets say you
wanted to run windows 98 and xp on the same machine. You have a 20gig hard
drive. You want windows 98 to have 5 gigs, and windows xp to have 15 gigs.
You could create your first partition as 5gb in size and the second 15gb,
and install windows 98 in the first and xp in the second.
2 Windows, ok. What
about Win&Linux? - Pretty much the same thing. If you
wanted to run windows and linux on the same hard drive, you could split it
into two partitions. Install windows on one of them, and linux on the other.
How do I go from one
OS to the other? - You can either have a menu come up when
you start your computer asking you what OS you want to boot, or you can make
a boot disk to give you the menu. The later is less convenient and more sluggish.
If you’re using a linux distribution like slackware or redhat, these options
are asked during the installation. And, yes, this means to switch from one
os to the other, you have to reboot. (you can also get into hardware emulation
to boot the partition in a window on your current os with a program like vmware,
but i’m not going to get into that here)
- – - EXAMPLES! –
– -
|
Meet Mr. Pizza
no toppings no partitions completely useless |
Yes, I know, I’m crazy. Anyway, say hello to Mr. Pizza. If you actually said hello, you’re an This pizza represents something. It’s your hard drive. I can’t get The toppings represent partitions. Different toppings are different
|
|
Common Pizza
all pepperoni all windows only windows |
As you can see, the most common pizza on the face of The entire thing is covered with pepperonis! Let’s pretend the pepperoni represents windows. To be accurate, the So, what does this mean? Well, pepperonis are over the entire pizza! This pizza is good if you only want pepperoni, but what if you want This requires multiple partitions. Multiple sections. In this example,
|
|
Preparing
Pizza half pepperoni half untopped half windows half empty usable for windows lots of unused space |
Well, we have to start from scratch* This time, instead of sloppily throwing pepperonis all over the entire Why pepperoni first? Well, pepperonis are pathetically stupid, and So, to put 2 toppings on a pizza, you put pepperoni on first – only *note: starting from scratch means that in order to do this, the
|
|
Mixed Pizza!
half pepperoni half oreo half windows half linux usable for windows usable for linux |
Now it’s time to add our second topping! I love oreo’s, don’t you? Good, our second topping will be oreo’s They How do I put the oreo’s on? Easy! Just drop ‘em where the free space When you’re done, you’ll have a perfect setup! Your pepperoni is there, completely working, with all its functionality. Your oreo’s are on there! This means that you can use them to their Why’s this so good? Oreo’s are awesome! But sometimes people just can’t Who would benefit from this? You know addicted smokers who use ‘the
|
Conclusion – I hope I’ve cleared up some
questions you may have had on hard drive partitioning. This tutorial was very
basic (how many partitioning tutorials do you see pizzas on) so don’t nag
me about intricate details being incorrect. If you have any questions about
this article, contact me about it! I’ll answer your question and post it on
the site. Hope you got something from it!
linux utilizes multiple partitions for optimization.
the swap file (cache/scratch file) has its own file system on its own partition
that is usually twice the size of your ram. 128mb ram, you want a 256mb swap
partition. Very small, but very useful. For ease, i’ll refer to linux as wanting
a single partition to keep simplicity in this article.
*starting from scratch means that in order
to do this, the entire pizza (hard drive) has to be cleared, and the toppings
(partitions) are planned from the beginning. You cannot just throw away 1/2
of a topping, you have to remove the whole thing. In other words, you can’t
resize a partition. You have to completely erase it and make a new one (of
the desired size).




