48
votes
Accepted
How can I convert a .img.xz file to .img to transfer it to my SDCard?
Just use the unxz program:
unxz kali-1.1.0-rpi2.img.xz
Note: the original file will be removed. Only the .img file will remain.
If you want to keep the original archive, use
unxz --keep kali-1.1.0-...
40
votes
How can I convert a .img.xz file to .img to transfer it to my SDCard?
You can use xzcat and dd together.
xzcat kali-1.1.0-rpi.img.xz | dd of=/dev/SDCARDNAMEGOESHERE
It retains original file.
32
votes
Accepted
How can I mount a Raspberry Pi Linux distro image?
losetup provides partition probing through -P. Using this makes mounting partitions of a full disk image such as the Raspbian SD card image very easy:
losetup -P /dev/loop0 raspbian.img
mkdir /mnt/...
25
votes
How to clone Raspberry Pi SD Card on Windows, Linux, and macOS?
On Linux or OSX I use dd to make a backup from SD card. Reverse if and of (i.e. to where they point - source and destination) afterwards to restore, but be careful not to restore to a wrong disk. It ...
19
votes
Accepted
Copy existing Raspbian installation to smaller SD card
In this answer, I demonstrate what to do step-by-step for people to understand the logic behind the solution and to be able to apply steps in their other problems.
But firstly, it should be stated ...
14
votes
Accepted
How to shrink an image file after allocating full space
So the best way I have found is to use GParted (you can either use a Linux-based OS, or boot from a GParted Live USB). It is simple enough to find detailed instructions on how to do each of these ...
13
votes
Accepted
How to clone Raspberry Pi SD Card on Windows, Linux, and macOS?
I recently had to make a backup image for my Raspberry Pi 3 Model B and found an incredibly helpful guide from Beebom.
The guide outlines the process for cloning and restoring a Pi SD image for all ...
12
votes
Accepted
Which images can be used universally across all Raspberry Pi versions?
All images available at https://www.raspberrypi.org/downloads/raspbian/ are compatible with all Pi models.
Of course, this may change in the future
11
votes
How to shrink an image file after allocating full space
The exists a nice tool called pishrink which reduces the size of a dd image as much as possible by shrinking the root partition. If you start up the restored image the first time the partition is ...
10
votes
Accepted
Reduce Ubuntu mate 16.04 img file size
Ok so I finally found an answer and I wish to share it with you guys.
My guess is that the creators created the compressed file from an expanded image by mistake.
The fact that the compressed file is ...
9
votes
Accepted
Restore PI from Pi itself
Not quite. You would overwrite the partition tables when you re-image it and replace said tables with the ones from the image. After your imaging program is done, it would release the file handle to ...
9
votes
DD claiming to write to SD card, not doing anything
Late to the party, but I had the same issue today:
$ sudo dd if=output/images/sdcard.img of=/dev/mmcblk0 bs=2M status=progress
66+1 records in
66+1 records out
138412544 bytes (138 MB, 132 MiB) ...
8
votes
How to printscreen on Raspberry Pi?
Just use the Print Screen key on your keyboard that will save a PNG image in your home directory (/home/pi) of the whole desktop.
8
votes
PIL.Image from picamera.capture()
From the picamera docs (Section 4.3. Capturing to a PIL Image):
import io
import time
import picamera
from PIL import Image
# Create the in-memory stream
stream = io.BytesIO()
with picamera.PiCamera(...
8
votes
Installing CentOS 7 on a Raspberry Pi
Linux / OSX
Download the image from here
Extract the .xz file using any of the following methods
Tar
tar xf CentOS-Userland-7-armv7hl-Minimal-1511-RaspberryPi2.img.xz
Unxz
unxz CentOS-Userland-7-...
8
votes
Accepted
How to Backup/Shrink the image of my working Raspbian SD Card
Many users ask how they can produce a small customised image that can be used to create new SD Cards and/or how they can shrink an image to make a compact backup of a running system.
I have found a ...
7
votes
How can I copy the same image to many SDs?
I had the same requirements as 1 and 2 to distribute a customized OS. After looking around I found many commands, but not a single tool to create a compact .zip file from an SD card, so I wrote mkimg....
7
votes
Can a Raspberry Pi be used to create a backup of itself?
It's now 2022; the original question here, and some of the answers, are about 9 years old now. I'm adding this answer to provide an update, and to connect this question, and its answers, with a more ...
7
votes
Accepted
How to make an image file from scratch
It is possible to create an empty image for a Raspberry Pi. Then you can copy an operating system with a boot and root partition to it and boot. To fill the empty image you can use any usable file ...
7
votes
Accepted
OS image made using Pi-Gen lacks JPEG support in GTK
A desktop devoid of all images and icons sounds very much like a known issue with running on 64-bit hosts. qemu needs to be 32-bits for correct emulation and a proper build.
The fixes that worked for ...
6
votes
YOLO or SSD on raspberry pi
OK after a long search I 've found a reliable version of yolo called YAD2K. I have use tiny-yolo which takes about 1.5s per frame on a raspberry pi 3.
6
votes
Accepted
DD claiming to write to SD card, not doing anything
I had this problem and it turned out to be a faulty sd card. I tried to delete partitions and reformat the sd card but it plain refused. Use another sd card and it was fine.
6
votes
Accepted
How to edit Raspberry Pi files from SD card on Windows machine?
If you want to modify only one configuration file from MS Windows there is a very simple way. Default Raspbian has two partitions: one boot partition formated as fat and the root partition with all ...
6
votes
Accepted
How do I Flash (install) Raspbian on Raspberry Pi Compute Module 3 / 3+?
Method 1: Hard (Official) Way
Follow the official instructions from Raspberry Pi in below link if you like a Rube Goldberg / Heath Robinson way of doing things:
https://www.raspberrypi.org/...
5
votes
Image of a 16Gb card containing unpartitioned space at the end: Truncating possible?
I know this is an old question, but I would like to show how to do this process on Mac, because it is not as easy: fdisk doesn't have the -l option, and truncate is not installed by default:
1. Step ...
5
votes
Accepted
Fast image array processing with Pi NoIR camera in Python using picamera module
Apparently, I got a little sidetracked and didn't post this "by the end of tomorrow". Anyway, here is the solution I ended up with. Still not perfect by any means, but does at least provide quick, on-...
5
votes
How to increase the camera exposure time?
Although raspberry camera has lot of limitations it is possible to take pictures in very dark environment.
My best night mode for raspberry pi camera is with this settings:
raspistill -w 2592 -h ...
5
votes
Debian Jessie or Raspbian Wheezy for Raspberry Pi 2
Since Pi 2 has a ARM Cortex-A7 CPU it does not depend on the hard float modification anymore.
It never depended on it. The SoC has hardware floating point registers; not all ARM processors do, and ...
5
votes
Backing up SD card generates a huge .img file
Surprise! creating an image of a 16GiB SD Card creates a 16GiB image.
There are 2 options;
only backup files can-a-raspberry-pi-be-used-to-create-a-backup-of-itself
or compress the image https://...
5
votes
DD claiming to write to SD card, not doing anything
Had the same problem with this:
dd bs=4M if=2018-04-18-raspbian-stretch.img of=/dev/sdX conv=fsync
But it worked by dropping the fsync
dd bs=4M if=2018-04-18-raspbian-stretch.img of=/dev/sdX
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
image × 271raspbian × 80
sd-card × 55
backup × 33
camera × 29
python × 22
boot × 21
raspicam × 18
pi-3 × 16
partition × 13
video × 11
win32diskimager × 10
ssh × 9
linux × 9
windows × 9
opencv × 8
wifi × 6
boot-issues × 6
software-installation × 6
retropie × 6
filesystem × 6
operating-systems × 6
pi-2 × 5
display × 5
ubuntu × 5