LinuxQuestions.org
Visit Jeremy's Blog.
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 09-13-2007, 01:05 PM   #1
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Rep: Reputation: 15
Recovering System from DUMP on new machine


Hi there,

Centos4.4

I have one machine died recently and I am trying to recover it on another one. I have dump files which I used to backup partitions.

So what I did is

- Installed new system, partitioned and installed CentOS4.4 on it. Partition layout is same but partition sizes are little bit different since hard drive is bigger on new machine.


- I used Knoppix to boot on new machine. It automatically mounts partitions under /media/hda_something.

- Connected to dump file and restored all old server data one by one to new machine.

Now when I boot I got this screen

GRUB

.. and that's it.

I installed GRUB initially in MBR. So it seems like it's not there or ... ??
Did I screwed something when I recovered /boot partition? I am not sure if /boot partition contains MBR or not? Did I overwrite MBR?


Thanks for all replies!!
 
Old 09-14-2007, 04:18 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I assume your using dd for these dumps? In my opinion that's just a really bad way to do backups. I think what your trying to do is a bare metal restore, you should really be saving your time and backup files and applications only, not the whole partition with a dd image. When a system goes down, you install the base OS, then restore the files and applications that were not native with it.

You probably did overwrite important info in the MBR. You should not have to recover the /boot partition unless you're using newer kernels or recompiled from backups most likely.

What partition scheme do you have and which ones did you specifically dump and restore?
 
Old 09-14-2007, 08:23 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
He may also be using the dump program proper, which is a much smarter way of doing back-ups. In this case, since the disks are different sizes a bare-metal restore is unwise. GRUB records the location on the disk of the stage1_5 and stage_2 binaries which are stored on /boot and when OP recovered them, their locations obviously changed and GRUB was no longer able to boot. In general, restoring system stuff like /boot is a bad idea. The only thing that should be backed up is user data and applications not installed from RPM or ones that have been customized. Then an interactive restore can be done (see the restore man page for details).
 
Old 09-16-2007, 12:53 AM   #4
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
I did use dump ... and yes I did overwrite /boot. I listened to your advice and this time restored just applications I cannot install with rpm and it works fine.

Thanks for your time guys ... it did help me a lot.
 
  


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
[dump,restore] system => kernel panic? bdp Linux - General 2 01-12-2004 09:19 PM
need help recovering files on an ext2 file system rmanocha Linux - Software 2 11-06-2003 10:37 AM
Recovering precious files from a crashed system MasterC Linux - General 7 12-16-2002 03:21 AM
BRAG - Double ssh tunnel for a system dump. drthornt Linux - Networking 0 10-20-2002 11:28 AM
recovering a redhat 6.2 system???? eddiek Linux - Software 2 10-05-2001 12:37 PM

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

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