LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2004, 10:43 AM   #1
grim2
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Rep: Reputation: 0
How Recover Server With Knoppix?


Hi!

I need to be able to recover my OS from a backup. I meen I need to recover my complete hard drive from backup.
My system has two disks: hda and hdb. I have installed SLES 8 on disk a, and create four partitions:

sda1: /boot 100MB
sda2: / 4GB
sda3: /swap 2GB
sda4: /opt

Later I have created three backup files:

bck_boot.tar.gz - all files from /boot directory
bck_root.tar.gz - directories from root partition except /boot, /opt /proc
and /temp
bck_opt.tar.gz - all files from /opt directory

My recovery procedure is:

1) replace demaged hard drive with new formated hard drive
2) start Knoppix
3) create same partitions as I had on demaged hard drive
4) get back backup files from backup server to new hard drive with ssh
5) unzip file bck_boot.tar.gz to new partition sda1 (on this partition I place all files from boot directory)
6) file bck_root.tar.gz to new partition sda2
7) unzip file bck_opt.tar.gz to new partition sda4
8) create boot and opt directories on root partition (/boot and /opt)

All this eems OK to me, but then when I shutdown Knoppix and remove CD I restart my computer and get in problems.

All I get after restart is black screen with word GRUB in up left corner.

How can I solve this?

Also, other ideas for backup are welcome.
 
Old 05-13-2004, 12:59 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"All I get after restart is black screen with word GRUB in up left corner."

In looking through your recovery procedure I do not think that you are restoring the MBR. The MBR seems to be whatever happens to be on your replacement drive when you insert it in the machine. You might try chroot from Knoppix to your restored system and then run grub-install to recreate the MBR.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 05-14-2004, 12:44 AM   #3
grim2
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Original Poster
Rep: Reputation: 0
I have tried to reinstall GRUB with tise commands:

root (hd0,0)
setup (hd0)
quit

Now I don't see GRUB, just black screen.

Here is my original menu.lst file:

gfxmenu (hd0,0)/message
color white/blue black/light-gray
default 0
timeout 8

title linux
kernel (hd0,0)/vmlinuz root=/dev/sda2 vga=791
initrd (hd0,0)/initrd
title floppy
root (fd0)
chainloader +1
title failsafe
kernel (hd0,0)/vmlinuz.shipped root=/dev/sda2 ide=nodma apm=off acpi=off vga=normal nosmp disableapic maxcpus=0 3
initrd (hd0,0)/initrd.shipped

Same values I have on new disk, but still dosn't work.
Why?
 
Old 05-17-2004, 06:43 AM   #4
grim2
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Original Poster
Rep: Reputation: 0
I have solved allmost all problems that I had. I have used PartImage to create images of all partitions on hard drive (boot, root and opt) and with PartImage I can restore all thise partitions. All this work OK.

But I need to install an agent of my backup software, so that I can retrieve files with images from backup server to my local hard disk. I need to install this agent under Knoppix.

But there is a problem. I think that because ramdisk is read-only I get this error:

dpkg: unable to access dpkg status area: Read-only file system

I think that during installation some data need to be writen to var directory in ramdisk. But that is read-only area.

So can anybody help me with this?
 
Old 05-17-2004, 10:23 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Its not really clear what you mean by agent or what you are trying to achieve here. Could you explain in more detail what you are trying to do.
 
Old 05-19-2004, 06:19 AM   #6
grim2
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Original Poster
Rep: Reputation: 0
I meen agent as agent of BrightStor ARCServe Backup software.

While server was OK I created backups with Knoppix and Partition Image and with this software transferred them to the tape atached to my backup server. In case I lose hard drive I need to restore partitions on new hard drive. I can do restore with Knoppix and Partition Image, but I need to transffer backup file from a tape to the new hard drive.

For now I install minimum SUSE configuration and then install agent. After that I start SUSE, transffer backup file to the new hard drive and use Knoppix and Partition Image to restore hard drive.

This works OK but it would be much faster if I could install this agent under Knoppix (I would save time needed to install minimum SUSE configuration).

Is this possible?
 
Old 05-19-2004, 06:28 AM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Personally I would investigate using rsync to backup stuff under cron. Rsync will create a full copy and thereafter updates changed files only. If you want more detail I can give you links and personal experiences as I have this operating on /home on an hourly basis. It will even backup across a network.
 
Old 06-16-2004, 07:40 PM   #8
Fische
LQ Newbie
 
Registered: Feb 2004
Location: portland
Distribution: Debian
Posts: 22

Rep: Reputation: 0
i would definetally like to know about rsync, any info would be great
 
Old 06-17-2004, 01:46 AM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here is an excellent article -


rsync snapshots

The following is the script I made along with the dialog;

#!/bin/bash
#mount /dev/hda6 on /mnt
mount -t ext3 /dev/hda6 /mnt
#backup files to hda6 and write a log file.
rsync --delete-after -avH /home/ /mnt/backup/home > /var/log/backup.log
#umount hda6
umount /dev/hda6

To make it executable do chmod 700 ./backup

to run it do ./backup

I put it in /etc/cron.hourly

The following entry was put in /etc/crontab so that a backup is made 10 min past each hour.

# m h dom mon dow user command
10 * * * * root /etc/cron.hourly/backup

Reading the documentation on rsync will also prove useful.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you use Knoppix to recover Win2000 passwords jnc01 General 10 04-22-2007 06:32 AM
Recover software raid partitions knoppix d_t_baker Linux - Hardware 1 07-09-2005 07:19 AM
Knoppix to recover fstab? kurtwisener Linux - Software 2 06-12-2005 12:42 AM
Server crash, trying to recover mysql data from old HD? Vatoloco Linux - Software 2 06-20-2004 11:15 AM
filesystem: recover or not to recover? bdp Linux - General 3 06-06-2003 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 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