[SOLVED] Taking full hard disk image of Gentoo installation
GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Taking full hard disk image of Gentoo installation
Hi, as anybody would agree, installing Gentoo is pain although its a good learning experience.
But what do we do if for some reason the harddisk is wiped out and we need to install it from the beginning? With other distros its as easy as installing from current cd iso image and then updating the system (with tools like apt-get update-upgrade or yum update...).
With this in mind I would like to know if there is a method to capture our harddisk install and later use (or install(?) ) it as and when required?
Sorry, if its a dumb question but I don't know how to do it; even could not find a good phrase so as to google.
I disagree
To install Gentoo is no more "pain" than to install another distro (IMO) - aside from the amount of time it takes to get all the compiling done - which depends on how powerful your machine is.
The process of capturing the contents of the harddisk would be the same as with every other distribution.
I use rsync to do that - and put the archive on a DVD or another harddrive.
There are other ways which might suit your needs better.
(specialised tools, or just tar and any compression tool, or cp, or dd (rather not this one though...)
The Gentoo Live-CD, which you already have, can be used to reinstall the previously captured contents.
Some people like what they call stage4/stage5 backup.
In gentoo, stages are pre-packaged systems which are numbered depending on how close to a final working OS they are. While the number grows the "generic" nature of the stages diminishes. In ancient times, people used to use stage1 to install gentoo. A stage1 was nothing but a very basic system with a very basic toolchain. So you have to first, bootstrap it to get a working full toolchain, then start compiling the basic system tools. A stage2 was a bootstrapped stage1. A stage3 has the basic system and a fully working toolchain (and it's the only supported method of installation today). Nowadays, stage1 and 2 are not used by the big public, and are meant only for gentoo developers.
In addition to these, some gentoo users created the concept of what they call stage4 and stage5, which are basically fully working systems tailored to their needs, meant to restore the system easily and on a quick way if something bad happens. There's some info about stage4 and stage5 in the gentoo forum, like for example this one:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.