[opensuse] running mkinitrd on a dead system
Hello SUSE users, I encrypted my laptop's hard disc using instructions from http://en.opensuse.org/ Encrypted_Root_File_System_with_SUSE_HOWTO. (To be short, I now have LUKS- encrypted filesystems, and also a custom initrd image, which asks me for password before every boot. I created the initrd image using a pached mkinitrd script.) In my infinite stupidity, I decided that I need another kernel. I downloaded kenel's rpm version, and it promptly overwrited my custom initrd image. Now, when I boot my laptop, I am greeted with a message that my encrypted (cryptsetup-LUKS) filesystem is unknown, and can't be mounted. I tried to boot from CD using Knoppix, and execute mkinitrd from it, but it failed as it can't find /etc/sysconfig/kernel (It's obvious that Knoppix does not have this folder). I can mount my encrypted filesystems from Knoppix, so the question now is which command line parameters should I give mkinitrd so that it correctly creates initrd - finds my kernel and copies it to my boot (unencrypted) partition I would really appreciate any ideas or suggestions! Best regards, John -- John Brown mrjohnbrown@fastmail.fm -- http://www.fastmail.fm - A no graphics, no pop-ups email service -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-01-31 at 01:00 -0800, John Brown wrote:
Hello SUSE users,
I encrypted my laptop's hard disc using instructions from http://en.opensuse.org/ Encrypted_Root_File_System_with_SUSE_HOWTO. (To be short, I now have LUKS- encrypted filesystems, and also a custom initrd image, which asks me for password before every boot. I created the initrd image using a pached mkinitrd script.)
In my infinite stupidity, I decided that I need another kernel. I downloaded kenel's rpm version, and it promptly overwrited my custom initrd image. Now, when I boot my laptop, I am greeted with a message that my encrypted (cryptsetup-LUKS) filesystem is unknown, and can't be mounted.
I tried to boot from CD using Knoppix, and execute mkinitrd from it, but it failed as it can't find /etc/sysconfig/kernel (It's obvious that Knoppix does not have this folder). I can mount my encrypted filesystems from Knoppix, so the question now is which command line parameters should I give mkinitrd so that it correctly creates initrd - finds my kernel and copies it to my boot (unencrypted) partition
Before running mkinitrd use chroot to the mount point of the encrypted filesystem. That will have the command operate on that filesystem. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, Thanks for your message! It helped. John On Wed, 31 Jan 2007 07:41:57 -0500, "Kenneth Schneider" <suse-list3@bout-tyme.net> said:
On Wed, 2007-01-31 at 01:00 -0800, John Brown wrote:
Before running mkinitrd use chroot to the mount point of the encrypted filesystem. That will have the command operate on that filesystem.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
-- John Brown mrjohnbrown@fastmail.fm -- http://www.fastmail.fm - Does exactly what it says on the tin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed January 31 2007 17:21, John Brown wrote:
Hi,
Thanks for your message! It helped.
Sorry, John, but I think Ken deserves at least a <grovel> or two, too! :-) That seemed like a particularly sticky situation and Ken knew just what to do! Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-01-31 at 18:04 -0500, Carl Hartung wrote:
On Wed January 31 2007 17:21, John Brown wrote:
Hi,
Thanks for your message! It helped.
Sorry, John, but I think Ken deserves at least a <grovel> or two, too! :-) That seemed like a particularly sticky situation and Ken knew just what to do!
Carl
I think I would prefer a Heineken or two instead. :-) Glad I was able to help. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carl Hartung
-
John Brown
-
Kenneth Schneider