Prepare installation SD-Card
All we have to do is to create a single blank FAT32 partition on SD-Card and format it.
Of course be careful not to format and partition the wrong device! Hint: Because you can't do that with mounted devices, you need to unmount the device first
- before inserting SD-Card, list available disks with:
fdisk -l
- now insert the SD-Card and, again do:
fdisk -l
- compare the two listings and you will find your SD-Card
- because you can't reformat with mounted devices, you need to unmount the device first
For example: umount /dev/sdd1
- open the desired memory device
for example
fdisk /dev/sdd
The above command takes you into the fdisk utility that allows you to manipulate (and destroy!) your SD card. It must be run as root, or using sudo.
- list your partitions (if any) with p command
- all partitions on that card need to be deleted with d command
- create a single new partition with n command and use default settings
- change partition type to b (W95 FAT32) with t command
- set bootable flag with a command
- check with p command afterwards - you should see something like
Disk /dev/sdd: 29,8 GiB, 32010928128 bytes, 62521344 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type/dev/sdd1 * 2048 62521343 62519296 29,8G b W95 FAT32- write changed partition settings back to the SD-Card with w command and fdisk will exit
- when you get back to the prompt format the SD-Card
mkfs.vfat /dev/sdd1
Be careful to format the partition and not the device.
- Download the NOOBS Software from:
https://www.raspberrypi.org/downloads