You’ll notice that “/dev/sda1” is the Raspberry Pi boot partition, with an Id of 3, and has the type of “W95 FAT32 (LBA)”. On a normal computer “/dev/sda” is the first hard drive (usually the OS) so be careful when using these commands. I’m using a USB to Micro SD adapter to view the partitions on this card, so it’s being presented to the system as “/dev/sda”.
I/O size (minimum/optimal): 512 bytes / 512 bytesĭevice Boot Start End Sectors Size Id Type Sector size (logical/physical): 512 bytes / 512 bytes Raspberry Pi default Partition layoutīelow, we’ll look at the default partition layout you’d see on a Raspberry Pi using a prebuild linux image. You can also use PXE to boot the kernel requiring no local storage, but that’s beyond the scope of this article.
For those of you that don’t know, you can boot a Raspberry Pi (or Linux computer) from local media, whether it’s a CD, USB Stick, Micro SD, or hard drive, and then have the actual operating system root file system be loaded via NFS. I was creating a new Micro SD card with the purpose of using an NFS Root for the Raspberry Pi.
CREATE BOOT PARTITION LINUX HOW TO
There are many guides on the internet on how to write a Raspberry Pi image (which includes the system-boot partition), but I wanted a clean and fresh partition layout, without the additional partitions containing the Linux operating system. I needed to create the partition layout required for the Raspberry Pi to see and boot a Linux kernel from. During a previous project I needed to create a fresh and clean boot partition for a Raspberry Pi.