1 |
On Thu, Mar 8, 2012 at 9:12 AM, Neil Bothwick <neil@××××××××××.uk> wrote: |
2 |
> On Thu, 8 Mar 2012 23:52:53 +0700, Pandu Poluan wrote: |
3 |
> |
4 |
>> > As an added note on this, rsync's --one-file-system (-x) flag is handy |
5 |
>> > for avoiding grabbing unneeded things, but will typically leave you |
6 |
>> > without the base few device nodes needed to boot the backup, those can |
7 |
>> > either be grabbed from a stage3, or created with (courtesy of Linux |
8 |
>> > From Scratch's section "6.2.1. Creating Initial Device Nodes"): |
9 |
>> > |
10 |
>> > mknod -m 600 ${backup}/dev/console c 5 1 |
11 |
>> > mknod -m 666 ${backup}/dev/null c 1 3 |
12 |
>> > |
13 |
>> |
14 |
>> ... or just add another rsync invocation to backup /dev ... |
15 |
> |
16 |
> That won't work because it will backup the full devfs mounted on /dev, |
17 |
> not the files that exist in the directory itself. |
18 |
> |
19 |
> |
20 |
> -- |
21 |
> Neil Bothwick |
22 |
> |
23 |
> Despite the cost of living, have you noticed how it remains so popular? |
24 |
|
25 |
Thanks for all the ideas. As I've not done this sort of thing before |
26 |
every one of them has been worth my time thinking about. |
27 |
|
28 |
I ended up going a slightly different direction, only made possible by |
29 |
how little disk space costs these days. Here's what I did: |
30 |
|
31 |
1) As a chroot, on the live system I created a new Gentoo install. |
32 |
This is just a very basic single disk partition type install as per |
33 |
the Gentoo install guide. No apps, no KDE, nothing. Just the basic |
34 |
stuff. |
35 |
|
36 |
2) Once that install was up & running I copied the server's world |
37 |
file, /etc/portage/package.*, /etc/conf.d, /etc/X/xorg.conf & a few |
38 |
other things into this new install and ran emerge -ek @world to get it |
39 |
up and running. |
40 |
|
41 |
3) When all of that was complete and functioning, at least in the |
42 |
chroot, I then took the chroot offline and used rsync to get the |
43 |
chroot installed copied to the external drive. |
44 |
|
45 |
4) WIth the rsync complete I then took a cut at modifying /etc/fstab |
46 |
to be correct for booting from the external drive. Not sure about this |
47 |
step at this time as I don't know for sure how the machine will name |
48 |
the external drive. |
49 |
|
50 |
I'm now looking to get /boot copied to the external drive, get grub |
51 |
installed, and then see if I can boot using that drive. |
52 |
|
53 |
Again, thanks for the ideas and keep 'em coming if you have more. |
54 |
|
55 |
Cheers, |
56 |
Mark |