LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-20-2013, 10:33 AM   #16
GazL
LQ Veteran
 
Registered: May 2008
Posts: 7,155

Rep: Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311

Well, that looks ok. Assuming you actually have an /etc/inittab on lukssda4, I'm stumped.
 
1 members found this post helpful.
Old 11-20-2013, 10:50 AM   #17
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
This is getting rather puzzling. I have managed to put echo statements in the init script (of the initrd.gz) - and I have found so far that the partition gets unlocked successfully and becomes available under /dev/mapper/lukssda4. It also gets mounted successfully under /mnt. Yet at the end, init still complains that there is no inittab file. Strange.

Edit: Right - I've also checked that at the end of the init script /mnt and /mnt/sbin contain the right stuff.

Last edited by xj25vm; 11-20-2013 at 11:04 AM. Reason: Spelling
 
Old 11-20-2013, 11:13 AM   #18
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by GazL View Post
Well, that looks ok. Assuming you actually have an /etc/inittab on lukssda4, I'm stumped.
Geeeez - I had one more look in /etc - and what do you know - no inittab! How is it possible for a brand new install not to have an inittab in place? Does it get created during a particular step of the setup, which might have gone wrong? I'm having a hard time deciding right now if I should jump out of the window, or the laptop should be the one to follow that route :-)

Aargh, sorry for this mess. I'm going to start a new install from scratch and see what happens. I still don't understand why there is no inittab in there.

Last edited by xj25vm; 11-20-2013 at 11:22 AM.
 
Old 11-20-2013, 11:36 AM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,374

Rep: Reputation: Disabled
/etc/inittab comes from package sysvinit-scripts. Of course it should be installed (you made a full installation, didn't you?) unless there be a problem with the media source of the packages.
 
Old 11-20-2013, 11:51 AM   #20
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
Right - I've done a full re-installation. Now there is an /etc/inittab (and I've used the same install media as before - go figure!). But now initrd refuses to mount /dev/mapper/lukssda4 - although it is there. I'll reboot with the boot usb stick and investigate further. I am absolutely dreading now Slackware installs involving dm-crypt and initrd. I don't think there is anything else in Linux with which I have had so much trouble - every single time. I'll keep you posted.


Edit: The error is:
Code:
mount: mounting /dev/mapper/lukssda4 on /mnt failed: No such device
And yet I get a prompt below the error, and I can check that the /dev/mapper/lukssda4 exists. If I try to mount it manually, it fails with the same error message. If I start the laptop from the boot/install usb stick, I can mount /dev/mapper/lukssda4 without any problem. What is the difference between the full environment and that of initrd - which might cause it to be unable to mount /dev/mapper/lukssda4?

Last edited by xj25vm; 11-20-2013 at 12:04 PM. Reason: Extra info added
 
Old 11-20-2013, 03:06 PM   #21
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 285Reputation: 285Reputation: 285
When it fails to mount from the initrd prompt, did you try vgscan --mknodes and vgchange -ay first?

BTW @Gazl or someone more knowledgable, I saw the thread re the -root option in RC1 after installing 14.1 with the old fashioned cryptvg name. Seems to work ok, but should I anticipate any problems? My mkinitrd:

mkinitrd -c -k 3.10.17 -f ext4 -r /dev/cryptvg/root -m mbcache:jbd2:ext4:ext2:vfat -C /dev/sda3:/dev/sdb1 -L -u -o /boot/initrd.gz -K UUID=D6FB-3C21:/EFI/Slackware/keyfile

(Sorry if it's a hijack, I was kind of wondering what the general answer to the original OP question was, as the README still mentions cryptvg and not lukssdx)

Last edited by mostlyharmless; 11-20-2013 at 03:13 PM. Reason: Added question
 
Old 11-20-2013, 03:23 PM   #22
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
Isn't vgscan used for LVM? I don't use LVM, just straightforward encrypted partitions.
 
Old 11-20-2013, 03:27 PM   #23
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 285Reputation: 285Reputation: 285
Ahh, I see, I got thrown by the -L. Still the error message is the same I'd expect if you were using LVM and hadn't done vgscan etc. Weird that you can see it, but not mount it with that error message.

Last edited by mostlyharmless; 11-20-2013 at 03:28 PM.
 
Old 11-20-2013, 03:40 PM   #24
GazL
LQ Veteran
 
Registered: May 2008
Posts: 7,155

Rep: Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311Reputation: 5311
@mh, There are currently three known issues:
  1. dmsetup isn't included in the initrd. If you use -L then this won't happen to you.
  2. the -r option of mkinitrd gets overridden by the root= from the lilo.conf, so an old style mkinitrd such as "mkinitrd -r cryptroot" won't take effect.
  3. USB keyboard owners are having to include some new modules in their initrd that they didn't use to need. (there's been a couple of threads about that)

In your case you've gone for a encrypted lvm setup which does neither of the first two, so you should* be fine.


(*) I say "should" because I really have no idea what's going on with xj25vm's system. He shouldn't be experiencing anywhere near this level of difficulty.
 
Old 11-20-2013, 04:16 PM   #25
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
Just a small extra note. I have tried to mount a non-encrypted partition (after the error message, which follows inputting the passphrase). I can't even mount /dev/sda1, which is my ext4 formatted boot partition. Something really strange is going on. As /bin/mount is a link to busybox, I have to assume there is something screwy with busybox - as I can mount those partitions normally - but that's just a supposition.

Edit: The above got me thinking and I've searched online for those mount errors in relation to busybox. It turns out that that is busybox's unhelpful way of telling you that you don't have the right kernel module loaded. I went back to my initrd-tree folder and lo' and behold, it didn't have any kernel modules there. This has clearly been a long troubleshooting session. I've re-run mkinitrd, this time checking the initrd-tree directory - and finally I have managed to boot all the way to the login prompt.

I really, really dread having to ever do this again - as mkinitrd with dm-crypt always seems to find some new way of breaking. I am keeping notes every time - and yet it still ends up being a headache.

Thanks again to everybody who contributed.

Last edited by xj25vm; 11-21-2013 at 03:55 AM. Reason: Spelling
 
1 members found this post helpful.
  


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
Different between Device Mapper and DM-Crypt and Cryptsetup , LUKS saeedsssss Linux - Software 1 10-01-2012 02:57 AM
The performance of plain dm-crypt versus LUKS TwinReverb Linux - General 1 12-05-2011 03:38 AM
How do I dual boot Windows XP and Slackware 13.1 with dm-crypt luks with lilo? gluesniffmonkey Slackware 5 06-06-2010 06:01 PM
Public key crypto with LUKS/dm-crypt? keschrich Linux - Security 0 10-31-2006 03:01 PM
System encryption with dm-crypt and luks? Zmyrgel Slackware 9 09-02-2006 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration