Thanks for that, I just did all that for my Pi 4 8gb I just put into my newly arrived DeskPi case. It works and looks great. I had two small issues when building it. 1st, the stand offs for the low profile ice tower for this case were too short. Luckily I had the right size ones from an older ice tower that I'm not currently using. 2nd was that this then made a 19mm standoff too long, so I had to cut it shorter. Once those were solved it all went together correctly. I installed the variable fan speed script and it works great too. I ran stressberry and the temp stayed under 60deg. I have a 120gb ssd in it and booting from it works also. Seq-write: 283705, random-write: 14499 and random-read: 16582.
Maybe a little oversized for raspberry: the burning tools "Brasero" and "K3b" could be the solution you are looking for. They are classical cd/DVD burning tools (like e.g. Nero under Windows). Pretty a long time since I used these tools, but as far as I remember they offer an option "write to IMG file"
Hi! Have you tried using "disks" to both create and restore img backups for the os? That's what I usually do... Just open it, click on SD card and then the 3 dots up in the right corner to find options for both creating and restoring img files... And regarding "expanding filesystem" to use all space available in the card... This can be done by opening raspi-config in terminal and then go to "advanced options"... I hope this was helpful. Keep up the good work and Merry Christmas from Sweden!
gnome disk utilities runs on Pi4 and you can make a disk image from from an external disk drive. So I use SD card copier to create an image on an external card, then disk utilities to create the disk image. It is a two program step, no terminal, and all on the Pi4.
dd if=/dev/mmcblk0 of=/path/to/backup.img conv=sync status=progress That's the only command you need to do a backup as fast as possible. To write back do dd if=/path/to/backup.img of=/dev/mmcblk0 conv=sync status=progress The flag "conv=sync" is important, because it will fill up unused space with 0, so it's as much compatible as possible. Your img output will be as big, as your SD-Card, USB-Stick or whatever you used for your system. You can shrink the img by hand, which is fine, but you've to use g/parted and maybe some other tools. There's a way to backup only the used space, but it could be hard to get 100% handy with it.
I recently found redo rescue, a bootable USB (for x86 standard PC's) that seems to be able to image anything. Save locally or to network location. The image is only the size of the occupied space. I find I'm using it every day.
Nice one, I was getting so frustrated trying to follow videos where they go fast. I need to put a custom os on my ssd drive that’s installed on the pi.
i usually use sd copier and keep a copy of the OS on an extra micro SD card, if something goes wrong, i copy that micro sd card to what ever drive i need it on. not the same as having a image file that you can move around and send to ppl, but it works for my personal usage of having a copy.
This was the method I settled on. Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4. th-cam.com/video/00ck25k_lgw/w-d-xo.html
One issue is that the image (even though only ~3GB may be used) must then be written to a different device that is equal to or greater than the original device. Fine if your device is
I chose an 8GB device because it’s enough space for my OS plus any changes. I have tried 4GB in the past but it is never enough. Any storage device I would choose to put it onto would be in excess of 32GB. I have compressed images in the past.
@@leepspvideo I was referring to the size in general. So much of an imaged SDCard or USB or SSD drive is empty space. I meant that if you have an issue, and had backed up a 32 GB device, and you didn't have a 32 handy, you couldn't restore it to a 16, for example, even if your used data on the image was only 8 GB. You'd have to restore it to a 32 or larger.
The Ubuntu Disks app has a Create Disk Image and Restore Disk Image. You click on the Disk you want to work with then click on the 3 dots at the top and use the pull down menu.
Thanks, this was the method I settled on. Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4. th-cam.com/video/00ck25k_lgw/w-d-xo.html
hi there the way make it in linux is by using gnome-disk-utility (sudo apt install -y gnome-disk-utility) run it, choose the usb or sdcard u want to backup and the go at the 3 dots and choose "Create disk image" its the most reliable way I have found till now after that u can flash the image to any usb sdcard or whatever u want to save space after that u can use Ark sudo apt install -y ark and compress it to 7z. My 64 gb image was around 35gb hope it was helpfull :)
Hi Lee. There is an informative guide in the Raspberry Pi documentation that has more info on creating backups. The link is here: www.raspberrypi.org/documentation/linux/filesystem/backup.md. Alternatively, you could install Timeshift, which basically allows you to create backups on the SD card on your Pi. If for some reason the SD card doesn’t boot, you could insert a usb stick with Raspberry Pi OS, install Timeshift again and then retrieve the backup on the broken SD card.
Clonezilla can backup and restore an entire sd card, or any device/filesystem. It can run as a bootable USB device or as an installed program. As with anything, there is a bit of learning curve, but after you make your first backup, the rest is easy. On a daily basis I use Lucky Backup. It takes just a little effort to set up, and it can be set to run on a schedule. Thank you for all your videos, I have learned much from you about using and abusing a Pi. Happy Holidays, wishing you (and everyone) a better 2021.
How dare you read my mind!! Haven't watched yet but I've been trying to backup my ROS as card to restore to a USB drive or just pop that as card in a card reader and have it boot. My Pi 4 can boot USB but I cant figure out how to take my SD card and make it USB bootable. I've tried copying over USB boot files but still no dice.
Hello, thanks again for your videos. what you whant is something i wanted too. i swap to much differents oses on my pi's. i still use shell to backup and restore all my oses (variants, arch, debian, stock raspbian, netbsd). this is something i will have to work on soon for work and i can open source it. can you list maybe to me some "requirements" and maybe your ideas on some GUI if you can. it could help me. i'm planning to make a portable program for ARM that could do that for my arm devices(pinebook pro, raspberry pi...). simple gui (from, to) that is capable of using images from network or local images and prepare drives.
Wouldn't it be possible to fork something like etcher (it's an electron app), and creating an image ?!? Including all the necessary command line mambo jambo 🤔
When you write an image to a block device, you are simply copying the stream from a file to a device, including the mbr and partition table, so there is no necessity to "erase" the destination device first.
Not at all. If you write an small image (without "fullsync") to a big block device, if there are other bootable partitions behind the small image, etc. You can use sync and write a 0 to any sector of the block device, or your erase/format the device an resize the new position.
Those USB HDMI capture devices from the other vid have been disappearing fast, when I first looked there were 12 left, by the time I got to order one there were only 3 left!
Once setup it's really simple, just download and install a virtual machine (vmware workstation) in Windows or Mac. Then mount a folder where you dump an image you have made with Win32diskimager, then open folder in VM, in virtual machine open terminal in that folder (terminal from here) then sudo ./pishrink.sh your_image_name.img. DONE Not everyone has a 8 gb usb disk, or several of them, with this you can shrink it to the bare minimal. In raspi-config you can get the unallocated disk space back (or with gparted) Again, once setup, every .img can be shrunk in the future with minimal effort
On the Mac I was able to achieve this with SD Clone by Twocanoes software, I wanted to have a copy of my Arcade sd card so when I meet with it if something goes wrong I can go back to the original
I am puzzled why you don't use the simplest method - use Raspberry Pi OS and from the Menu, choose Accessories/SD Card Copier. That is the way I clone all versions of configured RpiOS. What am I missing?
I have a retroflag case and use an ssd to boot. I'm having trouble following the same steps and can't produce an image file. Also tried the desktop method and my system won't recognize the raspberry boot drive (ssd) so i can't create a copy of it.
Two alternatives here. Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4. th-cam.com/video/00ck25k_lgw/w-d-xo.html Pi-Safe. Raspberry Pi 4 / Pi 400. Backup, Shrink and Restore SD cards and USB devices. th-cam.com/video/XP6ycUR9Ih0/w-d-xo.html
This is my latest method Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4. th-cam.com/video/00ck25k_lgw/w-d-xo.html
@@jyvben1520 Yeah but rsync isn't a way to get a working 1:1 external backup. Rsync is more a way of data protection, from loosing, deleting or simmilar. It's harder to get a working/bootable media from a rsync backup. An img is more handy and can be written to another media. Edit: The biggest problem is the partitiontable, filesystem and filesystemidentifier, etc.
@@jyvben1520 Nope, you would destroy the whole backup, if the filesystem has changed in any way, which can happen at any time. An corrupted sector on the SD-card, would corrupt any other data in your backup, because your rsync data don't know anything about it. There are tools to do your way, but they cost a lot, because it needs more then only copy files to another place, image them and write the image to a blocldevice back. You've to scan the filesystem all day (which leads to a double io load on any operation you take) and sync them with your backup. My explanation is not 100% accurate, because English is not my main language and writing on phone is not great, sry. It should only give you a better idea of what you've to watch and keep in mind, if you like to take a real backup of an operating system and not only spy files to another path.
Hi Lee got PI rack but can't get fan and light to work at the same time. Can you give me the pin Position for the 4 cable from the fan to the Pi. thanks in advance.
I think I showed a close up in this video 52Pi Rack tower cluster case with 120mm Fan. Raspberry Pi 4. Great SSD solution. th-cam.com/video/C-NSIISkFfI/w-d-xo.html
@@Lukes-Tech That's half true, if I'm correct. SD card copier do "dd if=/dev/mmcblk0 of=/dev/mmcblk1...", which is the essential way of doing an backup in any way on Linux. I may be wrong with sd card copier, but I don't know any tool, which use another way.
please help! I haven't been able to find a video to really help me with my issue. I downloaded a 32gb image, when attempting to flash it to a 32gb sd card, it says that the file is too large, a few hundred mb's too large. I tried shrinking the image file using ubunto and i keep getting an error message, can you please help!!??
cool something i was looking for. Question though? if I have a 16 GB SD Card with for example open media vault and some Portainer configs and want to move it to a larger SSD like 128 GB will it use the whole 128 GB if i do it your way and will i be able to use the SSD than on my Raspberry pi ? I have a Argon Case and would be able to use the SSD in it only but already have a configuration on my SD Card wanting to get more space.
Gparted can expand the partition Resizing expanding a Partition with Gparted. Raspberry Pi 4. Custom builds Retropie & more th-cam.com/video/7ybNDevyzFM/w-d-xo.html
@@leepspvideo thank you for the tip and explaining video. Will this also work with a lite install ? I didn't install the full raspoan on the sd only the life version since I wanted to work on the command line only.
@@leepspvideo I mostly just image to a cheap spare disk. It's complicated. I tend to either use dd if=/dev/sda ibs=4096 | gzip > partition.image.gz conv=noerror (requires experimentation and testing) or partclone.ext4. You generally have to use unmounted volumes. wiki.debian.org/partclone
It doesn’t do everything I want. This was the method I settled on. Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4. th-cam.com/video/00ck25k_lgw/w-d-xo.html
Hi , Just wanted to let you know: I was able to Reach a very stable 2.3Ghz on my Pi 400 , I just entered arm_freq=2200 and the over_voltage=8 without the force turbo and I dont know why but when it booted inot(Twister OS) I was running at 2.3Ghz with incredible stability Here's the link in case you need it: th-cam.com/video/aa5frE3H7Hg/w-d-xo.html TH-cam playback ,window switching etc was all very smooth with the GPU over clocked to 700Mhz , I dunno if its just me or people are overlooking it
I have a cron job that runs each night and creates an image of my 32GB microSD onto my NAS using dd The image can be restored to another device using RasPi imager. sudo dd if=/dev/mmcblk0p2 of=/home/me/shares/rn314/backup/Pi/Pi4SG-MicroSD-$(date +%Y.%m.%d).img bs=1M Using find to delete images more than a few days old keeps the storage space to a minimum.
I do about the same on my Mac, as an extra step I zip the volume. sudo dd bs=1m if=/dev/rdisk4 | gzip > ~/Desktop/raspbian_backup.img.gz I think you can do the same on Linux. My guess for your example: sudo dd bs=1M if=/dev/mmcblk0p2 | gzip > /home/me/shares/rn314/backup/Pi/Pi4SG-MicroSD-$(date +%Y.%m.%d).img
@@hammockdweller works for me after adding .gz to the file name. File size dropped from 31MB to about 15MB, whereas the time to create an image by itself is about 14 mins, once I add the gzip section, it blows out to 45 mins. So while I have plenty of room on my NAS I might take the bigger file size to reduce the runtime - but at 2am local time when I run it, there’s little else going on anyway.
I wrote "pi-safe" to easily backup a raspberry pi to an image files right on the pi. I could not find a good tool to do this when I needed to make restore points throughout a homebridge project. www.github.com/richardmidnight/pi-safe. Note, this is a simple gui on my CLI tool 'sd' Peace Richard
Most Pi operating systems have a boot partition. If you format with raspberry Pi imager it will erase the partitions. Some operating systems use many partitions Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4. th-cam.com/video/00ck25k_lgw/w-d-xo.html
Hey lee you can use in Raspberry Pi os Pi Power tool. You can install from Pi apps and It gives you an option "sd to IMG"
Thanks for that, I just did all that for my Pi 4 8gb I just put into my newly arrived DeskPi case. It works and looks great. I had two small issues when building it. 1st, the stand offs for the low profile ice tower for this case were too short. Luckily I had the right size ones from an older ice tower that I'm not currently using. 2nd was that this then made a 19mm standoff too long, so I had to cut it shorter. Once those were solved it all went together correctly. I installed the variable fan speed script and it works great too. I ran stressberry and the temp stayed under 60deg. I have a 120gb ssd in it and booting from it works also. Seq-write: 283705, random-write: 14499 and random-read: 16582.
Maybe a little oversized for raspberry: the burning tools "Brasero" and "K3b" could be the solution you are looking for.
They are classical cd/DVD burning tools (like e.g. Nero under Windows).
Pretty a long time since I used these tools, but as far as I remember they offer an option "write to IMG file"
Hi!
Have you tried using "disks" to both create and restore img backups for the os? That's what I usually do...
Just open it, click on SD card and then the 3 dots up in the right corner to find options for both creating and restoring img files...
And regarding "expanding filesystem" to use all space available in the card...
This can be done by opening raspi-config in terminal and then go to "advanced options"...
I hope this was helpful.
Keep up the good work and Merry Christmas from Sweden!
gnome disk utilities runs on Pi4 and you can make a disk image from from an external disk drive. So I use SD card copier to create an image on an external card, then disk utilities to create the disk image. It is a two program step, no terminal, and all on the Pi4.
dd if=/dev/mmcblk0 of=/path/to/backup.img conv=sync status=progress
That's the only command you need to do a backup as fast as possible.
To write back do
dd if=/path/to/backup.img of=/dev/mmcblk0 conv=sync status=progress
The flag "conv=sync" is important, because it will fill up unused space with 0, so it's as much compatible as possible. Your img output will be as big, as your SD-Card, USB-Stick or whatever you used for your system.
You can shrink the img by hand, which is fine, but you've to use g/parted and maybe some other tools.
There's a way to backup only the used space, but it could be hard to get 100% handy with it.
I recently found redo rescue, a bootable USB (for x86 standard PC's) that seems to be able to image anything. Save locally or to network location. The image is only the size of the occupied space. I find I'm using it every day.
1 - rezise the ext4 partition
2 - backup the ssd/sd card to image
3 - zip or zx the file
Otherwise you have a very big backup image
Use fdisk and dd
In twister OS there is the build in "disks" utility which can create images from drives.
gnome-disk-utility :)
Nice one, I was getting so frustrated trying to follow videos where they go fast. I need to put a custom os on my ssd drive that’s installed on the pi.
This is my latest custom os
My Linux setup part 3 64bit KDE plasma Raspberry Pi 4 / 400. Download Links.
th-cam.com/video/dkd3rZyiuE0/w-d-xo.html
i usually use sd copier and keep a copy of the OS on an extra micro SD card, if something goes wrong, i copy that micro sd card to what ever drive i need it on.
not the same as having a image file that you can move around and send to ppl, but it works for my personal usage of having a copy.
This was the method I settled on.
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
One issue is that the image (even though only ~3GB may be used) must then be written to a different device that is equal to or greater than the original device. Fine if your device is
I chose an 8GB device because it’s enough space for my OS plus any changes. I have tried 4GB in the past but it is never enough. Any storage device I would choose to put it onto would be in excess of 32GB. I have compressed images in the past.
@@leepspvideo I was referring to the size in general. So much of an imaged SDCard or USB or SSD drive is empty space. I meant that if you have an issue, and had backed up a 32 GB device, and you didn't have a 32 handy, you couldn't restore it to a 16, for example, even if your used data on the image was only 8 GB. You'd have to restore it to a 32 or larger.
The Ubuntu Disks app has a Create Disk Image and Restore Disk Image. You click on the Disk you want to work with then click on the 3 dots at the top and use the pull down menu.
Thanks, this was the method I settled on.
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
you could just use the partition tool to make, and restore all the partition images, extend if needed
shrink down the partitions to minimum, there should be also a way to have all the partitions written to the same image file, not multiple
hi there the way make it in linux is by using gnome-disk-utility (sudo apt install -y gnome-disk-utility) run it, choose the usb or sdcard u want to backup and the go at the 3 dots and choose "Create disk image" its the most reliable way I have found till now after that u can flash the image to any usb sdcard or whatever u want to save space after that u can use Ark sudo apt install -y ark and compress it to 7z. My 64 gb image was around 35gb hope it was helpfull :)
Hi Lee. There is an informative guide in the Raspberry Pi documentation that has more info on creating backups. The link is here: www.raspberrypi.org/documentation/linux/filesystem/backup.md. Alternatively, you could install Timeshift, which basically allows you to create backups on the SD card on your Pi. If for some reason the SD card doesn’t boot, you could insert a usb stick with Raspberry Pi OS, install Timeshift again and then retrieve the backup on the broken SD card.
It seems like a lot of trouble. I use an SSD and back that up to a micro SD once a week. I have two Micro SD and alternate so I have two good backups.
Clonezilla can backup and restore an entire sd card, or any device/filesystem. It can run as a bootable USB device or as an installed program.
As with anything, there is a bit of learning curve, but after you make your first backup, the rest is easy.
On a daily basis I use Lucky Backup. It takes just a little effort to set up, and it can be set to run on a schedule.
Thank you for all your videos, I have learned much from you about using and abusing a Pi. Happy Holidays, wishing you (and everyone) a better 2021.
Clonezilla only seems to be x86 compatible. This is often the issue with Linux on the Pi as it runs on Arm.
@@leepspvideo I didn't focus on Arm so much as Linux. My mistake
How dare you read my mind!!
Haven't watched yet but I've been trying to backup my ROS as card to restore to a USB drive or just pop that as card in a card reader and have it boot.
My Pi 4 can boot USB but I cant figure out how to take my SD card and make it USB bootable.
I've tried copying over USB boot files but still no dice.
Pity Clonezilla doesn't work on ARM (yet?), perfect program for it.
Hello, thanks again for your videos. what you whant is something i wanted too. i swap to much differents oses on my pi's. i still use shell to backup and restore all my oses (variants, arch, debian, stock raspbian, netbsd). this is something i will have to work on soon for work and i can open source it. can you list maybe to me some "requirements" and maybe your ideas on some GUI if you can. it could help me. i'm planning to make a portable program for ARM that could do that for my arm devices(pinebook pro, raspberry pi...). simple gui (from, to) that is capable of using images from network or local images and prepare drives.
You answered your own question, Use RasPi Imager on Linux
I use Win32DiskImager on Windows and Read the Card
Raspberry Pi imager only goes image to disk. He's was asking about a way for a disk to image file in Linux.
@@MysticWhiteDragon. Sorry, you are right, just to to Read with RasPi Imager, and no go
When you restore the image, do you have to extend the partition once you boot up? I would think so but thought I'd ask.
Yeah you can do that with Gparted.
Wouldn't it be possible to fork something like etcher (it's an electron app), and creating an image ?!? Including all the necessary command line mambo jambo 🤔
etcher can clone drives.
When you write an image to a block device, you are simply copying the stream from a file to a device, including the mbr and partition table, so there is no necessity to "erase" the destination device first.
Not at all. If you write an small image (without "fullsync") to a big block device, if there are other bootable partitions behind the small image, etc.
You can use sync and write a 0 to any sector of the block device, or your erase/format the device an resize the new position.
You got a sub. Request you to do a wor video on Raspberry pi 3b+. I keep getting oobe errors
I don’t have a Pi 3. Try on the Discord.
Did you try the 720 resolution tip?
@@leepspvideo yes. I even tried the max clock speed, also tried to bypass oobe with the command prompt. No luck.
Those USB HDMI capture devices from the other vid have been disappearing fast, when I first looked there were 12 left, by the time I got to order one there were only 3 left!
Been looking for this! Thanks Lee!
Once setup it's really simple, just download and install a virtual machine (vmware workstation) in Windows or Mac. Then mount a folder where you dump an image you have made with Win32diskimager, then open folder in VM, in virtual machine open terminal in that folder (terminal from here) then sudo ./pishrink.sh your_image_name.img. DONE Not everyone has a 8 gb usb disk, or several of them, with this you can shrink it to the bare minimal. In raspi-config you can get the unallocated disk space back (or with gparted)
Again, once setup, every .img can be shrunk in the future with minimal effort
btw: you can write the image with win32diskimager again and THEN reclaim you space of the drive used
On the Mac I was able to achieve this with SD Clone by Twocanoes software, I wanted to have a copy of my Arcade sd card so when I meet with it if something goes wrong I can go back to the original
I am puzzled why you don't use the simplest method - use Raspberry Pi OS and from the Menu, choose Accessories/SD Card Copier. That is the way I clone all versions of configured RpiOS. What am I missing?
I wanted to back up a custom os image on my NAS drive. That way I can write the image to the storage of my choice whenever I wish.
I have a retroflag case and use an ssd to boot. I'm having trouble following the same steps and can't produce an image file. Also tried the desktop method and my system won't recognize the raspberry boot drive (ssd) so i can't create a copy of it.
Two alternatives here.
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
Pi-Safe. Raspberry Pi 4 / Pi 400. Backup, Shrink and Restore SD cards and USB devices.
th-cam.com/video/XP6ycUR9Ih0/w-d-xo.html
what about making a batch file with all the install commands in? is that possible ... ?
im gonna keep saying this till it happens
Debloat windows
There is an sd cart copier on rasbian os i haven't try it but i guess it could do as the sd cart copier .so u don't need win10
This is my latest method
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
I just use SD card copier to create a bootable system for backup. Only thing I need to find out is how to make it run automatically each night.
Cronjob is your way.
so each night you want to copy the difference to the backup, writing gigabytes each night would be bad !
rsync might be a solution. incremental option
@@jyvben1520 Yeah but rsync isn't a way to get a working 1:1 external backup. Rsync is more a way of data protection, from loosing, deleting or simmilar. It's harder to get a working/bootable media from a rsync backup. An img is more handy and can be written to another media.
Edit: The biggest problem is the partitiontable, filesystem and filesystemidentifier, etc.
@@PsychEngel first you do sd copy once which takes care of boot, then use rsync for each rpi partition
@@jyvben1520 Nope, you would destroy the whole backup, if the filesystem has changed in any way, which can happen at any time. An corrupted sector on the SD-card, would corrupt any other data in your backup, because your rsync data don't know anything about it.
There are tools to do your way, but they cost a lot, because it needs more then only copy files to another place, image them and write the image to a blocldevice back. You've to scan the filesystem all day (which leads to a double io load on any operation you take) and sync them with your backup.
My explanation is not 100% accurate, because English is not my main language and writing on phone is not great, sry. It should only give you a better idea of what you've to watch and keep in mind, if you like to take a real backup of an operating system and not only spy files to another path.
Very useful
Hi Lee got PI rack but can't get fan and light to work at the same time. Can you give me the pin Position for the 4 cable from the fan to the Pi. thanks in advance.
I think I showed a close up in this video
52Pi Rack tower cluster case with 120mm Fan. Raspberry Pi 4. Great SSD solution.
th-cam.com/video/C-NSIISkFfI/w-d-xo.html
Is anyone using Raspbian / Raspi OS 64 Bit? I know it’s in beta and it doesn’t have some of the camera utility applications.
SD card copier ? Works ok
Yeah but it doesn't make it into a IMG file.
@@Lukes-Tech That's half true, if I'm correct. SD card copier do "dd if=/dev/mmcblk0 of=/dev/mmcblk1...", which is the essential way of doing an backup in any way on Linux. I may be wrong with sd card copier, but I don't know any tool, which use another way.
What about the boot partition? How can I copy it? Or does raspberry imager create a new boot partition?
This method copied all of the sd card so whatever you image it onto boots the same as the original sd card
please help! I haven't been able to find a video to really help me with my issue. I downloaded a 32gb image, when attempting to flash it to a 32gb sd card, it says that the file is too large, a few hundred mb's too large. I tried shrinking the image file using ubunto and i keep getting an error message, can you please help!!??
Try this
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
cool something i was looking for. Question though? if I have a 16 GB SD Card with for example open media vault and some Portainer configs and want to move it to a larger SSD like 128 GB will it use the whole 128 GB if i do it your way and will i be able to use the SSD than on my Raspberry pi ? I have a Argon Case and would be able to use the SSD in it only but already have a configuration on my SD Card wanting to get more space.
Gparted can expand the partition
Resizing expanding a Partition with Gparted. Raspberry Pi 4. Custom builds Retropie & more
th-cam.com/video/7ybNDevyzFM/w-d-xo.html
@@leepspvideo thank you for the tip and explaining video. Will this also work with a lite install ? I didn't install the full raspoan on the sd only the life version since I wanted to work on the command line only.
@@fredzibulski3111 I”m not sure if it needs a gui. I think Raspi-config also allows expanding a partition
@@leepspvideo thank you for the quick reply I'll check it out
I'd use dd or gparted
Does Gparted create usuable images from an sd card?
@@leepspvideo Yes, it does
@@leepspvideo I mostly just image to a cheap spare disk.
It's complicated. I tend to either use dd if=/dev/sda ibs=4096 | gzip > partition.image.gz conv=noerror (requires experimentation and testing) or partclone.ext4.
You generally have to use unmounted volumes. wiki.debian.org/partclone
Um... why did you not use SD card copier in raspberry pi OS?
It doesn’t do everything I want.
This was the method I settled on.
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
Hey Lee you can use usb imager from pi-apps or gitlab.com/bztsrc/usbimager
Hi , Just wanted to let you know:
I was able to Reach a very stable 2.3Ghz on my Pi 400 , I just entered arm_freq=2200 and the over_voltage=8 without the force turbo and I dont know why but when it booted inot(Twister OS) I was running at 2.3Ghz with incredible stability
Here's the link in case you need it:
th-cam.com/video/aa5frE3H7Hg/w-d-xo.html
TH-cam playback ,window switching etc was all very smooth with the GPU over clocked to 700Mhz , I dunno if its just me or people are overlooking it
I think what you are looking for is USBimager by bzt. gitlab.com/bztsrc/usbimager
I have a cron job that runs each night and creates an image of my 32GB microSD onto my NAS using dd
The image can be restored to another device using RasPi imager.
sudo dd if=/dev/mmcblk0p2 of=/home/me/shares/rn314/backup/Pi/Pi4SG-MicroSD-$(date +%Y.%m.%d).img bs=1M
Using find to delete images more than a few days old keeps the storage space to a minimum.
I do about the same on my Mac, as an extra step I zip the volume.
sudo dd bs=1m if=/dev/rdisk4 | gzip > ~/Desktop/raspbian_backup.img.gz
I think you can do the same on Linux. My guess for your example:
sudo dd bs=1M if=/dev/mmcblk0p2 | gzip > /home/me/shares/rn314/backup/Pi/Pi4SG-MicroSD-$(date +%Y.%m.%d).img
@@hammockdweller works for me after adding .gz to the file name. File size dropped from 31MB to about 15MB, whereas the time to create an image by itself is about 14 mins, once I add the gzip section, it blows out to 45 mins.
So while I have plenty of room on my NAS I might take the bigger file size to reduce the runtime - but at 2am local time when I run it, there’s little else going on anyway.
I wrote "pi-safe" to easily backup a raspberry pi to an image files right on the pi.
I could not find a good tool to do this when I needed to make restore points throughout a homebridge project.
www.github.com/richardmidnight/pi-safe. Note, this is a simple gui on my CLI tool 'sd'
Peace Richard
But the SDcard reader shows up as 2 seperate partitions?
Most Pi operating systems have a boot partition. If you format with raspberry Pi imager it will erase the partitions. Some operating systems use many partitions
Raspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.
th-cam.com/video/00ck25k_lgw/w-d-xo.html
I've always used ClonZilla - clonezilla.org/