Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
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?
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.
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?
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.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.