User:Txnintn: Difference between revisions

From Alpine Linux
mNo edit summary
mNo edit summary
Line 90: Line 90:
At, What sub-timezone of 'America' are you in? ('?' for list), prompt.
At, What sub-timezone of 'America' are you in? ('?' for list), prompt.
TYPE:  Chicago, with a capital C, and press enter.
TYPE:  Chicago, with a capital C, and press enter.
At, HTTP/FTP proxy URL? (e.g. /http://proxy:8000', or 'none') [none], prompt.
PRESS:  enter for the default, none.

Revision as of 19:14, 1 July 2023

Title: Alpine Linux install: LVM over Raid1 with a Micro SD spare.

Alpine Linux setup-alpine scripts when executed with two disks and the install medium, if both disks are selected, i.e., sda and sdb, the script will automatically configure a RAID1 installation.

Additionally, LVM with a 'sys' install can be selected during the setup-alpine script.

The Raspberry Pi requires fat 16 / 32 boot partition with boot and LBA flags enabled. The Raspberry PI will boot from either a USB or a Micro SD port. By having a Micro SD RAID1 spare, if the primary USB drive fails the Micro SD should be able to boot the system. LVM requires the Micro SD spare partition to be the same size as USB RAID1 partitions. A larger capacity Micro SD drive 2nd partition can easily resized to match the USB partition. During the install the setup-alpine script will maximize the size of 2nd partition on RAID1 drives.

Tech Tip, not all Micro SD and USB drives are the same size.

16GB SanDisk Industrial Micro SD 14.84GB SanDisk Ultra Ultra Fit USB 3.1 14.34GB SanDisk Ultra USB 3.0 14.91GB SanDisk Cruzer Glide USB 2.0 14.91GB

32GB Samsung SD Pro Endurance Micro SD 29.81GB SanDisk Ultra SD 29.72GB SanDisk Ultra Fit USB 3.1 Gen1 28.67GB Silicon Power 5 USB 3.2 28.85GB SanDisk Ultra 3.0 OTG 28.85GB

64GB Samsung EVO Select Micro SD 59.69GB Samsung Fit USB 3.1 59.75GB

Requirements: Raspberry PI 4 Two Identical USB Drives - fit style drives recommended based on physical clearance issues. One Micro SD Drive with the same or larger capacity then the USB drives One USB drive for the installation files.

Preparation Created the following on the USB RAID disks: sdx1 a 300MB Fat32 Oc Partition, with boot and lba flags as required by Raspberry PI. sdx2 using the rest of the disk with a fd linux raid partition, formatted ext4

mmcblkx, sdx1 a 300MB Fat32 Oc Partition, with boot and lba flags as required by Raspberry PI. sdx2 sized to match USB RAID partition, Linux 83 and formatted Ext4. Do not use Linux Raid.

The USB installation drive single partition fat 32 0c with boot and LBA flags. Extract the contents of alpine-rpi-3.x.x-aarch.tar.gz to sdc1 (spare USB) partition.

The Raspberry Pi eprom must be set to boot USB port first and SD port second.

Installation

Insert the "sda" USB disk into the bottom USB 3.0 port and the "sdb" USB drive into the upper USB 3.0 port. Power up the system, after the system has failed to boot to the installed USB drives, the screen will change from white and red to black and white text, insert the installation USB (sdc) to start the install process. This will set the drive assignments properly.

After logging in as root. To start the install, TYPE: setup-alpine and PRESS: enter.


At, Select keyboard layout: [none], prompt. TYPE: us and PRESS: enter. At, Select variant (or 'abort'):, prompt. TYPE: us and PRESS: enter.


At, Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost] prompt. TYPE: the localhost name, for example, rpi44gb and PRESS: enter.


At, Enter '?' for help on bridges, bonding and vlans. Which one do you want to initialize? (or '?' or 'done' [eth0], prompt. PRESS: enter, to use the default, ethernet0 connection.

Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp], prompt. PRESS: enter to use the default, dhcp.

At the second, Enter '?' for help on bridges, bonding and vlans. Which one do you want to initialize? (or '?' or 'done' [wlan0], prompt. TYPE: done and PRESS: enter.

Then at, Do you want to do and manual network configuration? (y/n) [n], prompt. PRESS enter for the default, [n], for no.


At, Change password for root, prompt. TYPE: the root password, and PRESS: enter. At, Retype password, prompt. TYPE: the root password and PRESS: enter.


At, Which timezone are you in? ('?' for a list) [UTC]. prompt. TYPE: America, with a capital A, and press enter.

At, What sub-timezone of 'America' are you in? ('?' for list), prompt. TYPE: Chicago, with a capital C, and press enter.

At, HTTP/FTP proxy URL? (e.g. /http://proxy:8000', or 'none') [none], prompt. PRESS: enter for the default, none.