Advance-topics/ubiquity-partitioning: Difference between revisions

From Snakeoil OS Reference
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Ubiquity Partitioning}}{{TopicAdvancedTopics|float:right}}
{{DISPLAYTITLE:Ubiquity Partitioning}}{{TopicAdvancedTopics|float:right}}A disk partition in simple terms means a "slice" of your HDD/SSD. Partitioning allow you to split up your SSD  into multiple sections. For more information about partitions, refer to this excellent [[wikipedia:Disk_partitioning|wikipedia article]].
[[File:Partitioning.png|center|thumb|750x750px|Partitioning]]
This section will describe how to partition your main OS media from within Ubiquity installer.Partitioning is a process that will remove all the files on the areas you're working on. Please make sure all the information data are already copied to a safe location (i.e. backed up) before you continue with partitioning.
<span name="more98"></span>In this section we will simply wipe everything on the SSD and create a single primary partition for installing Snakeoil. You can adapt this howto to do other things, e.g. split the SSD into two partitions - one for installing the OS, and the other for music.


{{ManualNavigation|[[advance-topics|Advanced Topics]]|[[advance-topics/recover-from-a-failed-custom|Recover From A Failed Custom Kernel]]|[[advance-topics/persistent-usb|Persistent USB]]}}
=== A Clean Slate ===
First step is to start with a clean slate. Select a partition to delete, e.g. /dev/sda1, /dev/sda2, etc) and click the button with the '-' label to remove.
[[File:Delete partitions.png|center|thumb|918x918px|Delete partitions]]
Removed all listed partitions, the screen will change to this:
[[File:Clean slate.png|center|thumb|918x918px|Clean slate]]
Once you see 100% free space you can start creating the partition for the Snakeoil installation (Don't worry about losing your data at this stage because these changes havn't been applied yet).
 
People who intend to install Snakeoil OS in a multi OS setup, hit the 'revert' button to reload the existing partition information, and then start editing.
 
=== Creating Partitions ===
Click on the "f''ree space''" line and then click the first button to create your Snakeoil partition.
[[File:Create partition.png|center|thumb|915x915px|Create partition]]
We are using the entire SSD for your Snakeoil partition, so click the "''+''" button on the size until it maxes out. If you want to create a music partition, leave at least 8 GB for root partition(Increase this if you have a very big music collection as the databases could be big).
 
It is important to keep the file system as EXT4 as other file system types will not work.
[[File:Create partition 2.png|center|thumb|671x671px|Create partition 2]]
Leave the partition as "Primary", and "beginning of this space". Click on the "''Mount Point''" drop down box and select "''/''".
[[File:Create partition 3.png|center|thumb|501x501px|Create partition 3]]
And there you have it, you have a partition with a EXT4 file system that will be mounted as the root mount point.
[[File:Create partition 4.png|center|thumb|492x492px|Create partition 4]]
Click on the "''OK''" button and you should see that /dev/sda1 now takes 100% of the drive (Make sure the line chart at the top takes up 100% of the space). Tick the"Format" box for the installer to format the file system before the installation (recommended).
[[File:Partition created.png|center|thumb|954x954px|Partition created]]
Unlike the defaults we did not create a swap area here. Snakeoil is very lightweight and it's only function is to play audio (and do it well). As such the memory foot print is very low. Swap area will just waste the space.
 
You can follow the same steps above to create additional partitions for music, or even a swap area if you're using very little RAM.
 
==== Multi Partition Example ====
Here is an example where you can split your HDD into two partitions - one for the system, and the other for music. The advantage of doing this is you do no loose your music if you re-install SnakeoilOS, like so:
[[File:Multi partitions.png|center|thumb|953x953px|Multi partitions]]
Note the above picture is when you first create the partitions. On re-install, make sure you un-check the "Format" box for /media/music line.
{{Abox|Make sure you do a back up of your playlists as they will be wiped out on a re-install.}}
 
Click on the "''Install Now''" button to continue.
 
=== Continue With Installation ===
[[File:No swap space warning.png|center|thumb|1027x1027px|No swap space warning]]
At this stage you are still defining what the partitions should look like, the changes have not been applied to the partition (i.e. original contents of the SSD is still intact).  The following warning would show up if you did not create the Swap Area.Just click "''continue''". This next screen will apply all the changes you had made to the partition table. At this stage you have only configured how the partitions should be, the changes are not applied (i.e. the original contents of your SSD is still intact). Once you hit the "''continue''" button the changes will be applied and installation will continue.
[[File:Write changes.png|center|thumb|859x859px|Write changes]]
<br />{{ManualNavigation|[[advance-topics|Advanced Topics]]|[[advance-topics/recover-from-a-failed-custom|Recover From A Failed Custom Kernel]]|[[advance-topics/persistent-usb|Persistent USB]]}}
[[Category:Advanced Topics]]

Latest revision as of 09:43, 30 July 2020

A disk partition in simple terms means a "slice" of your HDD/SSD. Partitioning allow you to split up your SSD  into multiple sections. For more information about partitions, refer to this excellent wikipedia article.

Partitioning

This section will describe how to partition your main OS media from within Ubiquity installer.Partitioning is a process that will remove all the files on the areas you're working on. Please make sure all the information data are already copied to a safe location (i.e. backed up) before you continue with partitioning. In this section we will simply wipe everything on the SSD and create a single primary partition for installing Snakeoil. You can adapt this howto to do other things, e.g. split the SSD into two partitions - one for installing the OS, and the other for music.

A Clean Slate

First step is to start with a clean slate. Select a partition to delete, e.g. /dev/sda1, /dev/sda2, etc) and click the button with the '-' label to remove.

Delete partitions

Removed all listed partitions, the screen will change to this:

Clean slate

Once you see 100% free space you can start creating the partition for the Snakeoil installation (Don't worry about losing your data at this stage because these changes havn't been applied yet).

People who intend to install Snakeoil OS in a multi OS setup, hit the 'revert' button to reload the existing partition information, and then start editing.

Creating Partitions

Click on the "free space" line and then click the first button to create your Snakeoil partition.

Create partition

We are using the entire SSD for your Snakeoil partition, so click the "+" button on the size until it maxes out. If you want to create a music partition, leave at least 8 GB for root partition(Increase this if you have a very big music collection as the databases could be big).

It is important to keep the file system as EXT4 as other file system types will not work.

Create partition 2

Leave the partition as "Primary", and "beginning of this space". Click on the "Mount Point" drop down box and select "/".

Create partition 3

And there you have it, you have a partition with a EXT4 file system that will be mounted as the root mount point.

Create partition 4

Click on the "OK" button and you should see that /dev/sda1 now takes 100% of the drive (Make sure the line chart at the top takes up 100% of the space). Tick the"Format" box for the installer to format the file system before the installation (recommended).

Partition created

Unlike the defaults we did not create a swap area here. Snakeoil is very lightweight and it's only function is to play audio (and do it well). As such the memory foot print is very low. Swap area will just waste the space.

You can follow the same steps above to create additional partitions for music, or even a swap area if you're using very little RAM.

Multi Partition Example

Here is an example where you can split your HDD into two partitions - one for the system, and the other for music. The advantage of doing this is you do no loose your music if you re-install SnakeoilOS, like so:

Multi partitions

Note the above picture is when you first create the partitions. On re-install, make sure you un-check the "Format" box for /media/music line.

!icon.png Make sure you do a back up of your playlists as they will be wiped out on a re-install.


Click on the "Install Now" button to continue.

Continue With Installation

No swap space warning

At this stage you are still defining what the partitions should look like, the changes have not been applied to the partition (i.e. original contents of the SSD is still intact).  The following warning would show up if you did not create the Swap Area.Just click "continue". This next screen will apply all the changes you had made to the partition table. At this stage you have only configured how the partitions should be, the changes are not applied (i.e. the original contents of your SSD is still intact). Once you hit the "continue" button the changes will be applied and installation will continue.

Write changes


 Main   Advanced Topics   Recover From A Failed Custom Kernel   Persistent USB