Gentoo Archives: gentoo-alpha

From: Rikard Johnels <rikjoh@××××××.se>
To: gentoo-alpha@l.g.o
Subject: Re: [gentoo-alpha] Disk image? and other general questions
Date: Tue, 05 Oct 2004 03:04:40
Message-Id: 200410050505.21541.rikjoh@norweb.se
In Reply to: [gentoo-alpha] Disk image? and other general questions by "Jean-Sébastien Guay"
1 On Tuesday 05 October 2004 03.50, Jean-Sébastien Guay wrote:
2 > Hello,
3 >
4 > This question might strike you as a bit bizarre, but here goes anyways.
5 >
6 > I have an Alpha XL currently running Debian. I would like to see how
7 > Gentoo works on it, but I would especially like to have the option to
8 > back out and go back to my running system if it doesn't work (or I don't
9 > like it, though I doubt that frankly). Is there a way of making a
10 > complete "disk image" of my currently running system? By "disk image", I
11 > mean all files, permissions, filesystem configuration, partitions, etc.
12 > If possible, I would like to be able to put that image onto a network
13 > drive (since the current drives on the system don't have the space to
14 > fit such an image).
15 >
16 > If I was able to do that, I would be able to restore from that image if
17 > something were to go wrong.
18 >
19 > The Alpha is currently my household's gateway/firewall, web server, file
20 > server, etc. That's why I need to know that even after a few days of
21 > compiling sources for Gentoo, I can go back at any time.
22 >
23 >
24 > Also, somewhat unrelated -- How does Gentoo handle configuration files?
25 > I mean, I know a bit about the portage system, the emerge command that
26 > updates all the packages on your machine. But that raises the question,
27 > what happens if I had to massively modify a certain software package's
28 > config files, and then that package is updated and the config file has
29 > new options, a new format, whatever. Does it do it the way Debian does
30 > it (which is one reason I'd like to move away from Debian -- it just
31 > gives you the option to keep your file, or overwrite with the new one,
32 > no in between)? Or does it do it in a smart way, for example letting you
33 > merge differences "à la" CVS?
34 >
35 > Thanks in advance. I'd very much like to try out Gentoo, but if
36 > possible, with as little risk as possible.
37 >
38 > J-S
39 If you have another linux box running, I would do the "backup" via NFS.
40
41 1. Export a directory on the second linux (with ample space).
42 2. Boot the Alpha into a rescue system via a cd
43 3. Setup the networkcard and ip-adress
44 4. Mount the NFS share on lets say /mnt/
45 4. do a "dd if=/dev/sda of=/mnt/diskimage.img"
46 (if you have the instalation on /dev/sda)
47
48 That would produce (aside from lots of network traffic) a huge image of your
49 current setup.
50 In case of emergency, just redo the steps above but change the dd to
51 "dd if=/mnt/diskimage.img of=/dev/sda"
52
53 There are probably nice switches to dd to make it smaller.
54 I wouldnt use zip or any other compressors incase you get an error.
55 You might not be able to recover the image...
56
57 --
58 /Rikard
59
60 ------------------------------------------------------------------------------------
61 Rikard Johnels email : rikjoh@××××××.se
62 Web : http://www.rikjoh.com
63 Mob : +46 735 05 51 01
64
65 ------------------------ Public PGP fingerprint ----------------------------
66 < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
67
68 --
69 gentoo-alpha@g.o mailing list