7/15/2023 0 Comments Rpi wipefs![]() ![]() Extract the tarball into the system’s (bootable fat32 2GB) partition: `cd /run/media/bray/4F85-22E7` `tar -zxvf ~/Downloads/alpine-rpi-3.14.` *(Substitute directories and filenames.)*.Run lsblk to verify both partition mount points.Eject and remove the MicroSD, and then plug it on again.Download Alpine Linux for Raspberry Pi ( aarch64 for Raspberry Pi 4 B). ![]() Number Start End Size Type File system Flagsġ 1049kB 2000MB 1999MB primary fat 32 boot, lbaĢ 2001MB 63, 9GB 61, 9GB primary ext 4 Flash Alpine Linux Into the MicroSD Card Verify the MicroSD card’s state with sudo parted /dev/sdd print again, it should end up with a scheme like this: Model: Generic STORAGE DEVICE (scsi).Build a fat32 filesystem on partition 1 and an ext4 filesystem on partition 2: `sudo mkfs.vfat -F 32 /dev/sdd1` `sudo mkfs.ext4 /dev/sdd2`.*(Replace `64g` with the size of your MicroSD card, ex.: `16g`.)* Create the storage partition (62GB): `sudo parted /dev/sdd mkpart primary 2001 64g`.Add boot and lba flags to the system’s partition: `sudo parted /dev/sdd set 1 boot on `.Create the system partition (2GB): `sudo parted /dev/sdd mkpart primary 1 2g`.*(You may run `sudo parted /dev/sdd print` anytime to observe the changes applied.)* Create MBR partitioning scheme on the MicroSD card: ` sudo parted / dev/ sdd mklabel msdos`.Sector size (logical/physical): 512B/ 512B ![]() Sample output: Error: /dev/ sdd: unrecognised disk label
0 Comments
Leave a Reply. |