LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-22-2012, 09:52 AM   #1
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

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

Code:
mkinitrd -c -k 2.6.37.6-smp -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
Code:
/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
Code:
boot = /dev/sda
image = /boot/vmlinuz-generic-smp-2.6.37.6-smp
initrd = /boot/initrd.gz
root = /dev/slack13-group/root
label = Slack-Crypt
read-only

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

Rep: Reputation: Disabled
There is a very useful script called mkinitrd_command_generator.sh 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.

Brian
 
Old 05-22-2012, 06:20 PM   #3
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Original Poster
Rep: Reputation: 32
Thanks BCarey,

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

BashTin
 
  


Reply



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

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

All times are GMT -5. The time now is 02:58 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