Hot answers tagged

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 ...
Seamus's user avatar
  • 21.2k
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
  • 41.9k
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 ...
Dmitry Grigoryev's user avatar
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" ...
Dmitry Grigoryev's user avatar
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 ...
Ingo's user avatar
  • 41.9k
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. ...
goldilocks's user avatar
  • 58.5k
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 ...
Ljm Dullaart's user avatar
  • 2,451
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://...
bitdruid's user avatar
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 ...
YVbakker's user avatar
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 ...
Dmitry Grigoryev's user avatar
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 ...
Philippe Gachoud's user avatar
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 ...
Milliways's user avatar
  • 58.7k
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 ...
Milliways's user avatar
  • 58.7k
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=$...
ephestione's user avatar

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