Making Disk Image Backups

I know that this forum is about manjaro so thats why i came here, I have made a raspberry pi os and i wanna take the hard drive and make a image out of it but when i use gnome disk utility it wants to make a image of even the unallocated sections of the hard drive, what software would i use to make a image of the allocated partitions only on manjaro? i know that win32diskimager will do it but i dont have access to a windows computer. Any help will be appreciated

I guess win32diskimager just handle images. That is exactly what dd does.

Have look here: dd - ArchWiki

Simple cloning a partition to an image file:

dd if=/dev/sda1 of=/path/to/sda1_image.img status=progress

ok there is 2 partitions i want in one image what do i do?

dd if=/dev/sdb1 if=/dev/sdb2 of=/path/to/sda1_image.img status=progress

will this work?

No you need to set end sector.

what would i enter for these? sorry im noob

   sudo fdisk -l /dev/sdb
    Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
    Disk model: GZX202          
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
    Disklabel type: dos
    Disk identifier: 0x32afe927

    Device     Boot  Start      End  Sectors  Size Id Type
    /dev/sdb1         8192   532479   524288  256M  c W95 FAT32 (LBA)
    /dev/sdb2       532480 10561535 10029056  4.8G 83 Linux

This should work:

dd if=/dev/sdb of=/path/to/sdb_image.img status=progress count=10561535

alright thanks ill let you know if this works mate

If that doesn’t work you can use Clonezilla in partition mode, but you’ll have to decipher the funky ncurses interface. Takes most people a little while to figure out. Spend a few minutes with the documentation helps. Also, never forget that the on-screen menus mean exactly what they say.

However, once you figure out how to tell Clonezilla what you want it to do, it’s reliable as rock and very efficient. I’ve been using it for more than ten years, and It’s the only cloning utility that has never lied to me.

What you’re trying to do is to replicate this:

:innocent:

Thanks for you help bro

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.