wlado's website

Raspberry Pi 3 - Start z SSD

enable usb boot

$ echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt
program_usb_boot_mode=1
$ sudo reboot

kontrola

$ vcgencmd otp_dump | grep 17:
17:3020000a

Příprava USB disku
Zjistit disky:

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:16 0 223.6G 0 disk
mmcblk0 179:0 0 14.9G 0 disk
─mmcblk0p2 179:2 0 14.8G 0 part /
└─mmcblk0p1 179:1 0 63M 0 part /boot


tady by chtelo sudo unmount /dev/sda

Spustit parted
$ sudo parted /dev/sda
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mktable msdos
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? > Yes
(parted) mkpart primary fat32 0% 100M
(parted) mkpart primary ext4 100M 100%
(parted) print
Model: WDC WDS2 40G1G0A-00SS50 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 99.6MB 98.6MB primary fat32 lba
2 99.6MB 240GB 240GB primary ext4 lba

(parted) quit
Information: You may need two update /etc/fstab.

sudo mkfs.vfat -n BOOT -F 32 /dev/sda1
mkfs.fat 3.0.27 (2014-11-12)
sudo mkfs.ext4 /dev/sda2
informace o oddíle