Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Quick dumb question regarding backups
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Sun Feb 15, 2004 6:42 pm    Post subject: Quick dumb question regarding backups Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54455
Location: 56N 3W

PostPosted: Sun Feb 15, 2004 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Sun Feb 15, 2004 7:20 pm    Post subject: Reply with quote

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 ;)
_________________
Always cut the deck if it ups your odds.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54455
Location: 56N 3W

PostPosted: Sun Feb 15, 2004 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Sun Feb 15, 2004 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54455
Location: 56N 3W

PostPosted: Sun Feb 15, 2004 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Sun Feb 15, 2004 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sun Feb 15, 2004 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Sun Feb 15, 2004 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sun Feb 15, 2004 10:19 pm    Post subject: Reply with quote

Yeah, you're right there. :oops:
Back to top
View user's profile Send private message
der_maddin
Apprentice
Apprentice


Joined: 22 Feb 2004
Posts: 209
Location: somewhere between my systems ..

PostPosted: Wed Mar 03, 2004 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Wed Mar 03, 2004 9:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
der_maddin
Apprentice
Apprentice


Joined: 22 Feb 2004
Posts: 209
Location: somewhere between my systems ..

PostPosted: Wed Mar 03, 2004 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum