LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-10-2004, 05:49 AM   #1
tradewind
LQ Newbie
 
Registered: Jun 2004
Location: Hanoi, Vietnam
Distribution: RedHat
Posts: 20

Rep: Reputation: 0
Problem with backup and restore?


Hi everyone,
I have an IBM server installed RedHat Advanced Server 2.1. My tape is recognized as /dev/st0. I use the following command to backup all my system:
tar cpf /dev/st0 -C / --exclude=/proc .
I cannot boot my OS, so how can I restore my system from tape?
 
Old 07-10-2004, 07:47 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Why can you not boot your OS? What did you do to wreck the system, if anything?
 
Old 07-10-2004, 08:46 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
tar will not install a boot loader for you. if that's messed up, then the restore will do no good. you'll have to do that by hand. booting from a rescue cd or something is necessary for restoring the files, or installing the boot loader. generally you mount the drive, or format then mount, then run the proper tar command, then reinstall the boot loader if necessary.
 
Old 07-11-2004, 09:01 PM   #4
tradewind
LQ Newbie
 
Registered: Jun 2004
Location: Hanoi, Vietnam
Distribution: RedHat
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by whansard
tar will not install a boot loader for you. if that's messed up, then the restore will do no good. you'll have to do that by hand. booting from a rescue cd or something is necessary for restoring the files, or installing the boot loader. generally you mount the drive, or format then mount, then run the proper tar command, then reinstall the boot loader if necessary.
I boot from a CD and type linux rescue at the command line. But it cannot recognize the tape. Please help me, thanks, or can you tell me another way to do backup and restore if cannot boot OS?
 
Old 07-11-2004, 09:09 PM   #5
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Again,
You need to tell us what the problem is. Is your boot loader missing, boot loader configuration? What? Tell us the exact problem and error you are getting when trying to boot.
 
Old 07-12-2004, 01:16 AM   #6
tradewind
LQ Newbie
 
Registered: Jun 2004
Location: Hanoi, Vietnam
Distribution: RedHat
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jcookeman
Again,
You need to tell us what the problem is. Is your boot loader missing, boot loader configuration? What? Tell us the exact problem and error you are getting when trying to boot.
I supposed that I cannot boot OS (for example: missing the boot loader or any other reasons). Is it possible to restore from tape in this case?
 
Old 07-12-2004, 05:43 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
what is the last message on the screen when linux stops?
 
Old 07-12-2004, 11:16 PM   #8
tradewind
LQ Newbie
 
Registered: Jun 2004
Location: Hanoi, Vietnam
Distribution: RedHat
Posts: 20

Original Poster
Rep: Reputation: 0
Sorry if my English makes you misunderstand. I just suppose the situation. For example, if someone formats the hard drive, can I use tape to restore? As whansard says, tar will not install a boot loader so that I cannot boot from tape (but I can do this with Solaris). And now I'm a bit worry about this.
 
Old 07-13-2004, 06:24 AM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i meant tar will not put a boot loader on the hard drive. you have to do that yourself. if your system is not booting because the boot loader is messed up, then perhaps none of the files on the system are messed up. perhaps it's just the boot loader, and if you tell us what boot loader you are using, lilo or grub, and the error message you are getting, we can tell you what to do to make the system boot.
to restore your files with tar will not make the system start booting correctly. you will need a rescue disk that supports your tape drive, and whatever device it is attached to, atapi or scsi.
if you do not have those, and cannot get them, the fix is to do a fresh install of the system from the original disks, and create the necessary rescue things from there, then reboot with the stuff you made, and restore then. you will still have to install a boot loader after that.
that is why we are trying to see if your boot loader is messed up first, because if that's all the problem is, then you may not have to restore any files.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup / restore 5pints Linux - Software 2 01-11-2005 09:08 AM
Backup and Restore with TAR jay2809 Linux - Newbie 7 08-25-2004 04:47 PM
Backup and restore? tradewind Red Hat 2 07-02-2004 10:18 PM
RH 7.3 Backup and Restore MrJoshua Linux - General 1 06-18-2003 11:39 AM
how can I restore a tar backup len snelly Linux - Newbie 1 04-30-2002 12:29 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration