Difference between revisions of "Pinebook Pro Software Release"

Jump to navigation Jump to search
Further improved formatting of Disk setup
(Slightly improved formatting)
(Further improved formatting of Disk setup)
Line 337: Line 337:
Log into your host device as root with the following command:
Log into your host device as root with the following command:


sudo su
<code> sudo su </code>


Enter your password.
Enter your password.
Line 343: Line 343:
Let the device on which you intend to install gentoo be refered to hereafter as /dev/<gentoo>. Use the following command to prepare this disk for installation:
Let the device on which you intend to install gentoo be refered to hereafter as /dev/<gentoo>. Use the following command to prepare this disk for installation:


fdisk -B /dev/<gentoo> #Don't just copy these commands! You should substitute <gentoo> for mmcblk2 for the internal eMMC flash storage
<code> fdisk -B /dev/<gentoo> </code>
 
Note: don't just copy these commands! You should substitute <gentoo> for mmcblk2 for the internal eMMC flash storage.


Note that the first block of the boot partition is block 62500. Delete all partitions, but *do not* re-format the disk. Create a new boot partition starting at 62500, and as it's size select "+1GB". Create a new swap partition. fdisk will try to start it at the beginning of the volume (before the boot partition) Instead, when it prompts you for the starting position, enter in the end sector of the boot partition. It should then tell you that this is within an existing partition, and recommend a slightly higher value. Press enter, and give for the size of the partition any value greater than "+4gb". You need this much ram to be able to suspend your system, and emerge large packages. Don't be stingey - you still have SD cards. I reccomend "+8gb".
Note that the first block of the boot partition is block 62500. Delete all partitions, but *do not* re-format the disk. Create a new boot partition starting at 62500, and as it's size select "+1GB". Create a new swap partition. fdisk will try to start it at the beginning of the volume (before the boot partition) Instead, when it prompts you for the starting position, enter in the end sector of the boot partition. It should then tell you that this is within an existing partition, and recommend a slightly higher value. Press enter, and give for the size of the partition any value greater than "+4gb". You need this much ram to be able to suspend your system, and emerge large packages. Don't be stingey - you still have SD cards. I reccomend "+8gb".
Finally, add a root partition starting at the end sector of the swap partition, and use the rest of the disk for it. That should be 50-60 GB depending on the size of your swap and boot partitions.
Finally, add a root partition starting at the end sector of the swap partition, and use the rest of the disk for it. That should be 50-60 GB depending on the size of your swap and boot partitions.


Lastly, use
Lastly, press "t" to set the type of each partition. You may set partition 1 to type 6, 2 to type 82, and 3 to type 83.


t, 1, 6      #Type, boot, vfat
to set the partition types of the three partitions.


t, 2, 82,    #Type, swap, swap
<code>lsblk</code>
 
to remind yourself which disk is /dev/<gentoo>
Write the filesystems to these three partitions with the commands:


t, 3, 83      #Type, root, ext4
<code>mkfs.vfat /dev/<gentoo>p1


to set the partition types of the three partitions.
mkswap /dev/<gentoo>p2


use the command:
mkfs.ext4 /dev/<gentoo>p3</code>


lsblk


to remind yourself which disk is /dev/<gentoo>
This may be a slightly different format if you're installing to a usb stick.
Write the filesystems to these three partitions with the commands:


mkfs.vfat /dev/<gentoo>p1 #This may be a slightly different format if you're installing to a usb stick.
'''Installation'''


mkswap /dev/<gentoo>p2


mkfs.ext4 /dev/<gentoo>p3


'''Chrooting'''
Install the operating system as per the AMD64 manual [https://wiki.gentoo.org/wiki/Handbook:AMD64]. Continue until you reac


== Kali Linux ==
== Kali Linux ==

Navigation menu