If I'm already in a linux, is there a way for me to say "turn this new external hard drive into a bootable linux distribution identical to this machine" that doesn't involve any of dd, downloading an ISO or rebooting? It's hard to believe this is as difficult as it seems to be.

It's hard to believe that this isn't a standard tool, but if it is I sure can't find it. Every installer ISO I've ever seen since the once-magical Knoppix has let you boot into a workable Linux on its own, and install to the hard drive if you like, but I don't see a standalone tool that does that second part.


What I'm asking for here is: from within a Debiannish linux, a tool (ideally graphical, but w/e) that you point at a hard drive, that:

- Formats this new hard drive appropriately, making it bootable and doing grub-whatever
- Installs the same packages onto that device as are on the host system, and
- Optionally copies over user account information (/home/*, passwords, etc
- Optionally copies over whatever's in /etc or /opt

...and ends with a hard drive I can plug into another system and boot.

That's the last solution I'd think of for that particular problem. And essentially, most Linux users would script something up. How often do you want to do this? What about a PXE Server and preseed file? Turn the new machine on, network boot it, make a cup of tea, log in. That's how I'd solve it anyway.

Sign in to participate in the conversation

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!