4

Everyone has their favorite solution. Mine is called image-utils. Why? open-source (and free :) small footprint - filesize & resources required for execution creates a portable image file that's easy to store for later use (or distribute) runs concurrently with your system (you can make image backups while your system is running) small image file size ...


4

This seems to be a problem with older (read: slower) SD cards. If I recall correctly, the creator had significant problems with cards that were lower than class 6. You may be able to fix the issue by running chkdsk on the card (requires admin rights). If that doesn't work, you'll probably need to buy a different SD card. At the very least I'd try a ...


3

How do I manage to get the variables $bootstrt $offstcorrect? You do not need them. You should losetup give a try. It is for beginners and will mount your images automagically. You do not have to fiddle with error prone offsets and it will simplify your script very much. For example I have used the Raspbian Buster Lite image: pc ~$ sudo losetup --find --...


3

It is quite common for two microSD cards of the same nominal size to have slightly different capacities. The "SD card copier" function that's part of the "Accessories" sub-menu will compensate for differences in card sizes provided the destination card has room for all the data on the source card. In your case, that should be no trouble at all. For ...


3

Each and every SD card, even Hard Drive always has a different amount of usable sectors. This is a common issue when cloning your expanded Raspbian and trying to rewrite it to another SD card, as it most probably has less usable sectors. The same may apply to the the exact same card, due to different sector alignments caused by partition aligning and ...


3

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 files for the operating system formated as ext4. MS Windows can only access the fat partition but you can easily symlink to a file on the fat partition from ext4. ...


2

Yes, Rpi3B systems can be run reliably 24x7 for long periods of time. No, there is no mathematical way to predict longevity that I am aware of. So you just begin and do your best to build it well. Then plan for how you would recover if one fails. Such as using Win32DiskImager to store image backups off your Rpi SD cards. I suggest you look into PiGPIO: ...


2

The SD Cards are NOT exactly the same - they obviously differ in size, and this is normal. The imaging programs copy BLOCKS from one device to another, as do dd. Win32diskImager is probably not the best, it had a number of issues with Foundation images, and Etcher is recommended. I use dd to backup my cards, they can be restored to the SAME card, and if ...


2

I think @Dougie's comment is a good approach. I don't know that there are any open source or 'free' Windows programs that will write to Raspbian's ext4 filesystem. A quick Google search (you did try that, didn't you?) has at least one link to a commercial product that claims to support writing to an ext4 file system from Windows, the "Partition Guru" NOTE: ...


2

The linux way to use MS windows like restore points is to use LVM (logical volume manager) and to take snapshots. I use it for development but unfortunately it is not direct supported by Raspbian. The disk drivers for LVM are not compiled into the kernel. So you have to load them as modules at early boot from an init ramdisk. On a default Debian system this ...


2

You've got a USB reader. Get a second SDCard for your Raspberry, build Raspbian on that second card. Boot that in your Raspberry. Mount the first SDCard in the USB reader, mount the USB reader in your small board Linux computer (which can perfectly read/write/update (or otherwise destroy) any SDCard that it sees as a /dev/mmcblk0 or /dev/sdX device. Using ...


2

I found a new recommended imager Etcher recommended by @HawaiianPi in this SD Cards issues thread. Etcher was able to image all the 3 cards without any hiccups and all 3 cards are booting in pi4 now. Win32DiskImager still doesnt work for me on the Buster image on the 16gb cards. Also etcher detected all the sd cards as having around 15.5 GB while both ...


2

You can always use a partitioning tool capable of resizing Linux partitions to make them smaller, then you only need to clone the part of the SD image which is actually occupied by your partitions. In Linux gparted is a user-friendly graphical tool you could use. If you're on Windows, search for partition managers which support Linux partitions. Don't try to ...


2

Use BalenaEtcher instead of Raspberry Pi Imager / Win32DiskImager (As Jaromanda X's comment pointed out)


1

This is NOT possible on Windows but it can be done on the Pi itself using the SD Card Copier included in Raspbian. Backup image of SD Card describes how to produce a small installable image from a running Pi. This runs on the Pi, but the can produce an image on a Windows (or any other) computer - I do this to my Mac. This initially is a little involved to ...


1

You could do backup with rsync to mounted external storage sudo mount /dev/sdb1 /mnt sudo rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt or via network (given you have both computers on the same network, set up vpn ...


1

How do I manage to get the variables $bootstrt $offstcorrect? IMHO, Your initial approach is good. I would just avoid using an hardcoded value for the sector size, just in case of ... You maybe could use sfdisk instead of fdisk: it has been developped to ease scripting. Oh, and: To do arithmetic with bash, use the syntax offst=$((bootstrt*512)) (aka double-...


1

I use the following to periodically Backup SD Card This uses losetup to mount a remote image and rsync to update the backup. My script is based on backup tool, although this has since changed. It is relatively simple to loop mount a partition in an image. The package includes an image-mount utility which can be used to mount images on the Pi (or any Linux ...


1

You can't run that stuff on a 3B+ as there isn't a version built since 2018. It won't have the kernel and bootcode for your hardware version. You'll need to ask the developer(s) what their plans are to support the latest version and whether their project is still alive. You could also ask if there's any way to upgrade their OS by booting it on an older ...


1

If you have access to a Linux system check out mvp's answer. I followed this answer as I had the same issue as you. First you will create a compressed image of the SD card. Then you will write this image to the SD card. This will fail as the image is too large for the SD card however the data that cannot be written to the SD card is empty space so ...


1

I use Etcher - i've found it more reliable than Win32DiskImager and it will write an image direct from a compressed image. https://etcher.io


1

My answer: Do it the Ubuntu Way. System is a Ubuntu 16.04 LTS on a HP Notebook 15. I shut down the RPi3 and pulled out the SD card. Plugged it into the SD card reader with an adapter It came up in nautilus File Manager as two volumes: boot and root. Eject both in nautilus. Then I plugged in the target SD card into a USB adapter It is blank - brand new....


1

to perform SD card backup: shutdown the Raspberry Pi remove the SD card insert SD card into the card reader of your linux pc (do not mount the SD card - unmount the SD card in case it got mounted automatically) run sudo dd bs=4M if=INPUT of=OUTPUT status=progress conv=fsync; sync (replace INPUT and OUTPUT according to your setup, i.e. /dev/sdX or /path/to/...


1

You can create an empty image file of any size you want. It has empty formatted partitions, one fat32 boot partition and one ext4 root partition. But you are free to create partitions as much as you like and format them as you like. Then you can mount the empty partitions and the partitions of your source SD Card and copy its files to the new image as long ...


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