LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-24-2009, 07:38 PM   #16
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,478

Rep: Reputation: Disabled

in
Quote:
Code:
mkinitrd -c -k 2.6.30.5 -m ext3 -f ext3 -r crypt -C /dev/sda2 -o initrd-2.6.30.5.gz
it should be "-r /dev/cryptvg/root"

Brian
 
Old 08-24-2009, 08:03 PM   #17
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
Well I also tried with a separate initrd with these results:

Code:
mkinitrd -c -k 2.6.30.5 -m ext3 -f ext3 -r crypt -C /dev/sda2 -o initrd-2.6.30.5.gz -L

initrd = /boot/initrd-2.6.30.5.gz

mount: mounting crypt on /mnt failed: No such file or directory
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
             You can try to fix it. Type 'exit' when things are done.
 
Old 08-24-2009, 08:15 PM   #18
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
I also just tried this without any luck:

Code:
mkinitrd -c -k 2.6.30.5 -m ext3 -f ext3 -r /dev/cryptvg/root -C /dev/sda2 -o initrd-2.6.30.5.gz -L
and
mkinitrd -c -k 2.6.30.5 -m ext3 -f ext3 -r /dev/cryptvg/root -C /dev/sda2 -o initrd-2.6.30.5.gz
 
Old 08-25-2009, 04:23 AM   #19
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 729
Blog Entries: 3

Rep: Reputation: 78
Hello Chopp,

Let's try to see more clearly through your situation:

I assume that you followed instructions in README_CRYPT.TXT to create your LUKS and LVM partitions.

So you should have a filesystem configuration like this:

Code:
/dev/sda1		/boot
/dev/cryptvg/root	/
/dev/cryptvg/home	/home
with your LUKS/LVM partitions created on /dev/sda2.

Here are the steps I would recommend:

1) Boot using your installation DVD or first installation CD. At the prompt type in:

Code:
hugesmp.s root=/dev/sda2 rdinit= ro
2) Go into your /boot directory and create your initrd file:

Code:
cd /boot
mkinitrd -c -k 2.6.30.5 -m ext3 -f ext3 -r /dev/cryptvg/root -C /dev/sda2 -o initrd-2.6.30.5.gz -L
Check that file /boot/initrd-2.6.30.5.gz has been created.

3) Update file /etc/lilo.conf. The entry for the 2.6.30.5 kernel should look like:

Code:
image = /boot/vmlinuz-2.6.30.5
    initrd = /boot/initrd-2.6.30.5.gz
    root = /dev/cryptvg/root
    label = 2.6.30.5
    read-only
4) Run the lilo command to make sure your changes to lilo.conf are taken into account when you reboot:

Code:
lilo
5) reboot

Last edited by gegechris99; 08-25-2009 at 03:54 PM. Reason: correction of mkinitrd command
 
Old 08-25-2009, 03:33 PM   #20
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
Alright problem finally solved. It was simple really. BCarey you mentioned the ext3 built in should be a module. I somehow missed that until after I had tried it. :P

The kernel config I started with was from my previous laptop which was an X31, and the new one is an X41. Not many changes in the kernel config EXCEPT the new one having a sata drive. Once it, and the ext3 were changed the initrd built like it was supposed to.

I still don't understand why the CONFIG_BLK_DEV_DM, and CONFIG_DM_CRYPT
are built in, but the file system has to be an module?

Thank you kindly everyone for the help, and my apologies for my stupidity.

chopp
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64-current: Creation of LUKS encrypted partition segfaults titopoquito Slackware 16 08-16-2009 05:02 AM
Luks/Lvm after dd duplication brodo Slackware 10 03-12-2009 04:56 PM
New kernel and existing Luks/Lvm ? brodo Slackware 3 09-14-2008 10:44 AM
LVM + Encryption + Custom Kernel sparker Slackware 2 08-05-2008 05:47 PM
luks cryptsetup and lvm question ruzzed Linux - Software 3 09-16-2007 08:21 PM


All times are GMT -5. The time now is 04:10 PM.

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