Setup Raspberry Pi from scratch: Difference between revisions

From James's Wiki
No edit summary
No edit summary
Line 18: Line 18:


Delete all partitions using 'd'<br>
Delete all partitions using 'd'<br>
Create a new partition using 'c'<br>
Create a new partition using 'c'<br> Use the default options for everything except the endpoint (if the sd card is over 16g...use +8G for the endpoint)
Set partition with 't' and set to type 'b' (FAT 32)
Set bootable with 'a'
Write changes with 'w'

Revision as of 00:21, 19 November 2017

sudo apt-get install tree


To find the SD Card for you Raspberry Pi, Insert it into your computer and type:

lsblk

Assuming that you only have one similarly sized device inserted at this time it should be fairly easy to figure out which device you want based on size. If your using a Linux distro like Ubuntu, it will automaticly mount your SD Card, and you don't want that so umount it with:

sudo umount /dev/<device number>

Repeat this command adjusting the device number until all partitions are unmounted.

Next, we need to repartition the SD card with fdisk.

sudo fdisk /dev/<device number>

Delete all partitions using 'd'
Create a new partition using 'c'
Use the default options for everything except the endpoint (if the sd card is over 16g...use +8G for the endpoint) Set partition with 't' and set to type 'b' (FAT 32) Set bootable with 'a' Write changes with 'w'