Skip to content

Instantly share code, notes, and snippets.

@leommoore
Last active February 1, 2016 19:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leommoore/7829f326de4989dbc18f to your computer and use it in GitHub Desktop.
Save leommoore/7829f326de4989dbc18f to your computer and use it in GitHub Desktop.
Linux Partitions

#Linux Partitions The best time to partition is when you are doing a fresh install.

  1. In Ubuntu, when you are prompted to erase the disk, select 'Something Else' and click 'Continue'. You will see a single device /dev/sda.
  2. Click the 'New Partition Table..' button. Read the warning and click 'Continue'
  3. Select the free space and click on the '+' button next to Change to create a partition.
  4. Main System Partition - Can be as little as 15-20Gb or larger if necessary. Choose the Gb figure and multiply by 1024 and enter the figure in the size box. Leave 'Primary','Beginning of this space' and 'Ext4 journaling file system'. Select '/' under the mount point and click 'OK'
  5. Select the remaining space and click '+' again. Click on the 'Use as' dropdown menu and select 'swap area'. Set the partition type as Logical, but set its location as 'End of this space'. The size should be approximately the same as the memory or at least 1Gb. Choose a figure and multiply by 1024 to get the Mb figure to enter.
  6. Finally select the remaining free space and click on '+' again. Leave the size, type, location and 'Use as' settings as they are and finally set the mount point to '/Home'.
  7. Click 'Install Now' and 'Continue' to proceed with the install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment