Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-22-2012, 09:52 AM   #1
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1
Posts: 261

Rep: Reputation: 32
partial boot, mount invalid argument, lvm on luks

Ok guys rescue me again! Had a hd failiure and it turned out that lilo and the boot initrd.gz was on the drive that failed.

On the remaining drive is all my work (the one that failed was the backup) but could not boot it so used the install disk to mount all the partiions, cryptsetup luksOpen, vgscan --mknodes, vgchange -ay and then mount (I have an unencrypted boot partition on this drive too). Then I chroot into the mounted system and made a new initrd.gz with the command

mkinitrd -c -k -m ext2 -f ext2 -r /dev/slack13-group/root -C /dev/sda2 -L
sda1 is the unencrypted boot partition.
The boot partition is ext2.
The root parition is reiserfs.

So not sure if my mkinitrd command is correct. Do I need resierfs in there somewhere?

Then did the usual edits to lilo.conf and issue lilo command to install in mbr.

But it will not boot. I get
/boot/initrd.gz: Loading kernel modules from initrd image.
Unlocking LUKS encrypted device /dev/sda2 as luks mapped device 'lukssda2'. 
Enter passphrase for /dev/sda2:
     5 logical volume(s) in volume group "slack13-group" now active.
mount: mounting /dev/slack13-group/root on /mnt failed: Invalid arguement
ERROR: No /sbin/init found on rootdev (or not mounted) Trouble ahead.
You can try to fix it. Type exit when things are done.
So what did I miss or do wrong?

Any help as always very much appreciated, BashTin.

PS: lilo.conf looks like
boot = /dev/sda
image = /boot/vmlinuz-generic-smp-
initrd = /boot/initrd.gz
root = /dev/slack13-group/root
label = Slack-Crypt

Last edited by BashTin; 05-22-2012 at 10:33 AM.
Old 05-22-2012, 10:29 AM   #2
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,618

Rep: Reputation: Disabled
There is a very useful script called which in recent versions of slack can be found in /usr/share/mkinitrd. If you don't have it in your version of slack you can download and use the script from 13.37.

The -f flag should specify the filesystem of the root partition, not the boot partition, so in your case it should be reiserfs, not ext2.You will also need to add reiserfs to the list of modules (-m). There is a good chance you need some other modules as well, so you should run the command generator.

Old 05-22-2012, 06:20 PM   #3
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1
Posts: 261

Original Poster
Rep: Reputation: 32
Thanks BCarey,

yes, was using the wrong fs in the mkinitrd command. Everything back now... cheers.



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
[SOLVED] Kernel update on LUKS and LVM encrypted Slackware, mount fails KMBS Slackware 15 02-08-2010 01:23 PM
MINIX mount: Can't mount /dev/fd0 on floppy: Invalid argument jcaser1948 Other *NIX 2 10-04-2006 11:38 AM
Invalid argument when using cp -p to nfs mount Stuart65 Linux - General 6 08-16-2006 03:44 AM
Can't mount ext3 (Invalid argument) Mikessu *BSD 6 06-30-2004 09:05 PM
Mount Failed: Invalid Argument BoboBrazil Linux - Software 4 07-13-2003 12:57 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:56 AM.

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