| Step | Linux/macOS | Windows | 
|---|---|---|
| Insert SD Card | Insert the Raspberry Pi SD card into your computer. | Insert the Raspberry Pi SD card into your computer. | 
| Identify SD Card | Use diskutil list(macOS) orlsblk(Linux) to find the device identifier (e.g.,/dev/sdb). | Skip to the next step as Win32 Disk Imager handles this. | 
| Create Backup | Run: sudo dd if=/dev/sdX of=~/raspberry_pi_backup.iso bs=4M(replace/dev/sdXwith the correct device identifier). | Use Win32 Disk Imager: Select the SD card, choose a save location, and click "Read" to create the backup. | 
| Verify Backup | Check the size of the ISO file and optionally mount it to verify the contents. | Check the size of the ISO file and optionally mount it to verify the contents. | 
| Restore (Optional) | To restore, run: sudo dd if=~/raspberry_pi_backup.iso of=/dev/sdX bs=4M. | Use Win32 Disk Imager: Select the ISO file and write it to the SD card. | 
| Notes | The ddcommand is powerful, so double-check device identifiers to avoid mistakes. Ensure you have enough storage space for the.isofile. | The .isofile will be the size of the SD card, so make sure you have enough storage space. | 
Thursday, August 8, 2024
how to backup iso using cli
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment