LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2013, 05:35 PM   #1
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Rep: Reputation: Disabled
Arch linux: No /dev/mapper/lvm-root ERROR


Greetings folks,

I've installed the new arch distro in a VM to try out before installing on my main PC and I followed the steps in the arch wiki to the letter.

I incorporated LVM and LUKS into the installation as I done this in the past with great success. However some things have change since I last used arch a few years ago.

Long story short, after the installation and everything seem fine, I rebooted the VM and I got this message:

ERROR: device '/dev/mapper/lvm-root' not found. Skipping fsck
ERROR: Unable to find root device '/dev/mapper/lvm-root'

I am using grub-bios which is grub2. And in case you're wondering I added encrypt and lvm2 in the mkinitcpio.conf file before filesystems of the HOOKS arrray.

I'm guessing grub2 didn't use cryptdevice. If this is the culprit how do I add cryptdevice in a grub2 configuration and is there any additional steps?

I gladly accept any help. Thx
Attached Thumbnails
Click image for larger version

Name:	temp.png
Views:	122
Size:	13.5 KB
ID:	12473  

Last edited by linux555; 05-06-2013 at 05:45 PM.
 
Old 05-06-2013, 06:34 PM   #2
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
I Solved it whoo hooo!
 
Old 05-06-2013, 06:35 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
please post what you did to solve the issue and mark thread as [SOLVED] please and thank you.
 
Old 05-06-2013, 07:17 PM   #4
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
First, I selected the Arch VM from virtualbox on the right

I clicked on storage. From the CD/DVD controller I choose to boot from a arch iso file.

Once the arch iso booted, I opened the encrypted device

Code:
cryptsetup luksOpen /dev/sda2 root
I enter my passphrase.

Next I mounted the lvm-root volume on /mnt and /dev/sda1 on /mnt/boot
Code:
mount /dev/mapper/lvm-root /mnt
mount /dev/sda1 /mnt/boot
I follewd this step from the arch wiki GRUB root encryption

Note: Do not do the regenerate the configuration yet. This comes later.

After editing the /mnt/etc/default/grub file I ran these commands

Code:
cd
arch-chroot /mnt
grub-mkconfig -o /boot/grub/grub.cfg
exit
shutdown -h now
I release the arch iso image so it won't boot and I boot up Arch normally.

When I booted into arch I was prompted for the passphrase of the crypted device. After I entered my passphrase it booted the system. I got the login prompt and logged into my system.

Cool!

Last edited by linux555; 05-06-2013 at 07:36 PM.
 
1 members found this post helpful.
Old 05-06-2013, 10:23 PM   #5
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
just testing my useragent from firefox in arch
 
Old 05-06-2013, 10:27 PM   #6
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
2nd try

Cool!!!
 
Old 05-07-2013, 08:49 AM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
gratz, and thank you.
 
Old 05-07-2013, 12:03 PM   #8
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
You're welcome lleb.

I came back to arch after a 3 year absent as I was using other distros. Arch now uses systemd so I thave to relearned some new stuff. I admit it is snappier than before.

Last edited by linux555; 05-07-2013 at 12:06 PM.
 
  


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
LVM pvs is showing /dev/dm-x as PV name instead of /dev/mapper n0rus Linux - Enterprise 3 08-05-2012 01:12 PM
fsck.ext2: Is a directory while trying to open /dev/mapper/root mukesh.methaniya Linux - Kernel 1 04-08-2011 09:25 AM
[SOLVED] CURRENT: LVM/CRYPTSETUP duplicate devices in /dev/mapper again. GazL Slackware 11 01-31-2011 07:36 PM
device-mapper error running kpartx on a LVM karateckie Linux - Software 2 12-15-2009 05:13 PM


All times are GMT -5. The time now is 03:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration