this post was submitted on 10 May 2024
31 points (97.0% liked)

Linux

48044 readers
720 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

What are we doing for disk imaging theses days?

top 26 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 5 months ago

@uhmbah
I use gnome-disks.
Then according to this german article:
gnulinux.ch/raw-images-verklei…
I reduce the images Partition to the smallest possible.
edit it's content with kpartx and remove cache, tmp and trashbin
and reduce the disk and image size with pishrink.

github.com/opensvc/multipath-t…
github.com/Drewsif/PiShrink

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

Ventoy. I love it so much, being able to have more than one bootable iso and storage on a usb.

Although, it is slower to boot the more folders you have, since it scans all folders, but this is configurable

I use nix-shell to get the ventoy cli for when I need to install it to a usb stick.

[–] [email protected] 1 points 6 months ago
[–] [email protected] 2 points 6 months ago

The native tools

[–] [email protected] 2 points 6 months ago

pv. It's just cat, with a progress meter.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

Just to throw another option out there, partclone will only copy data that is being used in a partition, without all the empty space. I don't believe it helps for encrypted partitions, but you could always just image the unencrypted filesystem with partclone to a drive with full disk encryption to work around that (and still prevent storing data unencrypted). Saves a lot of space.

Also, in the context of backups, I often prefer to use btrfs send to create and update backups through snapshots quickly and efficiently instead of imaging (though of course that requires you to use btrfs). Full imaging is pretty inefficient for my needs, and takes a lot of time.

[–] [email protected] 2 points 6 months ago

I use FSArchiver. There's nice list on Archwiki.

[–] [email protected] 3 points 6 months ago
[–] [email protected] 4 points 6 months ago (2 children)
[–] [email protected] 2 points 6 months ago

It crashes for me when I try to write a image

[–] [email protected] 3 points 6 months ago (1 children)

I like it so much I have it on my KDE boxes too.

[–] [email protected] 1 points 6 months ago

Yeah I just started using Linux half a year ago and tried a few distros and DEs, but GNOME "disks" is just the easiest way to set up auto mounting and is available on any package manager I came across so far.

[–] [email protected] 4 points 6 months ago

Definitely ddrescue. Unlike traditional dd, it can deal with failing drives, it's operation is resumable, and has some other features that's helpful. I would recommend using it even if your drive is fine.
What it produces is a byte for byte copy just like dd.

[–] [email protected] 3 points 6 months ago (1 children)

After learning how to install medicat i discovered ventoy. With ventoy you can copy and paste how ever many bootable iso files you like into it and run them all from the same drive/partition from a selectable boot menu. It's amazing, I won't be using dd anymore for boot disks.

[–] [email protected] 5 points 6 months ago (1 children)

Careful where you point that thing. I unintentionally disrupted someone's life by introducing them to ventoy. Now they have been distrohopping like crazy because of how easy it is.

[–] [email protected] 3 points 6 months ago
[–] [email protected] 11 points 6 months ago
[–] [email protected] 9 points 6 months ago (2 children)

Clonezilla and Rescuezilla The Clonezilla method takes a bit time to get used to (but I like it). Rescuezilla comes with a GUI.

[–] [email protected] 4 points 6 months ago

Clonezilla has been my goto backup / restore solution for years. I've used it on everything from RaspberryPi SD Cards to a Dell Poweredge server with PERC RAID controller (because some fool setup the wrong RAID parameters).

I didn't know about Rescuezilla though... so thanks for that.

[–] [email protected] 2 points 6 months ago (1 children)

To add to this. Take a look at the fog server project. It allows you to PXE boot and pull and push images in a automated way.

[–] [email protected] 5 points 6 months ago

Take a look at the fog server project.

Thanks. https://fogproject.org

[–] [email protected] 11 points 6 months ago

Ones I have used: GNOME Disks' create and restore image features. Possibly Mint's mintstick for writing a distro's .iso out to a USB stick. I am not too sure on that.

I assume old-school dd still works as well, which might be a better option for scripted backups or minimal systems.

[–] [email protected] 4 points 6 months ago

DD is the best for 1-1 copying, but I like to use CloneZilla, because it can compress and encrypt the images.

[–] [email protected] 20 points 6 months ago (2 children)
[–] [email protected] 8 points 6 months ago* (last edited 6 months ago)

No need for all these new-fangled tools when good ol' dd does the job just fine. (Though they certainly reduce the chance of accidentally nuking the wrong disk).

[–] [email protected] 9 points 6 months ago

Rather use dd_rescue as it’ll retry if it encounters any reading issue.