Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-20-2013, 10:33 AM
|
#16
|
LQ Veteran
Registered: May 2008
Posts: 7,155
|
Well, that looks ok. Assuming you actually have an /etc/inittab on lukssda4, I'm stumped.
|
|
1 members found this post helpful.
|
11-20-2013, 10:50 AM
|
#17
|
Member
Registered: Jun 2008
Posts: 399
Original Poster
Rep:
|
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
|
|
|
11-20-2013, 11:13 AM
|
#18
|
Member
Registered: Jun 2008
Posts: 399
Original Poster
Rep:
|
Quote:
Originally Posted by GazL
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.
|
|
|
11-20-2013, 11:36 AM
|
#19
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,374
Rep: 
|
/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.
|
|
|
11-20-2013, 11:51 AM
|
#20
|
Member
Registered: Jun 2008
Posts: 399
Original Poster
Rep:
|
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
|
|
|
11-20-2013, 03:06 PM
|
#21
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
|
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
|
|
|
11-20-2013, 03:23 PM
|
#22
|
Member
Registered: Jun 2008
Posts: 399
Original Poster
Rep:
|
Isn't vgscan used for LVM? I don't use LVM, just straightforward encrypted partitions.
|
|
|
11-20-2013, 03:27 PM
|
#23
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
|
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.
|
|
|
11-20-2013, 03:40 PM
|
#24
|
LQ Veteran
Registered: May 2008
Posts: 7,155
|
@mh, There are currently three known issues:
- dmsetup isn't included in the initrd. If you use -L then this won't happen to you.
- 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.
- 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.
|
|
|
11-20-2013, 04:16 PM
|
#25
|
Member
Registered: Jun 2008
Posts: 399
Original Poster
Rep:
|
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.
|
All times are GMT -5. The time now is 06:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|