Mailinglist Archive: opensuse (1196 mails)

< Previous Next >
Re: [opensuse] Why is root device hardcoded in initrd and how couldit be prevented?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Mon, 18 Jan 2010 17:20:16 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.1001181714200.4868@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Monday, 2010-01-18 at 17:05 +0100, Istvan Gabor wrote:

2010. január 18. 16:15 napon Tejas Guruswamy <> írta:

On 18/01/10 14:52, Istvan Gabor wrote:
Yes, I tried it. I have two problems with this solution:

1. I don't know how to make an initrd image to the system if it is not running.
Do you know how to create initrd image for a system which is not running?

Boot off a rescue system, chroot into the drive, mkinitrd should work.

I have tried it, not from the rescue disk but from within another running
system, and I could not manage it.
It gave some error messages which I can't recall.
Could you please give step by step instructions? It would be very helpful. Or
any link to a howto.

More or less:

mount /target_partition.
mount --bind /proc /target_partition/proc
mount --bind /sys /target_partition/sys
mount --bind /dev /target_partition/dev
chroot /target_partition

You might have to edit /target_partition/etc/mtab.

Then, run mkinitrd whatever.

Remember that those directories (proc, sys, dev) in the target should be empty before the binding.

- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAktUikgACgkQtTMYHG2NR9W0owCeKGdWql3vv23GbAFvMwZKMaJp
ukgAn2CwcbaYnfRfMyrdC8RFYpj/ORO0
=wa4V
-----END PGP SIGNATURE-----
< Previous Next >
Follow Ups