Dm-crypt / LVM install issue [SOLVED]

--SOLVED--
Jeez..  I've been doing encryption and lvm for a long time..  I can't believe I had a brain fart on the install..  LOL
Well, I didn't think I'd need to ask for help this quick after coming back to Arch..  LOL
But....
I'm attempting to install an encrypted/LVM system. 
For some reason, I'm getting a busy fs error "Can't open /dev/sda2 exclusively. Mounted filesystem?", when I attempt my pvcreate.
I've done the following:
1) partitioned my drive: /dev/sda1 as unencrypted /boot of 256MB and /dev/sda2 as LVM type for the rest of the disk.
2) then I did my cryptsetup for sda2 (cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2)
3) then open the vol (cryptsetup luksOpen /dev/sda2 root)
Then I attempt my pvcreate (lvm pvcreate /dev/sda2) and get the error above.  I must be forgetting something, does anyone have any idea?
Thanks!!
Last edited by jackmetal (2009-11-05 18:14:23)

the installer has built-in support for lvm/dm_crypt btw. the advantage of doing it like that is that fstab, rc.conf, mkinitcpio.conf etc will be adjusted accordingly automatically.

Similar Messages

  • Problems after installing Arch [SOLVED]

    Hello,
    I attempted to follow the installation instructions to install Arch Linux. I followed those since they are faster than the Beginners Guide and didn’t meet some of my needs.
    For example, I was also wanting to install an LVM partition (and I'll backup and set up dm-crypt+LUKS later after I get this issue solved), which the Beginner Guide didn't mention and there were a few other minor tweaks I wanted.
    In my partition layout I have a 400MB boot (extra room for other kernels). followed by an LVM volume, which has one volume group with 4 logical partitions, these are: /, /home, /tmp, and /var.
    The problem:
    GRUB is not working, or at least it's not installed and configured correctly. When I boot up my computer, it says exactly, "GRUB", in the top-left corner of my screen and nothing happens. I have a poor understanding of the init/bootloader process in computers, which I am trying to learn slowly but steadily. I was re-reading the instructions for GPT specific partitions, which is what I use, and it says here:
    http://www.gnu.org/software/grub/manual … stallation
    That I'm supposed to have a "BIOS partition". This is interesting because I have no idea what this is for. Something came to mind when I was using cgdisk or gdisk, it would automatically allocate the first 2000-ish sectors (instead of 34 like the documentation was hinting), so this probably means something.... I don't know.
    And then I read that the BIOS installation for GPT is supposed to be done before you install Arch Linux. Whoops! So can I fix this without having to reinstall Arch? I can probably mount all of my directories and chroot inside again after creating the BIOS partition so GRUB can be configured and reinstalled correctly. Maybe I can fix this. I don't know.
    So I am trying to troubleshoot this problem, but is there anything I am understanding wrongly here? Is there some other reason why GRUB won't boot up? I tried Super GRUB 2 disk and that didn't work, there was just a blank screen when booting from grub.cfg. Any help or suggestions?
    I am using x86_64 Arch Linux with the installed 3.6.4-1-ARCH Linux kernel.
    Last edited by mrrhq (2012-11-08 22:31:49)

    mrrhq wrote:In my partition layout I have a 400MB boot (extra room for other kernels). followed by an LVM volume, which has one volume group with 4 logical partitions, these are: /, /home, /tmp, and /var.
    Be aware that logical partitions are a construct of the Master Boot Record (MBR) partitioning system; however, the title of your thread, and some of the specifics, suggest that you're using the GUID Partition Table (GPT) system, which doesn't use logical partitions. If you're certain you used gdisk or cgdisk, and not fdisk or cfdisk, then you're using GPT and I'd simply accept your use of the word "logical" as an error. If there's any doubt in your mind about this, though, you should investigate further, since some of the issues and solutions depend greatly on which partitioning system you used.
    That I'm supposed to have a "BIOS partition". This is interesting because I have no idea what this is for.
    The BIOS Boot Partition holds a portion of the GRUB code. It's used on GPT disks but not on MBR disks -- on MBR, the equivalent code goes in an officially-unallocated area immediately after the MBR. The BIOS Boot Partition can sometimes be just a few kibibytes in size, but it's usually either 1MiB or 2MiB. (I've seen reports that some configurations now require over 1MiB, but I haven't investigated this claim.)
    Something came to mind when I was using cgdisk or gdisk, it would automatically allocate the first 2000-ish sectors (instead of 34 like the documentation was hinting), so this probably means something.... I don't know.
    No, these are unrelated issues. Most partitioning tools today, including gdisk and its siblings, align all partitions on 2048-sector (1MiB) boundaries so as to avoid performance penalties that can be incurred on Advanced Format disks, SSDs, and some types of RAID arrays. See this article I wrote on the topic some time ago.
    That said, if you have nowhere else to put it, you could try creating a BIOS Boot Partition in that space. You'd need to change the alignment policy in gdisk or cgdisk to align on 1-sector boundaries to do so, although an 8-sector alignment would be safer for future changes if you've got an Advanced Format disk. The BIOS Boot Partition isn't really greatly affected by the alignment issues, so I wouldn't worry about leaving it unaligned. OTOH, if GRUB wants more then 1MiB on your system, this space would be too small, so it might be better to resize a partition to make room for the BIOS Boot Partition.
    WonderWoofy wrote:From what I understand (I have not tried this though) grub2 is actually lvm aware.  So you can put all partitions within the lvm, including boot.  If this is the case, I see no reason why you would not also be able to put the 2MB bios boot partition in there as well.
    GRUB 2 is LVM-aware, and it is possible to put your Linux /boot directory inside the LVM. If you want to do this, though, there's really no point to split /boot off into a separate logical volume (the LVM equivalent of a partition); you might as well just make it a normal directory off of the root (/) filesystem. I'm pretty sure it is not possible to put the BIOS Boot Partition inside the LVM. That's because the code to parse the LVM data structures is contained within the BIOS Boot Partition, thus creating a chicken-and-egg situation if you were to attempt it. Furthermore, the code to write to the BIOS Boot Partition looks for the partition type code in the disk's partition table, and there's no equivalent to that in the LVM data structures. (All this said, in principle you might be able to get something like this to work, but the result would be something similar, but not identical, to a BIOS Boot Partition.)
    Although GRUB 2 can read a kernel from within an LVM, I still prefer to keep a separate /boot partition. The reason is that you might not always use GRUB 2. If you wanted or needed to switch to another boot loader in the future, it might not be LVM-aware, and might need /boot to be on a true partition, not in an LVM. (This is true of every EFI boot loader except for GRUB 2, for instance.) In fact, I routinely create two or three smallish partitions on my computers so that I can create multiple /boot partitions for multi-boot configurations or to help transition to a new installation should the need arise. This can help simplify things when the time comes to start fresh.

  • SP2010 Foundation Post Install issues on development workstation - Database and Services

    Just recently installed SP2010 Foundation for a development workstation.  Platform isWin7 X64 pro, SQL 2008 (Developer edition)
    (1) Looks like search has some configuration issues.  This is in the Windows event log
    The Execute method of job definition Microsoft.SharePoint.Search.Administration.SPSearchJobDefinition (ID 38eefca2-d092-47f4-a833-23f8280c5f63) threw an exception. More information is included below.
    The device is not ready.  
    (2) In Central Admin > Servers in Farm
    Status - "Upgrade Available", 
    (3) In Central Admin > Manage Database Upgrade Status
    Sveral of the Datbase(s) mention that upgrade is recommended, but one in particular mentions that the DB is too old?
    WSS_Search_GHHTY
    SPSearchDatabase
    Database is too old and upgrade is required
    Huh?  
    (4) Looking at my local SQL 2008 instance that SP2010 created, I see several DB's with "Config" in the name along with a guid on the end of the name.  Is the result of re-running the configuration wizard several times while
    I was correcting install issues?

    here is question, i am assuming its fresh install not upgrade...
    when you run the config wizard( you mentioned many times), which option you select from 2nd try to on ward....cannot disconnect this server from farm?
    are you using any script to install ?
    I would say run the config wizard without disconnecting and this server will host CA option.
    from the central admin > manager server in farm...on top you will see farm version and config database name. note it
    from the Manage database Upgrade status page note all the db names
    now match it on sql and keep those and all other should gone now as a clean process.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • OTA Update 4.08.605.2 "Rebooting Now..." Issue - SOLVED!

    After so many tries and frustration I finally came across the information below and it worked like a charm 
    http://forums.androidcentral.com/verizon-droid-incredible/134246-second-gb-update-patch-wont-reboot-issue-solved.html
    Can't say this will work for everyone, but it worked for me.
    Boot into recovery
    Press and hold Power, Choose "Restart" option
    When screen turns off, press and hold Volume Down and Power
    When the white HBOOT screen appears, use the volume button to move down to “RECOVERY.”
    Press the Power button to select “RECOVERY.”
    When the triangle and exclamation appears, hold the Volume Up and Power button at the same time.
    Using the volume button, scroll down to “Wipe cache partition” and select it.
    Select "Reboot system now"
    You can now wait for the update to show up again, or try one of the methods in the post: For those who want the second GB update/patch to get the update again. It should reboot this time. Beware, it will stay at the Droid Eye screen after reboot for a while (~5 mins), but eventually, it did get installed. Be sure to make a lot of space for it though... 

    The restart option that AmDroid is talking about is not on the regular phone menu. Please read his post carefully. What he is talking about is in an advanced recovery based menu option.
    Also, I was on 2.2 and the clear cache set date and time forward trick did not work for me to get the udpate. The clear cache and set date and time forward trick seems to mostly work if you are already on 4.06 software version and want to get the 4.08 software version.
    For those on 2.2, patience is warranted! However, if you really cant wait and want to go the 4.06 update manually, you can search Android Forums dot com for manually install gingerbread. And don't worry about the article talking about being rooted. You dont need to be rooted. The instructions will work for a stock phone too. As soon as you do the manual 4.06, the 4.08 update will show up immediately.
    Hope this helps!

  • I was trying to activate my CS3 and got help from chat until he said it was an installing issue. The application opens and then closes unexpectedly.

    I just got a new mac and I'm trying to download my Adobe CS3 onto it. I was able to download and then I tried to activate it. I entered the CS3 serial number and then asked for the serial number of the older version. I originally bought CS2 on disc and downloaded it onto my old mac and from there bought an upgrade to CS3. I no longer have the discs or box for CS2 and so I do not have the CS2 serial number. I contacted chat support who helped until I reached the point where I could open the application but then it would quit immediately and say "Adobe Update quit unexpectedly." Then he said it was an installing issue and turned me to the forums. Help, please?

    JohnEden I would recommend running all available uninstallers to remove the current installation.  The uninstallers are located in the Applications/Utilities/Adobe Installers folder.  Once you have ran the uninstallers then please also utilize the CC Cleaner Tool for a complete removal.  You can find details on how to utilize the CC Cleaner Tool at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.

  • LUKS / dm-crypt / LVM setup hangs on shutdown

    Hi,
    I've just installed Archlinux together with full disk encryption based on LUKS/dm-crypt/LVM. Everything works fine, but during my shutdown process it takes about 20-30 seconds until the drives can be unmounted. The following error is yielded about a dozen times:
    device-mapper: remove ioctl on vgroup failed: device or resource is busy
    Device vgroup is still in use.
    Note that "vgroup" is the name of my LVM volume group.
    Any suggestions how I can get rid of these errors and speed-up the unmounting of the LVM volumes? Is there some "force" option which I could use?
    Any help is much appreciated.
    Thanks

    WonderWoofy wrote:That is the shutdown hook jasonwryan was referring to.  What that hook does is it makes it so that the system uses an initramfs to pivot the rootfs back away from being the rootfs, so that it can be unmounted cleanly before full power off.  That way it is only doing a hard stop of a read-only filesystem that resides in memory (the initramfs).
    Okay, in that case I already use the shutdown hook. Could you think of another problem that causes this huge delays during the shutdown of my system when the devices should get unmounted?
    Thanks.

  • Mac OSX: Flash CS3 Font Install Issues

    Hi,
    I have a Mac Powerbook G4 with OS X installed and Adobe CS3.
    I've installed a font. The font works in Photoshop and Illustrator
    but not in Flash CS3. Why? I've put the font in the Library/Fonts
    folder and the User/Fonts folder and it still doesn't show up in
    Flash. Apparently this is a problem for a number of people see
    another forum here:
    MAC
    OSX: Flash CS3 Font Install Issues Forum
    Please let me know what to do to fix this. I need to be able
    to work with the font in all three applications Flash, Photoshop
    and Illustrator.

    Hi davidd61713525,
    Sorry for not getting back to you sooner.
    Unfortunately, it looks like something is wrong with the file system and the installer can't see the root drive to install to.  A Google search returns numerous results affecting various products and the recurring theme is that something is wrong with the disk.  There are many recommendations from various sources, but nothing definitive.
    Here's a similar thread over on the Apple forums:
    Broken Installer Permissions | Apple Support Communities
    And a similar older one:
    http://forums.macrumors.com/showthread.php?t=1203509
    I would try the following options:
    Try using the PKG installer. This is used Mac SysAdmins to install Flash Player within their organization and uses a slightly different installer path, which may or may not work.
    Some people have had success with disk and permissions repair some have not.  You can try running a disk and permissions repair.  After the disk and permissions repair is complete, reboot the system and try to install again using either the online installer (get.adobe.com/flashplayer) or the offline installer, posted at the bottom of the Installation problems | Flash Player | Mac page in the ‘Still having problems’ section.
    If these options do not work, I'd reach out to Apple support to see if they have a suggestion.  If you do find a resolution to this, please let me know.  I'll be happy to share it with people that encounter the problem in the future.
    Maria

  • Re-Installing Issue

    Hi,
    I have a G5 I had to re install and erase my HD cause I had issues, now that i am rebuilding the system it won't let me install FCS, I get to the DVDP disc and it says Installation failed.... I tried it a few time and I get the same error. Can anyone shed some light on this please?
    thanks
    P

    Welcome to the forum!
    Made sure the disks are clean? I'd call Apple on an install issue if it's new or if you suspect a damaged disk and you're the registered user.
    Which OS are your running? QuickTime Version?
    Jerry

  • Webutil install issue

    Hello,
    I have a strange WebUtil install issue on 10gIAS 10.1.2.0.2. I downloaded the 1.0.6 WU version and put it into a webutil directory under forms (which the pre-configuration of AS seem to assume) and when I call the forms servlet with ?config=webutil the "RegisterWebUtil - Loading WebUtil Version 1.0.6" shows but the main applet doesn't load. The webutil HTML template is found and looks OK in View Source but no applet. The config section has a archive_jini but it behaves as if the main jar can't be found(?) Nothing extra in the jinit-console, even at log level 5. webutil.cfg is copied to forms/server and frmwebutil.jar to forms/java.
    Suggestions appreciated,
    Nik

    Hi,
    Can you check Vitual Path of WebUtil in the config file ..\forms\server\forms.conf?
    I would like to see your files
    ..\forms\server\default.env
    ..\forms\server\forms.conf
    BACH

  • Error when installing issue in Content Viewer

    Hi,
    I have a strange error in my Content Viewer.
    When downloading it stalls and a message says "Could not install issue, relaunch app and download your purchase again" (my translation from swedish).
    It sometimes stalls when downloading and sometimes when installing issue.
    Anyone got a solution or having the same problem?
    Br
    Henrik

    Henrik, this can be either or. The internal Acrobat.com servers seem to have download issues once a week or so.
    The best way I think you can determine this is if the download is failing at the same point during the download. If it is, it's a problem with the folio. If it's not, then it's a temporary problems with the servers.
    If it is a problem with the folio, there's no straightforward answer -- but if you were able to download that folio recently, delete or update the articles you've added since.
    If you have no idea what's causing it, you can either start deleting articles, or try updating them first.

  • Hi all ...I would like to add a language that is not available in Photoshop cc2014 .. My computer writes it but backwards .. How can I have this issue solves?

    hi all ...I would like to add a language that is not available in Photoshop cc2014 .. My computer writes it but backwards .. How can I have this issue solves?

    What language are you talking about? You might need to enable Edit/Preferences/Type/Middle Eastern and South Asian for proper display.

  • My macbook started crashing on startup. The startup tone wavers. I got it going with the option start keystroke. Is this apt to be software or hardware? I ordered new system software to see if a new install will solve.

    My macbook started crashing on startup. The startup tone wavers. I got it going with the option start keystroke. Is this apt to be software or hardware? I ordered new system software to see if a new install will solve.

    when you install the disc, do it with the machine powered off. Place the disc in the the slot, push it in while holding the power switch tp poer it up, while holding the "C" key down till the gear starts spinning. After the gear starts spinning you can release the C key and wait. This takes much longer than normal longer, then create a new account. Be ready to wait.
    USE YOUR ORIGINAL INSTALL DISC!

  • CS5 install issue? only appears to be a frame instead of filling the scree on Mac osx

    CS5 install issue? only appears to be a frame instead of filling the screen on Mac osx
    When I click on the middle it takes me back to the desktop

    Hi,
    I would recommend posting this query in the Adobe Photoshop forum.
    You will get a specific response relevant to this question.
    Thanks

  • Itune 64 install issues

      I'm having a lot of install issues appear when I try to install latest version of iTunes 64.  Error message "signatures is old or not valid".  Any suggestions?

    I have seen this work for the issue you described
    Remove iTunes and it's parts
    http://support.apple.com/kb/HT204275
    iTunes 12.1.1 for Windows
    https://support.apple.com/kb/DL1784?locale=en_US

  • Can' t read disk label, install issues

    can' t read disk label, install issues
    i am trying to install solaris 8 on a sparc5 (256mb, 4.2gb,110mhz). i initially installed using the installation disk and it seemed successful as i was able to load the rest of the cds. something went wrong though b/c the system is stuck in a rebooting loop after it finished the last cd. so i went searching and found that i could only have a root partition of no bigger than 1gb. since i used the installation disk, i was not given an option to specify slice sizes. so now, i am trying to redo the install starting from the first disk (1 of 2) and skipping the installation disk. when i do a "boot cdrom" with the 1 of 2 disk, i get the cant read disk label or something about short entry and it will not boot. i am using actual Solaris 8 cds and not downloads. what can i do to get it to boot up from the first disk, or fix the partitioning on the disk?

    I am using the offical Solaris 8 Installation 2/02 for SPARC Platform Edition for Sun Computer Systems February 2002, Revision A
    Output from the probe-ide command follows:
    device 0 (Primary Master)
    ATA Model: ST3160023A
    device 1 (Primary Slave)
    Removable ATAPI Model: LTN4865
    device 2 (Secondary Master)
    ATA Model: ST340016A
    device 3 (Secondary Slave)
    not present
    device 0 is the new hard disk that I just installed
    device 1 is the CDR drive
    device 2 is the original hard disk. I can boot this but now get some magic disk errors or something like that
    device 3 is not present
    I have all devices set to cable select according to the manual.
    Thanks for your help...
    Tom

Maybe you are looking for

  • How to go from case-insensitive to case-sensitive HFS?

    I installed Leopard server with the case-insensitive file system. Can I go from this to the case-sensitive HFS? The trouble I am having is with installing Wordpress... The sign-up page does not work at all and looking in the Apache log files reveals

  • List of Inbound deliveries whose GR not  done

    All SAP Gurus, How we can know the List of Inbound deliveries whose GR not  done for perticular palnt? Regards,

  • Trouble with bluetooth

    When trying to send an mp3 file to my phone, the loading bar stops and says "internal error". I can send pictures fine but i need some help with sending mp3 files. Any help would be appriciated, i am a mac newbie.

  • Get three previous records of the current record in an Oracle Form

    Hi, I need to get three previous records of the current record in an Oracle Form Sorry for the lengthy explanation: I have a table name: ARCHIVE_DATA with column name: coll_time and its data type DATE. SQL> SELECT COLL_TIME FROM ARCHIVE_DATA; COLL_TI

  • Safari crashing with mountain lion

    Since getting mountain lion my safari will crash at random.  i see posts with a crash log but I don't know how to do this.  Could someone please help? Mark