Skip to main content
20 votes
Accepted

How to mount a Raspbian SD card on a Mac?

Found this article -> Mount a Raspberry Pi SD card on a Mac (read-only) with osxfuse and ext4fuse, It worked like a charm. Here is the commands I ran om my mac: brew cask install osxfuse brew ...
Frank's user avatar
  • 316
20 votes
Accepted

What's the difference between UUID and PARTUUID?

On Difference between UUID and PARTUUID You can get a few hints about the difference between UUID and PARTUUID by specifying the -p option. blkid -p /dev/sda1 or whatever device/partition you are ...
RubberStamp's user avatar
  • 1,409
13 votes
Accepted

how to copy sd-card whithout copying the unallocated space

Question: I have a 32Gb SD card and I want to make a light copy of my os to make it work on a 16Gb SDcard. Answer - use image-backup Perhaps the easiest way to do this is with the image-backup ...
Seamus's user avatar
  • 22.3k
9 votes

How to mount a Raspbian SD card on a Mac?

Read and write Linux SD card on MacBook M1 with USB-C. Install UTM: brew install utm Run ArchLinux ARM in UTM. Plug SD card into USB-A adapter. Plug USB-A adapter into USB-C adapter. Plug USB-C ...
Ivan Rybalko's user avatar
9 votes
Accepted

Netbooting multiple "workers" RPi from a "master" RPi

Here is a solution with netbooting using sytemd-networkd. Network booting works only for the wired adapter. Booting over wireless LAN is not supported 1. It is also important that there is already ...
Ingo's user avatar
  • 42.2k
8 votes
Accepted

Expanding partition on SD

You can do it all on the Pi if you have SSH or terminal access, below are some notes I made when I first did it, you shouldn't lose any data if you do it correctly but as always it pays to have a ...
Bra1n's user avatar
  • 1,251
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 ...
Ingo's user avatar
  • 42.2k
6 votes

btrfs root filesystem on raspbian

Raspbian kernel doesn't include support btrfs by default; the initial boot stages run normally, but when the kernel loads, it won't see any filesystem which it could mount - and panics. A solution ...
Piskvor left the building's user avatar
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 ...
ant0nisk's user avatar
  • 183
5 votes

Copy current SD image to larger SD card

The following worked for me, with an SD card that was originally prepared with NOOBS. I was going from a 32GB SD-Card to a 128 GB Card. Insert the new card into an external card reader and attach it ...
PMF's user avatar
  • 906
5 votes

What's the difference between UUID and PARTUUID?

As I understand it. The term UUID in general refers to a "Universally unique identifier", known in the windows world as a GUID. There are a few different schemes but for the most part modern ...
Peter Green's user avatar
  • 6,486
5 votes

how to copy sd-card whithout copying the unallocated space

I assume you have a 32 GB SD Card with a productive installation that should be handled save and a spare 16 GB SD Card. You want to transfer the productive installation to the 16 GB SD Card. I would ...
Ingo's user avatar
  • 42.2k
4 votes
Accepted

Can't boot after adding a third partition to sd card

After digging around some more.. I looked at the init_resize script and noticed that the disk id was being replaced in /etc/fstab. Apparently, when a new partition is created, the disk id is changed, ...
Richard's user avatar
  • 131
4 votes
Accepted

Why won't my raspberryPi boot if I use parted to adjust the partition?

To summarize the comment section: we don't know why parted changes the disk identity, but can only guess (or rather speculate). Anyway, this change made by parted has the undesired side effect that ...
TheDiveO's user avatar
  • 1,591
4 votes
Accepted

How to use external flash drive as raspberry pi 3 root storage?

You can put your filesystem on an external drive, there are instructions to use an external drive to boot your Pi. See https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md ...
Milliways's user avatar
  • 60.4k
4 votes
Accepted

using linux command line to format and partition an sd card for raspberry pi

do I still need a fat32 partition Yes, that is required for booting. The Raspbian card layout is much simpler than the NOOBs one though; there are two partitions, one little vfat one for the boot ...
goldilocks's user avatar
  • 59.2k
4 votes

Headless wpa_supplicant etc/wpa_suuplicant vs /boot

At boot Raspbian will copy wpa_supplicant.conf from the FAT partition containing the bootloader etc. overwriting any existing file in /etc/wpa_supplicant/ otherwise /etc/wpa_supplicant/wpa_supplicant....
Milliways's user avatar
  • 60.4k
3 votes

How to shrink the size of your sd card before using dd to backup your sd card

Working with Raspberry Pi SD cards is painful on Windows. I suggest using a gparted Live CD (based on Linux) to modify RPi partitions. You can boot from such a disk without touching your Windows ...
flakeshake's user avatar
  • 6,213
3 votes

Can't boot after adding a third partition to sd card

Thanks to Richard for giving this to the community. I stumbled also over this problem and was looking for a solution for hours. For those who are not so familiar here a step by step description to ...
Ingo's user avatar
  • 42.2k
3 votes

btrfs root filesystem on raspbian

A lot has changed since the answer from @Piskvor-left-the-building. Let me list the changes: the config.txt and cmdline.txt files have been changed from /boot/ to /boot/firmware/ directory. BTRFS ...
redEye's user avatar
  • 31
3 votes

What's the difference between UUID and PARTUUID?

It is about layers of abstraction. The core difference is physical-storage vs logical-storage identification. The PART-UUID is for raw physical storage partitions and is a feature of GPT partition ...
Max Power's user avatar
  • 131
3 votes

Editing Pi 3 System files on SD outside Linux?

Try booting a live CD on your laptop. That gives you a Linux system that can edit anything on any Raspberry Pi SDCard. You can get a live CD from: https://www.raspberrypi.org/downloads/raspberry-pi-...
Dougie's user avatar
  • 5,321
3 votes

How do I expand the file system on a Raspberry Pi 4 manually?

From the additional information you posted it appears you are using NOOBS (as the error message suggested). I don't know why the Foundation continues to recommend NOOBS - the experienced users on ...
Milliways's user avatar
  • 60.4k
3 votes

How do I expand the file system on a Raspberry Pi 4 manually?

It is doable without a third-party computer, but is tricky. Back-up first. You can resize the partitions with fdisk alone, by deleting them and recreating them at exactly the right locations. Write ...
b0fh's user avatar
  • 131
3 votes

automate filesystem expansion - booting from a USB Drive (8GB Image burned to 32GB USB)

On the very first boot of a virgin Raspbian image there is running a script that you can find in /boot/cmdline.txt before booting first time. This is from Rasbian Buster Lite 2020-02-13: console=...
Ingo's user avatar
  • 42.2k
3 votes
Accepted

Recover an ext4 due to the super block flag

In general, this is an indication of a dying sd card. What happens is, that fsck tries to recover the journal, tries to write the superblock, but then finds that the superblock is not updated. If you ...
Ljm Dullaart's user avatar
  • 2,521
2 votes

Shrinking partition for backup

Another alternative is to use pishrink PiShrink is a bash script that automatically shrinks a pi image that will then resize to the max size of the SD card on boot. This will make putting the image ...
framp's user avatar
  • 900
2 votes

Bad magic number in super-block when trying to resize RPi image

Well, about 8 years later, I stumbled across a similar problem, so I'm posting the solution for anyone out there. You are running resize2fs on the loop block device, you're supposed to run it on the ...
php_nub_qq's user avatar
2 votes

Can I automate raspi-config partition resize?

I was able to automate partition expansion to 100% of remaining space with this command: sudo raspi-config nonint do_expand_rootfs You're not done until after a reboot. sudo reboot
ThisClark's user avatar
  • 171
2 votes
Accepted

Move 16GB SD NOOBS Raspbian to 64GB Micro SD for a new B+

I just successfully moved from a 6GB NOOBS install to 64GB card. My install didn't have a Swap partition. This meant the other answers here didn't provide me with the information I needed. The steps ...
Davie Brown's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible