Mac OSx mng SD Card

Validi appunti

http://www.raspibo.org/wiki/index.php/Raspberry_Pi

Raspberry images:

http://www.raspberrypi.org/downloads

Download and install Raspbian image

Getting started MacOS and Win:

https://www.andrewmunsell.com/blog/getting-started-raspberry-pi-install-raspbian

resize SD

http://elinux.org/RPi_Easy_SD_Card_Setup

System update:

apt-get update

apt-get upgrade

apt-get dist-upgrade

apt-get clean

raspi-config

Rapbian Lite: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=133691

NEW: - 01/05/2019 - manage SD card

check installed packages ex.: dpkg --get-selections | grep php

MAC OSx command line disk utility

http://www.theinstructional.com/guides/disk-management-from-the-command-line-part-1

iMac:SetupSTM32CubeMX-5.1.0.app giampiero$ diskutil list/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *240.1 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_HFS OWC 239.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3/dev/disk1 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *31.9 GB disk1 1: Windows_FAT_32 boot 43.8 MB disk1s1 2: Linux 31.9 GB disk1s2iMac:SetupSTM32CubeMX-5.1.0.app giampiero$
iMac:SetupSTM32CubeMX-5.1.0.app giampiero$ diskutil info disk1s2 Device Identifier: disk1s2 Device Node: /dev/disk1s2 Whole: No Part of Whole: disk1 Device / Media Name: Untitled 2
Volume Name: Not applicable (no file system)
Mounted: Not applicable (no file system)
File System: None
Partition Type: Linux OS Can Be Installed: No Media Type: Generic Protocol: USB SMART Status: Not Supported
Total Size: 31.9 GB (31864651776 Bytes) (exactly 62235648 512-Byte-Units) Volume Free Space: Not applicable (no file system) Device Block Size: 512 Bytes
Read-Only Media: No Read-Only Volume: Not applicable (no file system)
Device Location: External Removable Media: Yes Media Removal: Software-Activated
iMac:SetupSTM32CubeMX-5.1.0.app giampiero$ diskutil umount disk1s1Volume boot on disk1s1 unmounted
iMac$ sudo dd bs=1m if=/dev/rdisk1 | gzip > ./DietPi_running`date +%Y%m%d`.img.gz
format SD cardiMac$ sudo diskutil eraseDisk FAT32 NEWSD MBRFormat /dev/disk1
per ricostruire la SDiMac$ gzip -dc file.img.gz | sudo dd bs=1m of=/dev/rdisk1
BE CAREFULL SD IMAGE "MUST" BE THE SAME

diskutil unmount /dev/disk2s1

sudo dd bs=1m if=Volumio-3.173-2021-12-08-pi.img of=/dev/rdisk2

2810+0 records in

2810+0 records out

2946498560 bytes transferred in 376.057341 secs (7835237 bytes/sec)


diskutil list

/dev/disk2 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *7.9 GB disk2

1: Windows_FAT_32 ⁨boot⁩ 96.0 MB disk2s1

2: Linux ⁨⁩ 2.7 GB disk2s2

3: Linux ⁨⁩ 146.8 MB disk2s3

(free space) 5.0 GB -