Pages

11 Apr 2015

Partitioning Linux File System (Redhat, Fedora, CentOS)

Tutorial-Partition-Linux
/boot recommended size at least 500MB
The partition mounted on /boot contains the operating system kernel along with files used for the bootstrap process.

/ recommended size of 10 GB
This is where the root directory is located. The root directory is the top-level  and by default all files are written to this partition unless a different partition is mounted in the path being written to (i.e /boot or /home). 5GB root partition allows you to install a minimal installation, it is recommended to allocate at least 10GB so that you can perform a full installation, choosing all package groups.

/home recommended size up to user but normally 50GB or over
User data storage which is separate from system data, create a dedicated partition within a volume group for the /home directory. This partition should be sized accordingly on the amount of user data that will be stored locally.

swap (varies)

  • Systems with 4GB of ram or less require a minimum of 2GB of swap space 
  • Systems with 4GB to 16GB of ram require a minimum of 4GB of swap space
  • Systems with 16GB to 64GB of ram require a minimum of 8GB of swap space
  • Systems with 64GB to 256GB of ram require a minimum of 16GB of swap space

SSD Optimization

Using the btrfs file system you can optimize SSD. There are two ways this can be done.

1) The first way is mkfs.btrfs turns off meta data duplication on a single device when /sys/block/device/queue/rotational is zero for the single specified device. This is equivalent to specifying -m single on the command line. It can be overridden and duplicate meta data forced by providing the -m dup option.

Duplication is not required due to SSD firmware potentially losing both copies. This wastes space and is a performance cost.

2) The second way is through a group of SSD mount options: ssd, nossd, and ssd_spread. The ssd option does several things:

  • It allows larger metadata cluster allocation.
  • It allocates data more sequentially where possible.
  • It disables btree leaf rewriting to match key and block order.
  • It commits log fragments without batching multiple processes.
The ssd mount option only enables the ssd option. Use the nossd option to disable it.


Partition tree example using "lsblk" command.

Plain HTML5 Cheat / Reference Sheet

Programming: HTML5 Cheat / Reference Sheet


Bolded text

<b>Text goes here</b>

Italic text

<i>Text goes here</i>

Underlined text

<u>Text goes here</u>

Changing font color

<font color=”blue”>Text goes here</font>

Changing font size

<font size=”12px”>Text goes here</font>
<font size=”large”>Text goes here</font>

Adding links

<a href=”sadiqulanalysis.blogspot.co.uk” target=”_blank”>Link goes here</a> 

(target=_blank indicates that the link will open in a new browser window or tab; you may remove it if you’d like the link to open in the same window)

Adding images

<img src=”sadiqulanalysis.blogspot.co.uk/image.jpg” border=”1px black solid” align=”right” />

border=”1px #000 solid” puts black border around the image. The "1px" value refers to the border thickness, the second value "black" refers to the border colour, the third value (solid) refers to the pattern of the line, which can be replaced with "dotted" or "dashed"
align=”right” will position the image to alignment you may replace right with left, center or justify

Adding a horizontal divider between sections on web page

 <hr> </hr>

Adding a line break

 <br > <br/>

Making nested bulletined list

<ul>
<li>Section A</li>

<ul>
<li>Section A Part 1</li>
<li>Section A Part 2</li>

<ul>
<li>Section A Part 2.1</li>
<li>Section A Part 2.2</li>
<li>Section A Part 2.3</li>
</ul>

<li>Section A Part 3</li>
<li>Section A Part 4</li>
</ul>

<li>Section B</li>
<li>Section C</li>

<ul>
<li>Section C Part 1</li>
<li>Section C Part 2</li>
</ul>

<li>Section D</li>
</ul>

Making a numbered list

Replace <ul> with <ol> and </ul> with </ol> in the code above
You can also combine numbers and bullets within the same nested list, depending on whether you choose to use <ul> </ul> or <ol> </ol> for each list level.

Making paragraphs

<p>A paragraph of text goes in here</p>

<p style=”font-size:14px;color:green;font-weight:bold;align=center;”> This whole paragraph of text will be centered, green and in 14px. </p>

Creating nested table

<table border="1" style="width:100%">
  <tr>
    <td>Column 1 Row 1 </td>
    <td>Column 1 Row 2 </td>
    <td>Column 1 Row 3 </td>
  </tr>
  <tr>
    <td>Column 2 Row 1 </td>
    <td>Column 2 Row 2 </td>
    <td>Column 2 Row 3 </td>
  </tr>
</table>