Linux for Radio Astronomy

Extracting ISO from bootable SD card

If you already have a bootable SD card with Ubuntu, you can extract or recreate an ISO image from it in a few ways depending on what you want to do.

Here are the main options:


đź§© 1. Make an ISO image from the SD card (byte-for-byte copy)

If your goal is to create an ISO file from the SD card (for example, to duplicate or back it up):

On Linux or macOS:

  1. Insert the SD card and identify its device name:lsblk Example output might show something like /dev/sdb (⚠️ don’t use a partition like /dev/sdb1).
  2. Run dd to make an image file:sudo dd if=/dev/sdX of=ubuntu_backup.iso bs=4M status=progress sync Replace sdX with your actual SD card device (e.g., /dev/sdb).
  3. You’ll now have a full disk image (ubuntu_backup.iso) in your current directory.

đź’ˇ Technically this produces a .img file, but you can rename it to .iso â€” it behaves the same for bootable Linux images.


🪟 2. On Windows

Use a GUI tool like:

  • Win32 Disk Imager
  • balenaEtcher (for writing, not reading)
  • HDD Raw Copy Tool
  • USB Image Tool

Example with Win32 Disk Imager:

  1. Insert the SD card.
  2. Open Win32 Disk Imager.
  3. Choose your SD card drive letter.
  4. Click the folder icon → choose a destination (e.g., ubuntu_backup.img).
  5. Click Read to copy the SD card to a file.

đź§° 3. Extract just files (not ISO)

If you just want to get files from the SD card:

  • Mount it:sudo mount /dev/sdX1 /mnt
  • Then copy files normally:cp -r /mnt ~/ubuntu_files This gives you access to the filesystem but not a bootable ISO.

đź§  Summary

GoalMethodOutput
Full bootable copydd if=/dev/sdX of=ubuntu_backup.iso.iso or .img
File access onlymount /dev/sdX1Folder of files
Windows GUI backupWin32 Disk Imager → “Read”.img

Win32 Disk Imager sometimes can’t read Linux-formatted bootable drives because:

  • Ubuntu SD cards use multiple partitions (often ext4 and FAT32).
  • Windows only “sees” the first FAT32 boot partition.
  • The rest (rootfs, EFI, etc.) are invisible to Windows tools unless you use Linux-aware software.

Let’s fix that. You have a few solid options depending on what you have available:


🧩 Option 1 — Use Linux (Recommended)

If you can boot any Linux system (even from a live USB), this is the most reliable way.

  1. Insert the SD card.
  2. Find its device name:lsblk Example:sdb      14.9G ├─sdb1   256M  vfat   BOOT └─sdb2   14.6G  ext4   rootfs
  3. Create a full disk image:sudo dd if=/dev/sdb of=~/ubuntu_sd_backup.img bs=4M status=progress sync (replace /dev/sdb with your device name — not /dev/sdb1!)
  4. You’ll now have a perfect image (ubuntu_sd_backup.img), which can be renamed to .iso if desired.

You can later write it back with:

sudo dd if=~/ubuntu_sd_backup.img of=/dev/sdb bs=4M status=progress

💾 Option 2 — Use Windows with a Linux-aware tool

Windows on its own can’t read ext4 partitions, so you need something smarter than Win32 Disk Imager.

âś… Tools that work:

  • HDD Raw Copy Tool — makes a bit-for-bit copy, works perfectly even with Linux partitions.
  • DiskGenius (free version) — can clone or image entire drives.
  • USB Image Tool — another simple option for full SD copies.

Choose “Read” or “Backup” and select the whole device (not a partition).


đź§° Option 3 — Use WSL (Windows Subsystem for Linux) (if you have it)

If you’ve installed Ubuntu in WSL2 on Windows:

  1. Open PowerShell as Administrator and run:wmic diskdrive list brief Find your SD card device path (e.g., \\.\PhysicalDrive2).
  2. Then in WSL:sudo dd if=/mnt/d/\\.\PhysicalDrive2 of=/mnt/d/ubuntu_sd_backup.img bs=4M status=progress (Use your Windows drive path where you want to save it.)

⚙️ Option 4 — Boot the same SD card in another computer

If you can boot the SD card into Ubuntu on any PC:

  1. Plug in a USB drive.
  2. Then run:sudo dd if=/dev/mmcblk0 of=/media/usb/ubuntu_sd_backup.img bs=4M status=progress sync (/dev/mmcblk0 is usually the SD card device name.)

đź§  Summary

Tool / MethodWorks onCan read ext4Makes full bootable image?
Win32 Disk ImagerWindows❌❌ (FAT partition only)
HDD Raw Copy ToolWindowsâś…âś…
Linux ddLinuxâś…âś…
WSL ddWindows (with WSL2)âś…âś…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.