Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-13-2003, 10:30 PM   #1
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
[dump,restore] system => kernel panic?

hi all,

hda1 holds /boot
hda2 holds everything else.
hda3 holds swap

everything was working so well i dumped hda2, then tried to test it using restore.

the dump command used was: dump -0f /path/to/hda2.dump /dev/hda2 .
then, after doing: mkfs -t ext3 /dev/hda2,
the restore command used was: restore -rf /path/to/hda2.dump

upon boot, it complains as follows:
Creating root device
mkrootdev: label / not found
Mounting root filesystem
mount: error 2 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 128k freed
Kernel panic: No init found. Try passing init= option to kernel.

the grub.conf section i typically boot to is:
title Red Hat Linux (2.4.22-openmosix-2)
root (hd0,0)
kernel /vmlinuz-2.4.22-openmosix-2 ro root=LABEL=/
initrd /initrd-2..22-openmosix-2.img

but grub.conf sits on hda1, which was not modified recently.
fdisk -l looks good for hd1 and hda2: both id 83. fsck says hda2 is clean.
cd'ing around hda2 looks good, i don't notice anything different with the filesystem.

anybody know what i'm missing? a clean setup is hiding in hda2 somewhere...

thanks if any ideas, - bp

Last edited by bdp; 12-13-2003 at 10:32 PM.
Old 01-12-2004, 06:17 AM   #2
LQ Newbie
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0

I had the same problem migrating a Redhat 9.0 instalation from one harddisk to another.

The solution was to assign labels to the partitions. Redhat uses the volume labels of ext3 for the root option and in /etc/fstab. I had not used the -L option in the mke2fs call.

# tune2fs -L "/boot" /dev/hda1
# tune2fs -L "/" /dev/hda2

solved my problem.

Old 01-12-2004, 09:19 PM   #3
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Original Poster
Rep: Reputation: 30
agreed, i used e2label for partition labelling. including the labelling step, dump appears to be superior to dd for partition moving and system backup since partitions do not need to be held at constant size or require resizing after restoration to dissimilar partition sizes.

thx for the feedback.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 - Need Help krishvij Linux - General 1 05-10-2005 01:26 PM
Restore kernel after panic howto ? wesleywest Linux - Software 1 11-10-2004 09:20 AM
dump & restore hiren_a Linux - Newbie 1 04-29-2003 12:56 AM
dump/restore moger Linux - Software 4 12-31-2002 04:34 AM
dump and restore nat Linux - General 1 04-26-2002 04:08 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:54 AM.

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