Difference between revisions of "Hard Drive Partition Scheme"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
{{WorkInProgress}}
+
{{MessageBox|
==Overview==
+
backgroundcolor = #faa|
Unless you have a reason for doing otherwise, we recommend that you create the following partitions for Amahi Fedora based systems:
+
image =Warning.png|
*  swap
+
heading =WARNING|
/boot
+
message = Recommend you disable/unplug ALL hard disks you do not want to put the system on to make it easier to partition. Data loss can result if you don't know what disks are which or you make an error.}}
/
+
Often times Logical Volume Management (LVM) creates added complexity for inexperienced users. Amahi does not recommend [https://www.amahi.org/faq/does-amahi-support-lvm LVM] unless you are an advanced user.
  
==Swap (at least 256 MB)==
+
The default setup in Fedora is to use LVM and put a lot of the space in /home partition. Most people do not want this.  Recommend removing the /home partition for best results.  The majority of hard drive space should be available in / (root) as this is where the file shares (''/var/hda/files'') reside and the default location of the [[Greyhole_landing_zone|Greyhole Landing Zone]].
Swap partitions support virtual memory: data is written to a swap partition when there is not enough RAM to store the data your system is processing.
 
  
The following table provides the recommended size of a swap partition depending on the amount of RAM in your system.  
+
At the partitioning point of the Fedora installer:
 +
* Select Create Custom Layout and click Next.
 +
* Next delete lv-root, lv-swap, and vg_xxxxxxx by selecting one at a time and clicking delete (xxxxxx is different on every machine).
 +
* Now delete ALL partitions under hard drives. Now you will see free space as the size of the drive.
 +
* First we need to make the swap. Click on the free space and click Create:
  
{|class="wikitable"
+
* On the menu select standard partition.
 +
* Go to file system type and click Swap.
 +
* The recommended size of a swap partition depending on the amount of RAM in your system. For example, if you have > 1GB of ram and plenty of HDD space, make it 2GB Fixed size and select OK.
 +
 
 +
:{|class="wikitable"
 
!System RAM
 
!System RAM
 
!Recommended swap space
 
!Recommended swap space
Line 28: Line 35:
 
|}
 
|}
  
==/boot (500 MB)==
+
* Click Create again, and we will make a /boot mount point:
The partition mounted on ''/boot'' contains the operating system kernel (which allows your system to boot Fedora), along with files used during the bootstrap process. For most users, a 500 MB boot partition is sufficient.  
+
* Click free space and select Create.
 
+
* Choose Standard Partition and under mount point select /boot.
==/ (ALL remaining space)==
+
* Select Ext4 for file system type. This should be set to 500MB and click OK.
This is where ''/'' (the root directory) is located. In this setup, all files (except those stored in /boot) are on the root partition. It's best that '''ALL''' remaining space be allocated to this partition.
+
* The last one, the ROOT partition (recommend it be the rest of the disk):
 +
* Just click free space, and Create one more time.
 +
* For mount point select /.
 +
* File system type select Ext4 under leave the size box alone.
 +
* Select Fill to Maximum allowable size to use up the rest of the disk.  
 +
* Click NEXT and select Write Changes to Disk.
  
'''NOTE:''' Also the default location of the [[Greyhole_landing_zone|Greyhole Landing Zone]] (''/var/hda/files'').
 
  
 +
You can now continue with the install as normal.
 +
  
 
Reference:  [http://docs.fedoraproject.org/en-US/Fedora/20/html/Installation_Guide/s2-diskpartrecommend-x86.html Fedora Recommended Partitioning Scheme]
 
Reference:  [http://docs.fedoraproject.org/en-US/Fedora/20/html/Installation_Guide/s2-diskpartrecommend-x86.html Fedora Recommended Partitioning Scheme]

Revision as of 16:04, 2 January 2015

Warning.png WARNING
Recommend you disable/unplug ALL hard disks you do not want to put the system on to make it easier to partition. Data loss can result if you don't know what disks are which or you make an error.


Often times Logical Volume Management (LVM) creates added complexity for inexperienced users. Amahi does not recommend LVM unless you are an advanced user.

The default setup in Fedora is to use LVM and put a lot of the space in /home partition. Most people do not want this. Recommend removing the /home partition for best results. The majority of hard drive space should be available in / (root) as this is where the file shares (/var/hda/files) reside and the default location of the Greyhole Landing Zone.

At the partitioning point of the Fedora installer:

  • Select Create Custom Layout and click Next.
  • Next delete lv-root, lv-swap, and vg_xxxxxxx by selecting one at a time and clicking delete (xxxxxx is different on every machine).
  • Now delete ALL partitions under hard drives. Now you will see free space as the size of the drive.
  • First we need to make the swap. Click on the free space and click Create:
  • On the menu select standard partition.
  • Go to file system type and click Swap.
  • The recommended size of a swap partition depending on the amount of RAM in your system. For example, if you have > 1GB of ram and plenty of HDD space, make it 2GB Fixed size and select OK.
System RAM Recommended swap space
< 2GB 2 times the amount of RAM
> 2GB – 8GB Equal to the amount of RAM
> 8GB – 64GB 0.5 times the amount of RAM
> 64GB 4GB of swap space
  • Click Create again, and we will make a /boot mount point:
  • Click free space and select Create.
  • Choose Standard Partition and under mount point select /boot.
  • Select Ext4 for file system type. This should be set to 500MB and click OK.
  • The last one, the ROOT partition (recommend it be the rest of the disk):
  • Just click free space, and Create one more time.
  • For mount point select /.
  • File system type select Ext4 under leave the size box alone.
  • Select Fill to Maximum allowable size to use up the rest of the disk.
  • Click NEXT and select Write Changes to Disk.


You can now continue with the install as normal.


Reference: Fedora Recommended Partitioning Scheme