You are not logged in.

#1 2007-02-22 09:48:16

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

mkinitcpio and Knoppix

Hi,

I want to clone a running Archlinux system into a VMWARE Server Image. I've done backups with rsync for so long and it worked every time I needed to clone or restore a system.
But now I'm running into some difficulties I cannot solve.

I started the virtual machine with Knoppix, prepared the hard disk and did a

rsync -avn --numeric-ids --delete --exclude=/sys --exclude=/proc root@someIP.in.our.network:/ /

I changed /etc/fstab and /boot/grub/menu.lst to the new device names (hda1->sda1) and reinstalled  GRUB:

$> grub
grub> root (hd0,1)
grub> setup (hd0)
grub> quit

I created the folders /proc and /sys and did a reboot.
But after loading the initial ramdisk I get some errors:

:: Loading Initramfs
ERROR: Failed to parse block device name for '/dev/sda2'
ERROR: root fs cannot be detected.
kinit: unable to mount root fs on device (hd0,0)
kinit: init not found

I don't know what's wrong, because (hd0,0) is not configured anywhere.
My grub.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro quiet
initrd /boot/kernel26.img

title  Arch Linux (failsafe)
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro init 1
initrd /boot/kernel26.img

I wanted to create new initramfs images, but this fails because the kernel version of the Knoppix DVD doesn't fit with my installation

"cannot find /lib/modules/2.6.15".................

my kernel version is 2.6.20...

So what should I do? Is it possible to boot with the kernel from the hard disk or is my problem located elsewhere??


digiKam developer - www.digikam.org

Offline

#2 2007-02-22 13:55:13

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: mkinitcpio and Knoppix

Hmmm I guess I have to create a new initramfs, but it seems to be impossible to boot from a Live CD and use my current kernel for booting the rescue system.
I found some thread where somebody had the same problem and he solved it by running mkinitcpio again... but I cannot get it to work without my current installed kernel image.
Any ideas what I can do?


digiKam developer - www.digikam.org

Offline

#3 2007-02-22 16:18:00

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 785
Website

Re: mkinitcpio and Knoppix

mkinitcpio should have -k parameter that specifies which kernel to create for.  After that it should just be mount -o bind

Offline

#4 2007-02-22 19:37:54

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: mkinitcpio and Knoppix

Ok will try this at work tomorrow... thank you!


digiKam developer - www.digikam.org

Offline

#5 2007-02-23 03:30:30

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mkinitcpio and Knoppix

I think you're mistaken.  The error from kinit is related to the error above it.  Paraphrasing the error:

/dev/sda2 not found

You need to verify that sda2 actually works.  Are you sure it's not hda2? Are you sure it's not sda1?

Offline

#6 2007-02-23 06:42:33

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: mkinitcpio and Knoppix

Yes I'm sure...


digiKam developer - www.digikam.org

Offline

#7 2007-02-23 08:17:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mkinitcpio and Knoppix

In that case, this error:

ERROR: Failed to parse block device name for '/dev/sda2'

indicates that the device node could not be found.  This is most likely because the module for your disk was not loaded at this point.  VMWare needs some odd module for disks, i think - one that can't be autodetects... BusLogic or something?  Try loading that in the MODULES="" list for you mkinitcpio image.

Offline

#8 2007-02-23 13:47:41

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: mkinitcpio and Knoppix

It worked! Did a

mkinitcpio -M

and put all listed modules in the config. Then I rebuild the initramfs and rebooted!! ;-)


digiKam developer - www.digikam.org

Offline

Board footer

Powered by FluxBB