<> == Partitioning == === Introduction - 5 Minutes === I. About Me I. Course Overview === Partitioning basics - 10 Minutes === I. Tools I. Primary, Extended, and Logical === Creating Partitions - 15 Minutes === I. Creating a Windows(NTFS) Partition on an empty HD. {{attachment:emptyDisk.png}}Fig.A {{attachment:createFileType.png}}Fig.B {{attachment:ntfsPart.png}}Fig.C I. HD with Windows, Resize Partition {{attachment:resizeAfterPart.png}}Fig.D {{attachment:resizePart.png}}Fig.E I. Creating an Extended Partition {{attachment:LogPart.png}}Fig.G {{attachment:extPart.png}}Fig.F === Moving Partitions - 10 Minutes === I. Moving Partitions {{attachment:moveLeftPart.png}}Fig.G {{attachment:moveMiddlePart.png}}Fig.H {{attachment:moveRightPart.png}}Fig.I === Formatting Partitions - 10 Minutes === I. Formatting Partitions === Deleting Partitions - 10 Minutes === I. Deleting Partitions === Closing & Q&A - 5 Minutes + Extra === I. Closing comments and then questions. == Links & Materials == [[http://ubuntuforums.org/showthread.php?t=282018 | Good Partitioning Guide ]]<
> [[https://help.ubuntu.com/community/HowtoPartition | Partitioning Basics]]<
> [[http://www.overclock.net/linux-unix/11208-linux-partitioning-guide.html | Linux Partitioning Guide ]]<
> [[http://gparted.sourceforge.net/larry/generalities/gparted.htm| Gparted General How-To]]<
> [[http://ubuntuguide.org/wiki/Multiple_OS_Installation | Ubuntu Guide - Multiple OS installation]]<
> [[http://www.howtogeek.com/howto/windows-vista/working-around-windows-vistas-shrink-volume-inadequacy-problems/ | Shrinking Windows7/Vista Partition]]<
> [[https://help.ubuntu.com/community/HowtoPartition/MovingPartition| Moving A Partition]]<
> [[https://help.ubuntu.com/community/HowtoPartition/EditorsAndBackup|Partition Editors and Backup Tools]]<
> === Lecture Draft === === Session Logs === {{{#!IRC === cjohnston changed the topic of #ubuntu-classroom to: Ubuntu Classroom || Ubuntu User Days | Current Session: Partitioning 101 ~~ Presented by duanedesign || Please ask questions in #ubuntu-classroom-chat || Ubuntu User Days Survey: http://www.surveymonkey.com/s/WQWHJQY [19:59] My direct phone number is at https://edge.launchpad.net/~magicfab - honestly I'll answer all questions about this if anyone want to call (weekdays) :) [20:00] Up next we have duanedesign.. [20:01] duanedesign is a last minute fill in due to someone else not feeling well, so I will let him introduce himself. [20:01] duanedesign it's all you. :-) [20:01] thank you cjohnston [20:01] Also, duanedesign has built in time for questions, so please wait to ask your questions until he asks for them [20:02] I am contact for the OKlahoma loCo. Proud member of the Ubuntu Beginners team. From my perch on the BT, as we call it, I participate in many parts of the community [20:03] from Bug Triage to Launchpad Answers, wiki work, ect [20:03] I am here today to talk to you guys about Partitioning [20:04] There are three types of partitions Primary, Extended, and Logical [20:04] The original partitioning scheme for PC hard disks allowed only four partitions, thus you are allowed up to 4 primary partitions. Linux numbers primary partitions 1-4. [20:04] You can only create 4 Primary Partitions on a single physical hard drive [20:04] To overcome this limitation, extended partitions are used. An Extended partition creates a space where you can have more partitions beyond the 4 Primary Partitions. Partitions made within the Extended Partition are called Logical Partitions [20:05] Only one extended partition may be created on a hard drive. This Extended Partition will occupy one of the four Primary Partition slots. Any number of Logical partitions may be created within an Extended partition, and they may be formatted with any filesystem. [20:06] the usual suspects when it comes to filesystems are NTFS for Windows and ext4 for Ubuntu [20:07] i am going walk you through creating some partitions [20:08] you can visit this page for screenshots that might help illustrate some of the points made [20:08] https://wiki.ubuntu.com/UserDays/01232010/Partitioning [20:09] most, and this is an assumption on my part, people come to Ubuntu with a Windows install [20:09] However i will start with a blank Hard Drive, making that Windows partition [20:10] just to cover all the bases :) [20:11] your partition tool from the Live Cd is accessed System/Administration/Partition Editor. In this first scenario the drive is empty, so you will be greeted with a window that looks like this Fig.A [20:11] NOTE: FigA corresponds to the screenshots on the link i posted [20:12] you will Select the partition you wish to reformat by right clicking either on the graphical display or on the line below it that corresponds to the partition. If the partition is mounted (you will know because all your options except 'Unmount' will be greyed out), you must unmount it first Click on the "Unmount" option in the menu. [20:13] Click the "New" option in the menu. And you will be greeted with Fig.B [20:13] Position your cursor over the "Filesystem" Menu. Select "NTFS" from the list. Notice the "Create As" line above the file types. This is where we select the type of parition we are creating. We will let this stay as Primary. [20:14] NTFS remember because we are creating the windows partition first [20:15] your Windows install will always be on a primary partition so we will leave it primary in this scenario [20:15] Click the "Apply" button and, once the creation process is complete the partition is created Fig.C [20:16] you will notice that the unallocated entry is now NTFS [20:16] this is what most people with a Windows computer will start with [20:17] now you must decide if you want to dual boot and keep your windows install or remove it and go all the way Ubuntu [20:18] first i will walk you through resizing the windows partition to make room for Ubuntu [20:19] if you have XP this will be a bit easier thatn if you have Vista/Win7 [20:20] If using Windows XP you can resize the partition within Ubuntu [20:20] So to to resize [20:21] Select the partition you wish to reformat by right clicking either on the graphical display or on the line below it that corresponds to the partition that you wish to resize. If the partition is mounted, you must unmount it first. Click on the "Unmount" option in the menu. [20:21] i should of prefaced all this with the very important statement. Always back up data if oyu have any on a computer you are doing any partitioning [20:22] Once you are sure the partition is unmounted, right click on the partition you wish to resize and select "Resize/Move" from the menu Fig.E [20:22] you have 2 options when it comes to resizing [20:23] Dragging and sliding. Position the cursor over the arrow on either side of the graphical bar, left click and hold, then drag the arrow; away from the edge for shrinking or towards the edge (into the free space, if available) to expand it. [20:23] this can be seen in Fig.E [20:23] https://wiki.ubuntu.com/UserDays/01232010/Partitioning [20:23] at this link (for anyone just joining) [20:23] Changing the "New Size" or the "Free Space Preceeding/Following" sizes. [20:24] This is done either by using the up/down arrows to the right of the "New Size" window, or by directly editing the size itself in that Window. [20:24] After changing the size of the partition, just click the "Resize/Move" button, and the changes will be recorded and visible in a window at the bottom. When you are sure that you have resized it as you desire, you click the "Apply" button at the top and the partition will be resized. Fig.D [20:25] now you have a nice area for an Ubuntu install [20:25] as seen in Fig.D [20:26] Now if you are coming from Vista or Windows 7 it is recommended that you do this resizing in Windows [20:27] The Windows partition must be resized from within Windows Vista and Windows 7 using the shrink/resize option: [20:27] Administrative Tools --> Disk Management tool -> Shrink Volume [20:28] sounds easy enough right [20:28] well almost [20:28] Unlike Windows XP, Vista and Windows 7 does not allow you to move the MFT (Master File Table) that controls the NTFS file structure. Inexplicably, Microsoft locates this near the middle (or end) of the partition, somewhat limiting the ability to resize (shrink) the partition completely. Although you will be able to gain some hard drive space from the "Shrink Volume" command, it will be limited [20:30] Ive never had a problem with this. However someone who seemed to know what they were talking about filled me in on this :) [20:30] On the link i have posted with the screenshots there will be links you can use to get more detailed info [20:31] including this topic. However i will walk you through the steps to [20:31] get the maximum shrinkage out of your Vista Win7 partition [20:32] 1. Run the Disk Cleanup Wizard, making sure to remove the hibernation file and all restore points. [20:33] now remember we are in Windows right now [20:33] 2. Disable System Restore [20:33] 3. Disable the pagefile ( Open up System in Control Panel, then Advanced System Settings \ Advanced \ Performance \ Advanced \ Change \ No Paging File. [20:33] 4. In the same Advanced Settings, go to Startup and Recovery \ Settings and then change the Write debugging information drop-down to ?None? to disable the kernel memory dump. [20:33] 5. Disable Hibernation mode in your power options \ advanced power options screen. [20:33] 6. Reboot the machine, and then delete your c:\pagefile.sys file, [20:34] After resizing the Windows Partition Reboot Windows a couple of times. This allows the Windows system to automatically rescan the newly-resized partition (using chkdsk in earlier versions or a similar utility in later versions) and write changes to its own bootloader configuration files. If you start mucking around with other partitions before Windows has a chance to reset itself, the Windows bootloader will not be able to read [20:35] considering all this, remember you have the option of backing up your data and formatting the whole drive and beginning from a clean slate [20:36] that is your decision to make. You should of already backed up all your data ;) [20:36] ok [20:36] now we have resized our windows partition [20:36] Fig.D [20:37] you can reference the figur numbers at https://wiki.ubuntu.com/UserDays/01232010/Partitioning [20:37] for those just getting here :) [20:37] as we talked about you are limited to 4 primary partitions [20:38] well we would quickly reach that with our uBUNTU install [20:38] so we are going to create an Extended Partition [20:38] Creating an Extended Partition is done the same way as creating a Primary partition. Remember the "Primary" type in the menu, this time you will select "Extended" [20:39] so just as we created the Primary partition for windows in the first step [20:39] When Extended is selected, all the file types in the menu below will be greyed out. There is no file type associated with an Extended partition. An Extended Partition is basically a container [20:40] so if you look at Fig.B those filetype options willo not be available [20:40] an extended partition is a container [20:40] for ourAn Extended Partition is basically a container for any number of Logical partitions, which can be of any file system format. [20:41] So we are booted up in our LiveCD after shrinking our Windows partition. [20:41] Or this is where you would pick up if you are doing a straight Ubuntu install [20:42] Select the unallocated partition you wish to reformat by right clicking either on the graphical display or on the line below it that corresponds to the partition. [20:42] Click the "New" option in the menu. [20:42] Position your cursor over the "Create As" Menu. Select "Extended Partition" from the list. [20:43] you will want to make this extended partition the rest of the drive [20:44] all the partitions we are going to create for Ubuntu will go inside it. [20:45] after you create the Extended partition you will end up with an unallocated space in the Extended partition See Fig.G [20:46] notice its the same size as our Extended Partition [20:46] now we need to fill it with our Logical Partitions [20:47] For an Ubuntu install I will recommend the following partition scheme [20:48] = root min size 5 GB (Yes, I know you can go smaller if needed), 15-20 Gb may be better if you have the HD space. [20:48] actually 20 is a bit overkill [20:48] Swap X 1.5 RAM at least the size of RAM for Suspend to Disk [20:49] some people will say 2X. thst is too much [20:49] at least the size of RAM [20:49] Rest for /home [20:50] ok so the short of it is. the root partition contains Linux and your apps. The home drive is you personal files. And swap is an area the computer uses like RAM on your Hard Drive [20:50] you will want an extra /home partition [20:50] this makes it easy to reinstall if something goes wrong [20:51] <_marx_> QUESTION No partition for /root? [20:51] you will preserve all your settings and pictures of your cats [20:52] /root partition is usually between 10-15GB [20:52] / = root min size 5 GB (Yes, I know you can go smaller if needed), 15-20 Gb may be better if you have the HD space. [20:52] you will notice root is mentioned as / [20:52] that is how you will set the mount point [20:53] R-click the unallocated space in your Extended partition and get to work :) [20:53] for example [20:54] to reiterate, because this is important and a lot of questions get asked [20:54] 10 / = root [20:54] RAM = swap [20:54] rest /home [20:54] you will specify this under mount point [20:55] you will create these Partitions just like the others. [20:55] Specifying Ext.4 for the filesystem [20:55] and Logical for the type [20:56] i am running out of time [20:56] so i will leave a few minutes for questions [20:56] fire away in #ubuntu-classroom-chat [20:57] here is the link to the wiki page for this session. I will have links to all the resources i used [20:57] https://wiki.ubuntu.com/UserDays/01232010/Partitioning [20:57] Guys, do I still have to make the swap space the same size of the RAM if I'm on the 64 bit system? I've got 6GB of Ram, and that would be a lot! [20:58] Question^^ [20:58] if you ever desire to Suspend to disk the answer is yes [20:58] otherwise that is a bit much [20:59] I have heard this rule before RAM > 1 Gb swap = 2 Gb [20:59] AmrH: so that might be a good guide [21:00] swap is one of those topics that is debated at length in the community [21:00] thank you everyone [21:00] Thanks duanedesign ! }}}