Size: 3540
Comment: Added index and changed emphasis on lines that are clearly meant to be sub-lists
|
Size: 5474
Comment: Correct a lot of mistakes. Not certain if it was "to be things easier"
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
Three primary partitions and one extended partition are allowed on most consumer-level hard drives. The extended partition can then be divided into a very large number of logical partitions. Each Windows installation will need to be installed on a primary partition. All the Linux (including Ubuntu/Kubuntu) installations, can (and should) exist in logical partitions, though, so you can have as many as you want. The swap partition, also, can (and should) live on a logical partition. | When MicroSoft developed it's 'new' partition table type in around the 1980s it restricted the number of partitions a hard-drive could have to only 4. These have become known as "Primary Partitions" |
Line 6: | Line 6: |
= Use Gparted = | Some clever people managed to make one of these a new type of partition that could hold a large number of other sub-partitions. This new type of partition became known as an "Extended Partition" (it should have been "Extending" not "Extended" but nevermind). The sub-partitions became known as "Logical Partitions". When people quote the number of partitions on a drive they usually exclude the Extended Partition. |
Line 8: | Line 8: |
The easiest way to do this is to use the GPartEd on the Ubuntu Cd. Just boot-up from the UBuntu Cd to use it as a LiveCD and from the top taskbar click on | Windows needs to be installed on one partition. It can only really cope with one and if it can see another one then it seems to think it is another drive. Often Windows users may think they have 2 hard-drives even if they see it is 1 physical device. If they had 2 physical hard-drives, perhaps with 2 (or more) partitions on each, then they get very confused. Which neatly brings us to another confusion. A hard-drive can have only 1 partition, it can have more but it can't have less (assuming it is being used). Yes, the name "partition" is very badly chosen because it does imply that there is more than 1. Before MicroSoft developed their operating systems it was assumed that every operating system would need to use more than 1 partition. So, since Windows is mostly restricted to 1 partition on 1 hard-drive it tries to reduce any confusion by calling that partition a drive, which is fine until we have 2 or more partitions on one physical drive. = To Edit, Create or Delete Partitions = The easiest way to do this is to use the program GPartEd on the LiveCD of Ubuntu. (LiveCd just means boot-up (reboot) the machine with the normal Ubuntu Cd in the Cd/dvd-drive). From the top taskbar/panel click on |
Line 12: | Line 19: |
In Ubuntu 10.04 (Lucid Lynx) menus it went back to being called GParEd for Ubuntu & Xubuntu and so Kubuntu uses QtPartEd (which is the Kde version and is almost identical). | In the Ubuntu 10.04's (Lucid Lynx) menus it went back to being called GParEd for Ubuntu & Xubuntu and so Kubuntu uses QtPartEd (which is the Kde version and is almost identical). |
Line 22: | Line 29: |
* At the minimum you will need: | Most drives have 1 Primary Partition with Windows installed. Often Laptops and some other machines have a tiny "[[https://help.ubuntu.com/community/WindowsRecoveryCd | Recovery Partition]]" in front of it. This is usually another Primary Partition but it is usually hidden (to avoid Windows getting confused and to stop people from accidentally over-writing anything on it). |
Line 24: | Line 31: |
* one primary partition for each Windows OS * an extra small primary partition (which can be resized later, in case I need it). If there is a Windows recovery partition already installed, I leave it alone (as my second partition). * one primary partition for the small boot partition (for storing a set of GRUB files) * an extended partition for the Linux OSs (must be the ''last'' partition on the hard drive) |
Occasionally some machines have another partition for data. If this has been created with partition editors developed for Windows then it will probably be a "Logical Partition" (and therefore be inside an Extended Partition). At the minimum Ubuntu will use 2 partitions * one for the operating system itself * a "[[https://help.ubuntu.com/community/SwapFaq | Swap]]" partition to help Ram An additional one for /home (for data) is a good idea and although you can make many more it is almost always better to keep things down to those 3. If you [[https://help.ubuntu.com/community/SwapFaq | dual-boot]] or multi-boot with another linux distro then the swap and /home can be shared by them. It is even possible to share the /home with Windows if the /home's partition's "file-system" is NTFS or another Windows format. |
Partition design
When MicroSoft developed it's 'new' partition table type in around the 1980s it restricted the number of partitions a hard-drive could have to only 4. These have become known as "Primary Partitions"
Some clever people managed to make one of these a new type of partition that could hold a large number of other sub-partitions. This new type of partition became known as an "Extended Partition" (it should have been "Extending" not "Extended" but nevermind). The sub-partitions became known as "Logical Partitions". When people quote the number of partitions on a drive they usually exclude the Extended Partition.
Windows needs to be installed on one partition. It can only really cope with one and if it can see another one then it seems to think it is another drive. Often Windows users may think they have 2 hard-drives even if they see it is 1 physical device. If they had 2 physical hard-drives, perhaps with 2 (or more) partitions on each, then they get very confused.
Which neatly brings us to another confusion. A hard-drive can have only 1 partition, it can have more but it can't have less (assuming it is being used). Yes, the name "partition" is very badly chosen because it does imply that there is more than 1. Before MicroSoft developed their operating systems it was assumed that every operating system would need to use more than 1 partition. So, since Windows is mostly restricted to 1 partition on 1 hard-drive it tries to reduce any confusion by calling that partition a drive, which is fine until we have 2 or more partitions on one physical drive.
To Edit, Create or Delete Partitions
The easiest way to do this is to use the program GPartEd on the LiveCD of Ubuntu. (LiveCd just means boot-up (reboot) the machine with the normal Ubuntu Cd in the Cd/dvd-drive). From the top taskbar/panel click on
System - Administration - "Partition Editor"
In the Ubuntu 10.04's (Lucid Lynx) menus it went back to being called GParEd for Ubuntu & Xubuntu and so Kubuntu uses QtPartEd (which is the Kde version and is almost identical).
Many other distros, not just Ubuntu, use these programs so if you are having trouble with it in Ubuntu you might find it better in the smaller and lighter sliTaz http://distrowatch.com/table.php?distribution=slitaz or in the very specialist distro "GParted Live CD" http://distrowatch.com/table.php?distribution=gparted
Partitioning Scheme
Most drives have 1 Primary Partition with Windows installed. Often Laptops and some other machines have a tiny "Recovery Partition" in front of it. This is usually another Primary Partition but it is usually hidden (to avoid Windows getting confused and to stop people from accidentally over-writing anything on it).
Occasionally some machines have another partition for data. If this has been created with partition editors developed for Windows then it will probably be a "Logical Partition" (and therefore be inside an Extended Partition).
At the minimum Ubuntu will use 2 partitions
- one for the operating system itself
a "Swap" partition to help Ram
An additional one for /home (for data) is a good idea and although you can make many more it is almost always better to keep things down to those 3. If you dual-boot or multi-boot with another linux distro then the swap and /home can be shared by them. It is even possible to share the /home with Windows if the /home's partition's "file-system" is NTFS or another Windows format.
Example Partitioning Scheme
- In general I make:
- my Windows partition 20 - 30 Gb -- filesystem type NTFS (or can even be FAT32) and with the boot flag checked
- my "extra" partition 2 Gb -- which I tend to format as filesystem FAT32 (but can be anything, including ext3). If this is a Windows recovery partition, I leave it unchanged.
- my GRUB boot partition 50 - 100 Mb -- formatted to filesystem type ext3
- the extended partition is the remainder
- (At the end of the hard drive I usually leave a few Gb of free space (to allow for extra logical partition needs that I have not foreseen). This can't be done unless the extended partition is the last partition.)
- I then divide the extended partition into logical partitions:
- a /swap logical partition that is 2 Gb -- filesystem type linux-swap
- a logical partition for the / (root) folder of each planned OS (at least 10 Gb each, but 20-50 Gb is better) -- formatted as ext3 (or ext4 if you are planning to use a newer Linux OS)
- a logical partition for each specific use, such as for a groupware partition (like Kolab, for example). I make this about 20 Gb and format it as ext3, since most specific uses (like Kolab) will be comfortable with ext3. Anther example is creating a partition for the /home directory.
Other resources
This page was adapted from Ubuntuguide -- Multiple OS Installation.