Difference between revisions of "Hard Drive Partition Scheme"

From Amahi Wiki
Jump to: navigation, search
 
(19 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
image =Warning.png|
 
image =Warning.png|
 
heading =WARNING|
 
heading =WARNING|
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.}}
+
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 accidentally get confused about 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.
+
The Amahi team makes the following recommendations when partitioning drives in Amahi 7 or greater:
  
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]].
+
* Skip using [https://www.amahi.org/faq/does-amahi-support-lvm Logical Volume Management (LVM)], which creates added complexity for inexperienced users, in particular if there are disk failures.
 +
* Do not make a separate /home partition. Amahi does not recommend use of /home for storage for users
 +
* Allocate the majority of hard drive space in the / (root) partition.
 +
* Do not add extra drives while installing.  recommend you do that later after the system is up and running successfully using [[Adding_a_second_hard_drive_to_your_HDA|adding a second hard drive to your HDA]] as a guide.
 +
* The majority of space, to be used by file shares is set up to be at ''/var/hda/files'', which typically resides in the root partition.
 +
* If you plan to use the [[Greyhole]] drive pooling technology, keep in mind that by default the Greyhole "[[Greyhole_landing_zone|Landing Zone]]" will be located in the root partition. This needs to have enough space to accommodate the single largest transaction that you plan or foresee you will make.
  
At the partitioning point of the Fedora installer:  
+
= How to Partition=
* Select Create Custom Layout and click Next.
+
At the partitioning point of the Fedora installer, you do this:
* Next delete lv-root, lv-swap, and vg_xxxxxxx by selecting one at a time and clicking delete (xxxxxx is different on every machine).
+
* Select '''INSTALLATION DESTINATION''' under ''STORAGE'' section.
* Now delete ALL partitions under hard drives. Now you will see free space as the size of the drive.
+
* Verify the correct drive is selected, then choose '''Done'''.
* First we need to make the swap. Click on the free space and click Create:  
+
* Ensure '''Partition scheme''' reflects ''Standard Partition''.
 
+
* Choose ''I want to review/modify my disk partitions before continuing'' and select '''Continue'''.
* On the menu select standard partition.
+
* When prompted with '''INSTALLATION OPTIONS''', select ''Custom partitioning''.
* Go to file system type and click Swap.
+
* Choose each partition and select the '''minus''' (-) to remove them individually until all the partitions have been removed.
* 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.
+
# If prompted ''Are you sure you want to delete all the data on...'', choose '''Delete it'''
 
+
# Ensure ''Delete all other filesystems in the Unknown root as well'' is selected.
:{|class="wikitable"
+
* You should now see the message ''You haven't created any mount points for your installation yet''.
 +
* First we need to make the ''Swap''. Click on the plus (+) and a window will appear:
 +
# Choose '''Mount Point''' of ''Swap''.
 +
# Enter '''Desired Capacity''' based on the chart below.
 +
# Select '''Add mount point'''.
 +
::'''NOTE:''' The recommended size of a swap partition depending on the amount of RAM in your system.
 +
::{|class="wikitable"
 
!System RAM
 
!System RAM
 
!Recommended swap space
 
!Recommended swap space
Line 34: Line 45:
 
|4GB of swap space
 
|4GB of swap space
 
|}
 
|}
 +
* Next is ''/boot''.  Click on the plus (+) and a window will appear:
 +
# Choose '''Mount Point''' of ''/boot''.
 +
# Enter '''Desired Capacity''' of ''500MB''.
 +
# Select '''Add mount point'''.
 +
* The last one is the ''/'' (root).  Click on the plus (+) and a window will appear:
 +
# Choose '''Mount Point''' of ''/''.
 +
# Enter '''Desired Capacity''' of the amount of remaining disk space (this is displayed at the bottom of the installer window)
 +
# Select '''Add mount point'''.
 +
* Review the partition scheme and if it looks ok, choose '''Done''' and select '''Accept changes'''.
  
* 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.
  
You can now continue with the install as normal.
+
= Example =
 +
For a system with 1GB RAM and 10GB hard drive, the following settings would apply for '''Desired capacity''':
 +
* Swap = 2GB
 +
* /boot = 500MB
 +
* / = 7.73GB
 
 
  
 
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]

Latest revision as of 00:57, 25 March 2016

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 accidentally get confused about what disks are which or you make an error.


The Amahi team makes the following recommendations when partitioning drives in Amahi 7 or greater:

  • Skip using Logical Volume Management (LVM), which creates added complexity for inexperienced users, in particular if there are disk failures.
  • Do not make a separate /home partition. Amahi does not recommend use of /home for storage for users
  • Allocate the majority of hard drive space in the / (root) partition.
  • Do not add extra drives while installing. recommend you do that later after the system is up and running successfully using adding a second hard drive to your HDA as a guide.
  • The majority of space, to be used by file shares is set up to be at /var/hda/files, which typically resides in the root partition.
  • If you plan to use the Greyhole drive pooling technology, keep in mind that by default the Greyhole "Landing Zone" will be located in the root partition. This needs to have enough space to accommodate the single largest transaction that you plan or foresee you will make.

How to Partition

At the partitioning point of the Fedora installer, you do this:

  • Select INSTALLATION DESTINATION under STORAGE section.
  • Verify the correct drive is selected, then choose Done.
  • Ensure Partition scheme reflects Standard Partition.
  • Choose I want to review/modify my disk partitions before continuing and select Continue.
  • When prompted with INSTALLATION OPTIONS, select Custom partitioning.
  • Choose each partition and select the minus (-) to remove them individually until all the partitions have been removed.
  1. If prompted Are you sure you want to delete all the data on..., choose Delete it
  2. Ensure Delete all other filesystems in the Unknown root as well is selected.
  • You should now see the message You haven't created any mount points for your installation yet.
  • First we need to make the Swap. Click on the plus (+) and a window will appear:
  1. Choose Mount Point of Swap.
  2. Enter Desired Capacity based on the chart below.
  3. Select Add mount point.
NOTE: The recommended size of a swap partition depending on the amount of RAM in your system.
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
  • Next is /boot. Click on the plus (+) and a window will appear:
  1. Choose Mount Point of /boot.
  2. Enter Desired Capacity of 500MB.
  3. Select Add mount point.
  • The last one is the / (root). Click on the plus (+) and a window will appear:
  1. Choose Mount Point of /.
  2. Enter Desired Capacity of the amount of remaining disk space (this is displayed at the bottom of the installer window)
  3. Select Add mount point.
  • Review the partition scheme and if it looks ok, choose Done and select Accept changes.


You can now continue with the install as normal.

Example

For a system with 1GB RAM and 10GB hard drive, the following settings would apply for Desired capacity:

  • Swap = 2GB
  • /boot = 500MB
  • / = 7.73GB


Reference: Fedora Recommended Partitioning Scheme