this post was submitted on 01 Apr 2025
24 points (96.2% liked)
Linux
52771 readers
657 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can do this with the
dd
command. To prep:Set up a live boot USB stick with your distro of choice.
Install another SSD/nvme/HDD at least the same size as your bookworm install into your bookworm machine. If that's not an option connect a USB drive that's at least the same size as the drive with your bookworm installation.
Boot into the live USB on the bookworm machine.
Make sure the partition(s) from your bookworm install are unmounted.
Quadruple check the drives/devices for the
dd
command. Here's the basics of the command:dd if=/device/where/bookworm/is/installed of=USB/or/second/drive/in/machine bs=8M status=progress
So, if your bookworm install is on
/dev/sda
, and the USB or secondary is/dev/sdb
, then the Cmand would be:dd if=/dev/sda of=/dev/sdb bs=8M status=progress
Be careful with disk destroyer!
This is literally what dd does and what I would have recommended, if this person hadn’t beaten me to it.
However, if you’re cloning to another disk or partition that will be plugged in at the same time as your existing installation, you’ll wind up with two partitions with the same identifier — a recipe for eventual disaster. In that case, I would run through setup (with your current disk unplugged) and then rsync over the new root partition.