View previous topic :: View next topic |
Author |
Message |
Keffin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Feb 2004 Posts: 202 Location: England
|
Posted: Sun Feb 15, 2004 6:42 pm Post subject: Quick dumb question regarding backups |
|
|
I've just got everything working and would like to backup the system in case I go and break it. I've read about backing up to a bootable CD and it seems a little over-complicated. Since I also have a vector linux partition would I just be able to bzip up this partition from there and throw that file on a CD (or 2 CDs if I need to) then wipe the partition and unzip those files back to it from vector should the worst happen? Please tell me if my logic is flawed somehow.
Thanks. _________________ Always cut the deck if it ups your odds. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54455 Location: 56N 3W
|
Posted: Sun Feb 15, 2004 7:12 pm Post subject: |
|
|
Keffin,
That should be OK. You spotted the worst gotcha - backing up a mounted filesystem. I assume that you have a single shared /boot ?
You should back that up in such a way the you can just resore the Gentoo bits. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Keffin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Feb 2004 Posts: 202 Location: England
|
Posted: Sun Feb 15, 2004 7:20 pm Post subject: |
|
|
Thanks. I don't have a seperate partition for /boot, it just lies in my root partition. Now I shall be the "third type" of computer user ![Wink ;)](images/smiles/icon_wink.gif) _________________ Always cut the deck if it ups your odds. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54455 Location: 56N 3W
|
Posted: Sun Feb 15, 2004 7:56 pm Post subject: |
|
|
Keffin,
You mean you have a root partition (including /boot) for gentoo and another one for vector ?
How does that work unless you fiddle with the bootable flag in the partition table all the time? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Keffin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Feb 2004 Posts: 202 Location: England
|
Posted: Sun Feb 15, 2004 8:35 pm Post subject: |
|
|
Correct, I just have a /boot directory in each of my linux root partitions, and things just... work. I haven't fiddled with bootable flags (not to my knowledge at least :S).
With lilo (as comes with vector) it was a bit annoying to set it up since when you run lilo it thinks all the kernels are in /boot and it doesn't find the one for the other partition, this was overcome by just copying the kernel from the other partition to /boot before running lilo. Now I've installed gentoo and have grub I have no such problems, the relevent bits of my grub.conf are below if you're interested.
Quote: |
title=Gentoo Linux (2.4.24)
# Partition where the kernel image (or operating system) is located
root (hd0,3)
kernel --no-mem-option /boot/kernel-2.4.24-slim root=/dev/hda4 vga=791
title=Vector Linux 4.0
# Partition where the kernel image (or operating system) is located
root (hd0,2)
kernel --no-mem-option /boot/vmlinuz root=/dev/hda3 vga=791 |
_________________ Always cut the deck if it ups your odds. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54455 Location: 56N 3W
|
Posted: Sun Feb 15, 2004 8:50 pm Post subject: |
|
|
Keffin,
So you only have one /boot/grub/grub.conf then?
and that is on the partition that the BIOS (and GRUB) expects to boot from.
Lilo will take full path names to kernels though it used to get nervous if you gave it a kernel over 508Mb away from the beginning of the drive.
Then you would have two /etc/lilo.conf files - nightmare.
It looks like you need a copy of both /boot(s) or you may be able to restore all of your Gentoo and find it won't start. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Keffin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Feb 2004 Posts: 202 Location: England
|
Posted: Sun Feb 15, 2004 9:21 pm Post subject: |
|
|
I have only 1 grub.conf file, it is in gentoos /boot directory. I also have only 1 lilo.conf file, it is in vectors /boot directory. I don't use lilo now though, it was installed to the MBR then when I installed gentoo I installed grub to the MBR. I don't think I would need to back up vectors /boot, if anything goes wrong where vector's concerned it's a 10 minute reinstall, gentoo however takes just a little longer . _________________ Always cut the deck if it ups your odds. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hauser l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1138487462403d30e0c0fca.jpg)
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Sun Feb 15, 2004 10:03 pm Post subject: |
|
|
Keffin, I've got a similar situation; I've got a Knoppix partition where I installed grub (to manage all the OSes on my machine), if I were you I would do this:
Boot into vector,
Code: | #mount /dev/hda4 /mnt/gentoo
#cd /mnt/gentoo
#tar -cz --exclude-from /root/exclude-list -pivO * | split -a 1 -b 650m - /root/gentoo-hda4.tar.gz- |
You'll get something like gentoo-hda4.tar.gz-a, gentoo-hda4.tar.gz-b, etc with each file <or= 650m.
A sample exclude-list would be:
Code: | usr/portage/distfiles
usr/portage/packages |
To restore:
Code: | #mkreiserfs /dev/hda4 (or other filesystems)
#cd /mnt/gentoo
#cat /root/gentoo-hda4.tar.gz-* | tar xzvf - |
Then you'll need to chroot and reinstall grub since you intalled grub from gentoo (if you'd installed grub from vector, you could reboot already!). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Keffin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Feb 2004 Posts: 202 Location: England
|
Posted: Sun Feb 15, 2004 10:09 pm Post subject: |
|
|
Thanks Hauser, but with grub being installed to the MBR surely I wouldn't have to reinstall it, unless the MBR died too :S. _________________ Always cut the deck if it ups your odds. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hauser l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1138487462403d30e0c0fca.jpg)
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Sun Feb 15, 2004 10:19 pm Post subject: |
|
|
Yeah, you're right there. ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
der_maddin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 22 Feb 2004 Posts: 209 Location: somewhere between my systems ..
|
Posted: Wed Mar 03, 2004 8:50 pm Post subject: |
|
|
hmm, would it be necessary to boot from
another system first like described above ??
i ask because i only have gentoo running on my sys ...
( no need for other OS, though i have a
toshiba notebook running win2000 for work .. ) _________________ neoCortex maddin # uname -a
Linux neoCortex 2.6.14-gentoo-r5 #2 SMP Fri Jan 13 04:40:02 CET 2006 x86_64 AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hauser l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1138487462403d30e0c0fca.jpg)
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Wed Mar 03, 2004 9:20 pm Post subject: |
|
|
You can boot with Knoppix or Gentoo LiveCD, then do the backup. Of course the shortcoming of this backup scheme is that you don't do it within a running system. Backing up the whole system within a running system is not trivial and there're specialized programs such as Mondorescue for such things, but you can search the forum for other alternatives. I'm not running a server or sth like that and I shutdown my system when I'm not using it, so this scheme suits me very well; I've tried it many times, it works perfectly! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
der_maddin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 22 Feb 2004 Posts: 209 Location: somewhere between my systems ..
|
Posted: Wed Mar 03, 2004 9:47 pm Post subject: |
|
|
allright.
i also took a look at vortex, but as i
allways have gentoo-live-cd ready,
( on one of this cute little 80mm - cds,
pocketsize, so do allways have the
possibility to boot a gentoo base system
wherever i am )
so that will do the job for me ..
thanks for your support so far. _________________ neoCortex maddin # uname -a
Linux neoCortex 2.6.14-gentoo-r5 #2 SMP Fri Jan 13 04:40:02 CET 2006 x86_64 AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|