# Image

### Create Image

<div align="left"><figure><img src="https://1807052855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbZeWVgJwc9F5Drc7pi8j%2Fuploads%2F3VC4NjN952kRKcSrWyC9%2FUSB-device.png?alt=media&#x26;token=049eda46-4ee7-4bbf-952c-7111900868bd" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1807052855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbZeWVgJwc9F5Drc7pi8j%2Fuploads%2F4dCZyUbvLMS4ZpfpiLQe%2Fusb-mount.png?alt=media&#x26;token=a0c76912-3fa0-4f1b-9e8c-a5b4ccce4fdc" alt=""><figcaption></figcaption></figure></div>

```bash
sudo dd bs=4M if=/dev/Eure_SD_Karte of=/media/Euer_USB_Device/imagename.img status=progress
```

```bash
sudo dd bs=4M if=/dev/mmcblk0 of=/media/usb0/backup.img status=progress
```

***

### Shrink Images

```bash
cd /media/USB_DEVICE
wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
chmod +x pishrink.sh
sudo mv pishrink.sh /usr/local/bin
sudo pishrink.sh EUER_IMAGE.img
```

<figure><img src="https://1807052855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbZeWVgJwc9F5Drc7pi8j%2Fuploads%2F8mSX7qua8Xw9CV2m8edH%2Fshrink-sh.png?alt=media&#x26;token=4caeb4d9-fe63-42c0-8ec2-97d839291c1c" alt=""><figcaption></figcaption></figure>

> Source
>
> [Drewsif/PiShrink: Make your pi images smaller! (github.com)](https://github.com/Drewsif/PiShrink)
