Difference between revisions of "Cfdisk Basic Partitioning Scenarios"
Views
Actions
Namespaces
Variants
Tools
Cfdisk Basic Partitioning Scenarios (view source)
Revision as of 20:40, 1 November 2012
, 12 years agono edit summary
imported>Verityproductions |
imported>Verityproductions |
||
Line 214: | Line 214: | ||
'''Return to the Main Menu.''' As this step has been completed, highlight '''Main menu''' and press <enter> to be taken back to the installer's main menu. | '''Return to the Main Menu.''' As this step has been completed, highlight '''Main menu''' and press <enter> to be taken back to the installer's main menu. | ||
<br clear="all" /> | |||
=A Three Partition Scenario= | |||
In this scenario, a partition will be created especially for Boot, seperate from the partition for Root and Home. A seperate swap partition will also be created. All partitions created will be Primary Partitions. | |||
==Creating the Partitions== | |||
[[File:partition_free.png|thumb|left|375px]] | |||
Our CLI installation program uses the ''cfdisk'' partitioning tool. You will need a ''boot'' partition, a ''root'' partition. The ''swap'' and ''home'' partitions are optional, but it's a good idea to use them especially if this is going to be your only Operating System. | |||
In order to create a new partition, use your arrow keys to switch through the options and choose ''new''. | |||
<br clear="all" /> | |||
[[File:partition_pref.png|thumb|left|375px]] | |||
There are two preferences when creating partitions. ''Primary'' and ''Logical'' partitions. It's good to know that you can only create four primary partitions per Hard Drive. Choose the desired preference, then press enter to select it. | |||
<br clear="all" /> | |||
[[File:partition_boot_100.png|thumb|left|375px]] | |||
We are now going to create the ''boot'' partition. For the ''boot'' partition, 100 MB and higher in recommended. Enter the desired size and press ENTER. | |||
<br clear="all" /> | |||
[[File:boot_part_beg.png|thumb|left|375px]] | |||
After that, the ''Beginning'' option will be highlighted. It's recommended to keep it that way, press ENTER to continue. | |||
<br clear="all" /> | |||
[[File:boot_bootable.png|thumb|left|375px]] | |||
We also need to make the ''boot'' partition ''Bootable'', press ENTER when ''Bootable'' is highlighted. | |||
<br clear="all" /> | |||
[[File:new_freespace.png|thumb|left|375px]] | |||
We are now going to create a ''swap'' partition. After creating the ''boot'' partition, use your UP/DOWN arrow keys and choose ''Free Space''. Use your arrow keys to navigate to the ''new'' option then, press ENTER. | |||
<br clear="all" /> | |||
[[File:free_primary.png|thumb|left|375px]] | |||
After that, press ENTER again when the ''Primary'' preference is highlighted. | |||
<br clear="all" /> | |||
[[File:swap_size.png|thumb|left|375px]] | |||
Now, enter a size for your ''swap'' partition. The recommended size for the swap partition would be twice your RAM. If your computer has over 3 GB of RAM, a 2 GB swap partition is more than enough. In this tutorial we are going to make a 1 GB swap partition, for that we will enter ''1000'' because ''cfdisk'' measures the size in MB. | |||
<br clear="all" /> | |||
[[File:swap_type1.png|thumb|left|375px]] | |||
Because we'll use this partition for swap, we have to change it's type, so, when the ''Type'' option is highlighted, press ENTER. | |||
<br clear="all" /> | |||
You will be prompted with a list of file systems, for swap we'll have to enter ''82'', we'll confirm by pressing ENTER. | |||
[[File:filesystems.png|thumb|left|375px]] [[File:swap_type2.png|thumb|375px]] | |||
<br clear="all" /> | |||
[[File:root_new.png|thumb|left|375px]] | |||
*After that, we are going to create a ''root'' (/) partition. Here's where the Operating System is going to be installed. Again, use your UP/DOWN keys to select the ''Free Space'' option, press ENTER to confirm. Using your arrow keys, choose ''new'' from the options at the bottom then press ENTER. | |||
<br clear="all" /> | |||
[[File:root_size.png|thumb|left|375px]] | |||
*Enter the size in MB for your ''root'' partition. The recommended size for the ''root'' partition would be 4 GB or more and confirm it by pressing the ENTER key. | |||
<br clear="all" /> | |||
[[File:part_write.png|thumb|left|375px]] | |||
*After that, you'll be prompted with your new partition scheme. To continue, use your arrow keys and select the ''Write'' option at the bottom and press ENTER, this will apply the changes we've made so far. | |||
<br clear="all" /> | |||
[[File:part_quit.png|thumb|left|375px]] | |||
*That being done, use your arrow keys and select the ''Quit'' option and press ENTER to exit ''cfdisk''. | |||
<br clear="all" /> | |||
*Now, hit ENTER on the ''Done'' option. Press ENTER again, when you get prompted with some information about what's coming next. | |||
[[File:part_done.png|thumb|left|375px]] [[File:prompt_ok.png|thumb|375px]] | |||
<br clear="all" /> | |||
[[File:disk_list.png|thumb|left|375px]] | |||
*You will be prompted with a list of available drives, choose the one you've partitioned earlier, then press ENTER. | |||
<br clear="all" /> | |||
[[File:choose_swap.png|thumb|left|375px]] | |||
*You will now have to select the swap partition. In this case it's ''/dev/sda2''. Use your arrow keys and highlight your previously created swap partition and press ENTER. | |||
<br clear="all" /> | |||
[[File:format_swap.png|thumb|left|375px]] | |||
*When getting prompted for formatting the swap partition, choose ''Yes'' and hit ENTER. {{Warning|This will format the partition, the changes cannot be reverted.}} | |||
<br clear="all" /> | |||
[[File:choose_root.png|thumb|left|375px]] | |||
*You will now have to select the ''root'' ( / ) partition. In this particular case it's ''/dev/sda3''. | |||
<br clear="all" /> | |||
[[File:root_fs.png|thumb|left|375px]] | |||
*You'll be prompted with a list of file systems, choose one of them, preferably EXT4 and hit ENTER. | |||
<br clear="all" /> | |||
[[File:format_root.png|thumb|left|375px]] | |||
*Choose ''Yes'' when prompted to format the partition. | |||
<br clear="all" /> | |||
[[File:boot_prompt.png|thumb|left|375px]] | |||
*There will be an option to mount static partitions at boot. Here you'll select the ''boot'' partition you've created earlier. | |||
<br clear="all" /> | |||
[[File:boot_fs.png|thumb|left|375px]] | |||
*Now, you will have to select a file system for you ''boot'' partition. The EXT2 file system is recommended but not necessary. | |||
<br clear="all" /> | |||
[[File:boot_mount.png|thumb|left|375px]] | |||
*Set the mount point to ''/boot'' then hit ENTER. | |||
<br clear="all" /> | |||
[[File:format_boot.png|thumb|left|375px]] | |||
*Select ''Yes'' and press ENTER when prompted for formatting. | |||
<br clear="all" /> | |||
[[File:additional_boot.png|thumb|left|375px]] | |||
*You will be able to mount other partitions at boot up. It's very useful in case you have a ''home'' partition for example. Otherwise, select ''Done'' and hit ENTER. | |||
<br clear="all" /> | |||
[[File:final_prompt.png|thumb|left|375px]] | |||
*An informational window will be prompted. Here you will be able to see info about your previously created partitions, including the mount points and types. Hit ENTER if you want to continue. Note: This will write the changes to your Hard Drive. The process if irreversible. | |||
<br clear="all" /> | |||
[[File:installer_format.png|thumb|left|375px]] | |||
*If you chose to continue (selected ''Yes''), the installer will format and set mount points for your partitions. | |||
<br clear="all" /> | |||
[[File:part_success.png|thumb|left|375px]] | |||
*The process will take just a few seconds, depending on your hardware. Press ENTER when prompted with the success message. | |||
<br clear="all" /> | |||
[[File:main_menu.png|thumb|left|375px]] | |||
*Now, we're done setting up the partitions. Use your arrow keys and highlight ''Main menu'', then press ENTER. | |||
<br clear="all" /> | <br clear="all" /> |