11
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 ...
- 20k
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 ...
- 41.2k
3
votes
Accepted
How can I figure out why two closely related Raspberry Pi OS image files vary substantially in size despite having nearly identical folder sizes?
I would be surprised if modifying a couple of text files confused the compression algorithm to the point it produced an extra 300MB of output. So I would start by comparing the sizes of uncompressed ...
- 27.2k
3
votes
Accepted
Determining correct image size for Raspbian backup to fit only real data on rootfs
On EXT file systems, by default 5% of the space is reserved to root user, so the amount df reports in the "Available" column is reduced by those 5%. As a result, the sum of "Used" and "Available" ...
- 27.2k
3
votes
Accepted
Expand file system not needed anymore?
The answer is given in the comment of @Dougie:
First boot expands the root FS to fill the whole SDCard. That's done with /etc/init.d/resize2fs_once which runs on first boot then gets deleted. That's ...
- 41.2k
2
votes
Accepted
How to resize a partition on a Raspberry Pi image, emulated on a Mac?
Note that, following the defaults, the newly-created partition is only 3 MiB, which is smaller than the 1.9G previous partition.
Let's think about why that is.
You deleted the second partition. ...
- 57.6k
2
votes
resizing the /boot partition after no space left on device
resize2fs will resize ext2,ext3 and ext4 filesystems. Your boot partition is not any of those. It is a vfat. Therefore fatresize is the command to use.
Call me paranoid, but your remark:
gparted ...
- 2,351
1
vote
How to extend rootfs before booting
Have you already tried expanding rootfs via
sudo raspi-config
then first update and at last go for Expand Filesystem ?
This is the usual and simplest way of doing so.
Edit:
I would suggest https://...
- 21
1
vote
how to copy sd-card whithout copying the unallocated space
Copying one file system (that obviously doesn’t take up the entire disk) to another, smaller filesystem is quite a common problem, especially in these times where GB’s come in large quantities for no ...
- 63
1
vote
Accepted
Installed Raspbian and can't backup with Timeshift
As the man page suggests, try adding --snapshot-device /dev/root, or set backup_device_uuid in /etc/timeshift.json to configure it for your system.
Side note: /dev/root is a rather odd name, your root ...
- 27.2k
1
vote
Accepted
resizing the /boot partition after no space left on device
Actually, the solution was to resize the boot partition after resizing the slash partition smaller and move it right.
Resizing the boot partition needs a
mount partition on /tmp/some_dir
copy data to ...
- 267
1
vote
resizing the /boot partition after no space left on device
You have presumably "updated" from a previous release - which is NOT supported.
Buster needs a larger boot partition.
You CAN NOT do this on the Pi although it can be done on a Linux ...
- 56.8k
1
vote
SD Card Resize on 32gb SD Card Raspberry Pi
Your problem seems to be an extended partition which is only using 12.5GB.
It is unclear how you managed to get this, probably by copying a smaller SD Card.
This can be fixed on a Linux computer, it ...
- 56.8k
1
vote
Determining correct image size for Raspbian backup to fit only real data on rootfs
This is what -for now- works, I used Dmitry's answer to rework it some (curiously if I first calculated 5% and then subtracted it from original size, I got 192MB free setting ROOTFREE to 10MB):
BTOT=$...
- 125
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
resize × 12sd-card × 6
image × 5
partition × 5
raspbian-buster × 4
backup × 3
filesystem × 2
boot × 1
pi-4 × 1
linux × 1
pi-zero × 1
raspberry-pi-os × 1
raspi-config × 1
storage × 1
root × 1
file × 1