LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 13.37
Posts: 252

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,455

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 13.37
Posts: 252

Original Poster
Rep: Reputation: 32
Thanks BCarey,

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

BashTin
 
  


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
[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


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