Can't get lvm/luks to boot - cannot find root partition

Hi,
I'm trying to get a dm-crypt on top of lvm to boot but without success so far. I followed http://wiki.archlinux.org/index.php/Sys … r_dm-crypt and http://wiki.archlinux.org/index.php/Ins … AID_or_LVM, everything works fine (I can mount the partition) but when I try to boot from it, it cannot find the crypted partition and fails.
USELVM="yes"
HOOKS="base udev usb usbinput lvm2 encrypt filesystems"
root=/dev/mapper/sda2 cryptdevice=/dev/sda2:root2-lvol0 ro
jan@jan ~/src/xf86-video-ati $ ll /dev/mapper/
insgesamt 0
crw-rw---- 1 root root 10, 62 21. Feb 2008 control
brw------- 1 root disk 254, 0 21. Feb 2008 root
brw------- 1 root disk 254, 1 21. Feb 2008 root2-lvol0
brw------- 1 root disk 254, 2 21. Feb 2008 sda2
/dev/mapper/root is my current encrypted / without lvm
The boot process successfully identifies the lvm /dev/mapper/root2-lvol0 and continues with hook 'encrypt' but doesn't ask me for a passphrase but goes on to hook 'filesystems' and fails then because it can't mount the correct root-partition obviously.
There's only /dev/mapper/root2-lvol0 and /dev/mapper/control when I'm in the rescue sh from initrd.
Anyone got that combination to work?
- Jan

Reboot, at the sound of the chime (not before) depress the option key, when the startup manager appears choose OSX.

Similar Messages

  • Initramfs cannot find root partition in initramfs

    Hi,
    I recently changed the Mainboard in my PC and ran into some GRUB issues afterwards. After reinstalling it, it at least is able to boot the kernel.
    But when i select my installation I`m dropped in to the recovery shell with the message "Unable to find root device". In the recovery shell i cannot find it either, in /dev the whole SSD isnt listed. This confuses me, since the kernel is on a partition of that disk and obiously loaded already and i can access the device from a liveiso without any problems.
    My partitions are setup as follows:
    sda: (the missing device)
    1: /boot/efi
    2: /boot
    3: /
    4: swap
    sdb:
    1: /home
    Could the error be produced by the fact that sda is an SSD?
    Last edited by SpacePirate (2013-10-23 08:32:53)

    That worked! I generated new initramfss using mkinitcpio (was that necessary) and now the normal boot works, either.

  • HELP I can't get macbook air to boot!!

    Help!! I am traveling around the world right now and I can't get my MBA to boot up.  I shut it down by selecting shut down, after closing all windows.  A few hours later went to turn it on and nothing!  I am so frustrated! When I press the start button I get the chime, but the screen doesn't light up.   I can feel something whirring, and the logo on the back lights up but that is it.  I have tried repeatedly starting it and turning it off, nothing. Have tried holding the alt button and the start button at the same time, nothing.
    I am getting on a plane in the morning and going to Nicaragua so I can't call Apple nor can I go to a service center.  Right now it is 7:45 PM in Santo Domingo, Dominican Republic and the computer service centers are closed.
    I purchased the MBA in January of 2014 so it is less than 1 year old.  I purchased extended warranty recently.  I have the latest OS system installed, I have no USB sticks to start from.  All I have is the MBA.  Slapping it doesn't help Neither does yelling at it .  Any suggestions as to what I can do? This is the first time this has happened. I haven't dropped the computer.
    Thanks so much!

    The easiest thing to do is to reset the SMC:
    Power or other problems related to unexpected system sleep, shutdown, lights or fans call for an SMC reset. Read all the steps.
    Before Resetting the SMC
    Try each of the following steps in this order before you reset the SMC. Test the issue after completing each troubleshooting step to determine if the issue still occurs.
    Press Command + Option + Escape to force quit any application that is not responding.
    Put your Mac to sleep by choosing the Apple () menu from the upper-left menu bar and then choosing Sleep. Wake the computer after it has gone to sleep.
    Restart your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Restart.
    Shut down your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Shut Down.
    Resetting the SMC on portables with a battery you should not remove on your own
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if it's not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time. The power adapter indicator light may cycle off / on once.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.

  • How can I get network connection when booting from usb stick or dvd

    Computer: HP Pavillion P6-2450eo
    Secure Boot disabled
    Legacy Boot enabled
    Thruogh F9 I can boot in uefi mode from DVD and USB stick but I can't get at network connection from the loadet program. I have tried with Ubuntu 13.04, Linux Mint 15 and Boot Repair - all with same result.
    How can I get the programs to boot with network connection?
    On beforehand thanks!
    poul1304
    This question was solved.
    View Solution.

    Please verify that the programs (Ubuntu, Mint, Boot-Repair, etc.) you are attempting to use, support the Atheros AR8161L gigabit ethernet controller natively. Not all operating systems and software programs support every network device and/or configuration otut of the box. Many times, specific drivers must be loaded or injected into the OS for a device to function properly.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • How can I reactivate my phone if I cannot find the person who originally had the phone

    How can I reactivate my phone if I cannot find the person who originally had the phone

    You can't.  You need to contact the previous owner to get those log in details - this is the new activation lock and without it you will never be able to use that phone.
    You might have to start from scratch again and buy a new phone.

  • Boot: cannot find misc/sparv9/krtld

    while booting server is giving the following message and not allowing to boot.
    boot: cannot find misc/sparv9/krtld
    boot: error loading interpreter (misc/sparcv9/krtld)
    Elf64 read error
    boot failed
    Enter filename (/platform/sun4u/kernel/sparv9/unix)

    The error was complaining the kernel runtime linker was missing.
    Some of the things worth verifying are:
    - Was the boot disk set correctly in the OBP?
    If it is actually the correct disk, you could potential
    have a corrupted filesystem or accidentally deleted
    files.
    - Can the system boot up on CDROM/DVD-ROM?
    If you can boot up via CDROM, fsck and mount
    the root filesystem to see what happen. If the
    root fs is corrupted or files are missing, best bet
    is to re-install and recover any local configs from
    last good backup.

  • Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"

    Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"
    What are the correct mail account settings and more importantly the correct DNS settings
    Thank you for any help you may be able to provide
    Cheers
    Chris (iMac i7)

    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
              •          Server name: imap.mail.me.com
              •          SSL Required: Yes
              •          Port: 993
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    SMTP (outgoing mail server) information:
              •          Server name: smtp.mail.me.com
              •          SSL Required: Yes
              •          Port: 587
              •          SMTP Authentication Required: Yes
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to easily, and when it does it can never connect?

    I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to find wifi, and when it does find a wifi network it can never connect?  You think apple would have a clue how to fix it!  Because turning the wifi on and off doesn't work, resorting network settings doesn't work, even restoring phone to factory default doesn't work...

    Did not work. I've selected iMessage to ON and left it. After a few hours I recieved a message "activation unsuccessful. Turn on iMessage to try again". This has been going on for the past 3 days.

  • Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    If you purchased all of the songs through itunes store, please follow these steps:
    1. Open up Itunes and Click on Itunes Store
    2. Once you're in the Itunes Store look to right side of the screen and you should see the word "purchased". Click purchased and you'll be sent to a purchase screen.
    3. Click on "All Songs" and then it will show all the songs you've downloaded. From there you just hit the button that looks like a cloud with an arrow on it, and it will download all the songs all over again.

  • After upgrading from 8 to 9.0.1 I no longer have any search engines installed. I would like to install Google as my default search engine. When I click on "get more search engines" I cannot find Google or Bing or -

    Problem with search
    After upgrading from 8 to 9.0.1 I no longer have any search engines installed. I would like to install Google as my default search engine. When I click on “get more search engines” I cannot find Google or Bing or …

    I resolved my issue. Renamed search.sqlite and reinstalled Firefox 9.0.1
    All default search engines are now available.

  • I am trying to install current version of QuickTime.  I get the message that it cannot find QuickTime.msi on my computer.    Then I get a message "The older version of QuickTime cannot be removed. Contact your technical support group."

    I am trying to install current version of QuickTime.  I get the message that it cannot find QuickTime.msi on my computer.
    Then I get a message "The older version of QuickTime cannot be removed. Contact your technical support group.
    I am simply trying to view video files recorded on my iPhone and transferred to my computer.

    See if anything in this post might help...
    https://discussions.apple.com/message/22905774#22905774

  • [SOLVED] cannot find root device after pacman -Syu

    Today I had a problem after pacman -Syu. Of course, my problem stemmed from not paying attention to the following (from https://bbs.archlinux.org/viewtopic.php?id=57205):
    <b>Read pacman's output while upgrading.</b>
    I could no longer boot. I received a message "cannot find root device" or something similar indicating a device with the appropriate UUID had not been found and I was being dropped into a recovery shell, then, when I typed exit, an emergency shell, followed shortly by a freeze.
    After some investigation it appeared my initramfs was broken/non-existent/something after the install. I booted into a live CD and found that updating pacman again, and mkinitcpio -p linux both displayed the following error: "Failed to create temporary working directory in /tmp". Long story short: mktemp was segfaulting. This should be extremely easy to check if you're having a similar problem. I replaced it with the version on the live CD and ran the pacman update again. Success. If you do this, you may need to make sure your live cd architecture and installed kernel architecture are the same.
    I'm not sure of the etiquette here, so I'm posting this in case someone else has the same problem I did; and benefits from a similar solution. I have checked the etiquette post and I don't think it's clear whether it's kosher to post things that don't actually require a solution. However, if I have misinterpreted the rules/etiquette and/or this type of post is considered extraneous please remove it.

    You have to use lvm first.  As all those vg*, lv*, and pv* commands are actually links to the lvm command, you should have to do something like "lvm vgscan" instead of just "vgscan".
    Edit: oh and at that point in the boot process, you are actually in the initramfs still (ash to be specific).
    Edit2: I was having issues with a USB keyboard and a new machine (actually just a new bios), and found out that because of windows 8's requriement for a fast POST, the default is to turn off the scanning for usb devices.  Though this was for UEFI, and I am not sure if the same would apply for a bios booting machine...
    Last edited by WonderWoofy (2013-03-26 23:10:40)

  • How can i get my Powerpc to boot from a PCIe drive

    Hi, I just upgraded my PowerMac G5 Quad 2.5 with 16GB of ram & two 1.8 tyrabite drives. My problem is, I also installed a Velocity solo x2 PCIe card
    for a solid state drive. the system recogizes the drive but I'm having a problem with getting my system to boot from that PCIe card drive. Please if anyone
    can help me I greatly appreciate it.

    If you cannot get the ssd to boot, you can move folders to the ssd.
    Unix command ln  -- The Unix make link command. I have a copy of virtual PC.  It insists on using a folder in my documents folder for saving all of the virtual machine information.  This folder is rather large.  I used the terminal command ln to move the folder to my external hard drive.  Virtual PC had no problem with this move.  I do not think that Mac applications notice the ln redirects. 
    You can use the Unix command ln to redirect a reference to folder on your small partition to a folder on  your larger partition. You need to be careful when you pick the folder. You best avoid any system folder, those folders needed at startup. You could pick some user data folder.   Home folders, that is folders in /Users, are a good choice.  Please try this when you have a full backup.
    mac harddrive > Applications > Utilities > Terminal
    man ln
    ln -s target source
    example:
    let's make like my Christmas card folder is on my desktop and make like the names is cards.
    mac $ ls /Volumes   
    GREEN/          Macintosh-HD@
    mac $ ls /Volumes/GREEN/Christmas\ Cards/
    10 - NeoOffice Writer.pdf*      christmasLabels.odt*
    AddressList.ods*                env - NeoOffice Writer.pdf*
    ChristmasAddressList.xls*       env.odt*
    ChristmasAddressList0.odb*      getLabels.odt*
    al.odb*
    mac $ cd ~/Desktop/
    mac $ pwd
    /Users/mac/Desktop
    mac $ ln -s /Volumes/GREEN/Christmas\ Cards/  cards
    mac $ cd cards/
    mac $ pwd
    /Users/mac/Desktop/cards
    mac $ ls
    10 - NeoOffice Writer.pdf*      christmasLabels.odt*
    AddressList.ods*                env - NeoOffice Writer.pdf*
    ChristmasAddressList.xls*       env.odt*
    ChristmasAddressList0.odb*      getLabels.odt*
    al.odb*
    mac $
    An alternative way would be to install SymbolicLinker.  SymbolicLinker is a tiny contextual menu plugin that, once installed, allows any user to create symbolic links to files inside the Finder.
    http://www.macupdate.com/info.php/id/10433/
    How to redirect your iPhoto and ITunes files to an external harddrive:
    http://discussions.apple.com/thread.jspa?messageID=6058202#6058202
    Robert

  • Where can I get the source for boot of netinstall CD

    Sorry for the title, I wasn't able to write it out fully due to length constraints.
    So in an attempt to fix https://bbs.archlinux.org/viewtopic.php?id=139659 on my own, I thought I'd go and look at what the install CD does as it is booting up the version of Linux found on the netinstall CD.  It first creates a Linux environment where you can then run AIF.  I mounted and looked through the .iso of the installer that I used, but I couldn't find any useful config files for the boot process, so I'm thinking that it is in a binary form. I found the AIF source code, but that is for after the system boots up from the CD, and my problem happens before then.
    So where can I get the source code for the live CD portions that *aren't* AIF?

    It's a hybrid ISO, with a filesystem and a MBR slapped onto it which you can either write to a CD or "dd" to a HDD or USB stick.
    The bootloader is called ISOLINUX (which is part of the Syslinux project). You can find the "boot" files in the "isolinux" folder. For studying ISOLINUX itself, you have to shimmy on over to the Syslinux website. It's an awesome project. I ditched GRUB 2 for it and now use it as my primary bootloader. Much, much easier to work with.
    Last edited by DSpider (2012-04-16 16:45:21)

  • After installing firefox version 31 I keep getting error messages that firefox cannot find some servers. How can this be fixed?

    I use Ebates. Now when I go to Ebates and choose a store, then the transfer to store website comes up and then an error message that firefox cannot find the listed server. I keep getting that message alot.
    On the frontier homepage there is an error message that firefox cannot find the ad server for yahoo.
    I was having problems with firefox so I did a reset firefox and then installed the new version 31.
    Seems it might be draggy or slow/sluggish. I like using Ebates. I contacted them and they said they were not having any issues at the moment. I contacted my antivirus provider and they said they could not detect anything either. Would a system restore get me back to the older version?

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Problem with ENCTYPE='multipart/form-data'

    In my program I want to upload a file along with other details. I've dowloaded org.apache.commons.fileupload.* jar files and everything works fine only if I give <INPUT TYPE='file' NAME='file1'> i.e the file is uploaded But if I add any other field i

  • Keyboard layout switching not working

    i use xfce4 and i created /etc/X11/xorg.conf Section "InputClass"     Identifier             "Keyboard Defaults"     MatchIsKeyboard        "yes"     Option                 "XkbLayout" "us, ar"     Option                 "XkbOptions" "grp:alt_shift_t

  • My ipad has been stolen!!! serial:  F4LK94HDF193 please REPORT!!!

    I need send the message to the fuc*** thief, my ipad has been stolen! serial:  F4LK94HDF193, How do I place message to give me back ipad? the find my ipad is disable please HELP!!

  • Using older iMac as a dual monitor

    Can I hook up my G5 iMac to my iMac Intel to use it as a dual monitor?

  • I can't access the game injustice anymore!

    When I'm signed in with my Apple ID, i cannot access the game "injustice" anymore. This issue started two days ago. Before that I had no problems playing the game. I can only access the game when I'm signed out of my Apple ID, the same issue occurs i