Visit The New, Modern Unix Linux Community


Grub - how to boot a copy of Linux (full system backup)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Grub - how to boot a copy of Linux (full system backup)
# 1  
Debian Grub - how to boot a copy of Linux (full system backup)

Hi All,

I have successfully backup & restore (using tar) one of my Debian Lenny Servers.

On the restore server (standby machine), everytime i have to erase the disk & extract the tar backup.

I want to extract the tar on the running restore server on a directory for e.g /systembackup-01, /systembackup-02, etc.. & be able to boot one of the backup using grub.

Thanks to help me on this.

coolAtt
# 2  
Hammer & Screwdriver consider "mondo" :)

- have you heard about "mondo" ?

- it's GPL disaster recovery solution.

--> Mondo Rescue - GPL disaster recovery solution

- checki it out, and if possible, give it a try...

BTW in order for grub to boot from some partition, it must be able to find a "boot sector" (or "boot record") already there.

(in your case, you should at least use `dd' to save your boot sector, and restore it along with your 'tar' stuff..

ok ?

HTH

good luck, and success !

alexandre botao
("comets never dodge")
# 3  
Quote:
Originally Posted by botao
- have you heard about "mondo" ?

- it's GPL disaster recovery solution.

--> Mondo Rescue - GPL disaster recovery solution

- checki it out, and if possible, give it a try...

BTW in order for grub to boot from some partition, it must be able to find a "boot sector" (or "boot record") already there.

(in your case, you should at least use `dd' to save your boot sector, and restore it along with your 'tar' stuff..

ok ?

HTH

good luck, and success !

alexandre botao
("comets never dodge")
I think u didnt understand me.
Let me clarify.
I do FULL backup of my Debian Lenny 5 server (machine A) using tar.
The restore of tar backup is Ok..its working great on the spare machine (machine B).

Code:
/
 etc
 dev
 root
 bin
 etc...

Now on the above running system (the spare machine) i want to create a directory
named "SystemBackup02":


Code:
/
 etc
 dev
 root
 bin
 SystemBackup02
 etc...

Next time I want to
1. untar the contents of my backup in the "SystemBackup02"
directory.
2.change ip in /SystemBackup02/etc/network/interfaces & modify other confs
3.add an entry in grub, telling grub that it can also boot from this directory.

so the aim is to be able to boot from several versions of system backup
# 4  
OK, first question - are you using GRUB Legacy or GRUB2? Second question - will SystemBackup02, etc, be on a separate partition or filesystem?
# 5  
Quote:
Originally Posted by fpmurphy
OK, first question - are you using GRUB Legacy or GRUB2? Second question - will SystemBackup02, etc, be on a separate partition or filesystem?
1. Am using Debian Lenny 5 & its using GRUB Legacy.

2. "SystemBackup02" will be on the same disk, created in / (root)
# 6  
Its easy, a two step process.
You only need to edit grub.conf to add another boot option only for the vmlinux image you get into SystemBackup02/boot directory. Run 'install-grub /dev/<device holding SystemBackup02>'.

Hope both primary and backup machines have same architecture & device configurations!!!

A word of caution: It's a bit risky with little scope for mistakes; however don't assume that you are doomed on your mistake (until you delete your own data), if the backup system doesn't boot. You'll need to re-boot them again with a backup CD images and mount the drives temporarily and re-do the process correctly, BUT this time differently (mind that mounting may change paths). I've landed into mess and bounced back too but tensions run always high.
# 7  
Quote:
Originally Posted by Praveen_218
Its easy, a two step process.
You only need to edit grub.conf to add another boot option only for the vmlinux image you get into SystemBackup02/boot directory. Run 'install-grub /dev/<device holding SystemBackup02>'.

Hope both primary and backup machines have same architecture & device configurations!!!

A word of caution: It's a bit risky with little scope for mistakes; however don't assume that you are doomed on your mistake (until you delete your own data), if the backup system doesn't boot. You'll need to re-boot them again with a backup CD images and mount the drives temporarily and re-do the process correctly, BUT this time differently (mind that mounting may change paths). I've landed into mess and bounced back too but tensions run always high.
Do I need to absolutely reinstall Grub? (Its a bit scary for me even though its not a PROD Machine Smilie )

Also note that the "SystemBackup02" is just another directory on the same disk /dev/sda.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #195
Difficulty: Easy
The top 2 programming languages, according to the TIOBE Index for October 2019, was Java and C.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Help - Chosing backup way (full system + zones)

Hello i am new on Solaris, and i need to migrate my old AIX 5.3 to Solaris 11.2 Now i have all apps working fine but i have the backup cause i was reading and i have not idea about what method must i choose. Btw on AIX i had a mksysb backup to restore all system and obviously another backups to... (4 Replies)
Discussion started by: thorin666
4 Replies

2. UNIX for Advanced & Expert Users

how to make a full system backup excluding data and restoring it to a new system

Hi, In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way : - Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies

3. HP-UX

HP-UX Full System Backup with fbackup

Hello, I'm still new in HP-UX backup and I want to do a FULL BACKUP of HP-UX server to TAPE device. After reading on several forums and posts, i have list down several steps on how to do a full backup on HP-UX with fbackup. I would like the gurus here to comment/advise on the steps below 1)... (4 Replies)
Discussion started by: miskin
4 Replies

4. UNIX for Dummies Questions & Answers

Full System Backup Sco 5.0.5

I would like to know if I can do a full system back up on my Unix Sco openserver 5.0.5 Machine. If so, What is the syntax to do this or where can I find this information at? Also, is it possible to make this tape bootable so that I can easily do a full system restore? Any information on... (2 Replies)
Discussion started by: nellenodrog
2 Replies

5. Solaris

full system backup

I have unix server with OS 5.8 ,,, I tried ufsdump 0ua -f /dev/rmt/0 / to perform full system backup on tape but I failed could any one give a procedure for full system backup on solaris machine using tapes??? (1 Reply)
Discussion started by: mm00123
1 Replies

6. UNIX for Dummies Questions & Answers

System full backup to tape

hi, Recently, I had receive one system. it's run on the unix tru64 server. I looking some log files when i know don't work few months age system backup to tape. Below error: INFO:Tape backups to tape tape0 starting for backup list: slot2:/disk4 Backup Command Variable... (0 Replies)
Discussion started by: Tlg13team
0 Replies

7. Linux

full system backup script

Please help. I am new to linux. I wrote a script to run the backup on lunix machine but the job gave me an error. I am using Linux 2.6.14.3. Below is the sample of my script can anyone tell me where went wrong? Thanks in advance. #!/bin/sh dat=$(date +%d%b%y)... (5 Replies)
Discussion started by: clement
5 Replies

8. UNIX for Dummies Questions & Answers

Full System Backup / Cloning HPUX

I am new to UNIX and need help in cloning a HPUX 10.2 Ace 5, can anybody please guide me in making a full system backup. Real Chess (0 Replies)
Discussion started by: real-chess
0 Replies

9. Red Hat

linux will not boot, boot to grub prompt

my redhat 9 will not boot. We had a power failure and when the power came back, my redhat linux will not boot. The machine come up to grub prompt. I tried the following from grub prompt root (hd0, then press tab key partition num:0 filesystem type unknown, partition type 0x83... (7 Replies)
Discussion started by: hassan2
7 Replies

10. UNIX for Dummies Questions & Answers

Can't get GRUB to boot Linux!!!

I have installed Linux 7.2 on a IBM xseries 235 server with 5 scsi hard drives and ServerRaid-5i Ultra320 scsi controller. I started my installation by configuring the raid controller. I created 2 arrays, raid 1 and raid5. I then proceeded to install Linux and load the drivers. After the... (2 Replies)
Discussion started by: cstovall
2 Replies

Featured Tech Videos