Koozali.org: home of the SME Server

Moving harddisk re Wiki

Offline Drifting

  • ****
  • 431
  • +0/-0
Moving harddisk re Wiki
« on: December 20, 2014, 09:21:59 AM »
I think I am suffering from an understanding problem!
The Wiki states after booting into rescue:-

chroot /mnt/sysimage
cd /boot
mv initrd-YOUR_KERNEL_VERSION.img initrd-YOUR KERNEL VERSION.img.old
mkinitrd initrd-YOUR_KERNEL_VERSION.img YOUR_KERNEL_VERSION

So I type:-

mv initrd-2.6.18-348.12.1.el5.img initrd-2.6.18-348.12.1.el5.img.old
mkinitrd initrd-2.6.18-348.12.1.el5.img vmlinuz-2.6.18-348.12.1.el5

And what I get is:- No modules available for kernel vmlinuz-2.6.18-348.12.1.el5

Now I expect I have missed something? However the backup is offsite and I cannot get to it at the moment, and the server died the disk was in, and I am trying to get this to work on a new server. (Clean install works,but not a lot of good without the backup in my hands)

Any help really welcome.

Paul

« Last Edit: December 20, 2014, 12:23:11 PM by Drifting »
Infamy, Infamy, they all have it in for me!

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving harddisk re Wiki
« Reply #1 on: December 20, 2014, 11:47:54 AM »
mv initrd-2.6.18-348.12.1.el5 initrd-2.6.18-348.12.1.el5.old

Missing .img in the first param?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Drifting

  • ****
  • 431
  • +0/-0
Re: Moving harddisk re Wiki
« Reply #2 on: December 20, 2014, 11:58:06 AM »
Missing .img in the first param?


Sadly that was just a typo on the post, not what I typed on the command line. Was excited there for a moment that was the solution, but thanks none the less for you response.

Paul
Infamy, Infamy, they all have it in for me!

guest22

Re: Moving harddisk re Wiki
« Reply #3 on: January 06, 2015, 06:17:16 AM »
Drifting,

any luck or progress that you might want to share please?

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: Moving harddisk re Wiki
« Reply #4 on: January 06, 2015, 08:10:29 AM »
I think I am suffering from an understanding problem!
The Wiki states after booting into rescue:-

chroot /mnt/sysimage
cd /boot
mv initrd-YOUR_KERNEL_VERSION.img initrd-YOUR KERNEL VERSION.img.old
mkinitrd initrd-YOUR_KERNEL_VERSION.img YOUR_KERNEL_VERSION

So I type:-

mv initrd-2.6.18-348.12.1.el5.img initrd-2.6.18-348.12.1.el5.img.old
mkinitrd initrd-2.6.18-348.12.1.el5.img vmlinuz-2.6.18-348.12.1.el5

And what I get is:- No modules available for  vmlinuz-2.6.18-348.12.1.el5

Now I expect I have missed something? However the backup is offsite and I cannot get to it at the moment, and the server died the disk was in, and I am trying to get this to work on a new server. (Clean install works,but not a lot of good without the backup in my hands)

Any help really welcome.

Paul

HF

Doing some reading of CentOS wiki and other places.

I think they may have noticed their error.

The wiki does NOT state to use  "vmlinuz-" as part of the kernel name which is why it is telling them "No modules available for  vmlinuz-2.6.18-348.12.1.el5" there is no kernel with that name.

Heres how CentOS does it http://wiki.centos.org/TipsAndTricks/CreateNewInitrd
or http://advancelinux.blogspot.com.au/2013/06/how-to-rebuild-initrd-or-initramfs-in.html
« Last Edit: January 06, 2015, 08:12:34 AM by TerryF »
--
qui scribit bis legit

Offline Drifting

  • ****
  • 431
  • +0/-0
Re: Moving harddisk re Wiki
« Reply #5 on: January 06, 2015, 09:58:39 AM »
Hi Chaps.

In my case I ran out of time, had to get a good friend to drive across country with the backup. As so often with Linux systems, the writers of some of the fixes and docs assume that we know more than we do :-), not that I am complaining, I have been dug out a few times by people in these forums, and I appreciate them all. Just wish they would think about us less gifted!

P
Infamy, Infamy, they all have it in for me!