FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is supposed to happen during startup of encrypted disk?

    I just installed F15 (Lovelock) on my laptop as dual boot Win/ F15. It was necessary to perform custom partitioning. I enabled encryption based on the information available in the installer. Thus I have an encrypted root and encrypted swap on a LVM group.

    A Fedora-styled graphic passphrase screen is immediately displayed after selecting Fedora in the GRUB menu. If I do nothing, Fedora only asks for the passphrase once. However, the swap partition is never unlocked. With a little bit of work I got a second prompt to appear, but this causes massive "display corruption". Its very "buggy" (nudge nudge, wink wink)

    Does anyone have a F15 install with encryption, and dual boot OR encryption over LVM? Is your swap or other partition unlocked? Do you see two uncorrupted blue Fedora passphrase screens--or do you have another setup? Is there some kind of post install tweaking/setup I need to perform to iron this out?

    If this is all new, here are some more details:
    I.) The drive's setup=
    Code:
    # lsblk --fs 
    NAME                                                                                   FSTYPE   LABEL            MOUNTPOINT
    sda                                                                     
    ├─sda1                                                                                 vfat           
    ├─sda2                                                                                 ext4                                 /boot
    └─sda3                                                                                 crypto_L       
      └─luks-2145471a-de7e-4ed4-b771-a565213de6bf          (dm-0)        LVM2_mem       
        ├─vg_F15-vg_root (dm-1)                                               crypto_L       
        │ └─luks-6caf0b39-564c-4088-a585-ec808472caa8     (dm-3)        ext4               /
        └─vg_F15-vg_swap (dm-2)                                             crypto_L    sr0                [swap]
    With the dual and Win taking the first partition, this forces me into the three physical volume plus LVM limitation. Thus swap and root partitions are part of a logical group. If I want encryption on root I discovered both logical partitions needed to be encrypted to continue the install.

    II.) Description of the boot screen corruption. I boot to runlevel 3. Screens are in order,
    1.) Grub menu - Choose Win or F15,
    2a) Enter first passphrase screen; This screen is Fedora blue. It has a nice rounded box with padlock icon and a text entry field. If I enter the correct passphrase, then the entry field is replaced with Fedora's round logo as progress "bubble-bar";

    2b) I can press the arrow keys during this screen, and the screen immediately becomes illegible and "graphically corupt". It is possible to recognize this is the same screen as (2a) above.
    If I type the correct passphrase, this screen disappears and the swap partition is unlocked during run time.
    (Note, this graphic corruption remains to step (4).
    Skip step (3)

    3.1) Alternatively, After 17 seconds Fedora blue screen and "progress bubble" disappears;
    3.2) This is replaced by black screen with a "gradation graphic" at the top of the screen. This graphic appears to be out of place and incorrect.
    3.3.a) If I do nothing, then after another 1 minuter and 50 seconds, the "gradation graphic" disappears. The swap partition is not unlocked and is unavailable during run time. Go to step 4.

    3.3.b) Alternatively, I can press the arrow keys after the blue screen disappears, and during the "gradation graphic" screen. These keys cause the graphic to disappear, and a text line appears. This prompts for the /swap passphrase. This I can enter and activate the swap partition making it available to the system during run time.
    3.4) After the swap passphrase is entered, the text output of the boot process is now visible.
    • Sometimes this screen is simple left-to-right text. Uncorrupted. Lines are printed to the display one at a time.
    • Other times multiple quasi-progress bars are interleaved with the output text. They are blue with three different blue tints. (Looks something like a cross between a PowerPoint bar chart and Frogger). The boot process text is now illegible.


    4) Arrive at run level 3. Normal command line prompt appears for entering user name and password.
    (Whew. If you're still with me and not confused, then you may have a multi-threaded brain :P)

  2. #2
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    There is no need for a key with a passphrase for swap!
    The swap is only encrypted, because if you suspend or shut down your machine, nobody should have access to the partition/file. It is achieved with a temporary key, most of the time some 512-bit from /dev/random, for the convinience to just enter one passphrase.

  3. #3
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    > There is no need for a key with a passphrase for swap!
    The only keys I am speaking of in my post are "keyboard" keys.

    > It is achieved with a temporary key [...] for the convinience to just enter one passphrase.

    I do not enjoy this convienence. This is my concern. My "normal Fedora-themed" boot process shows only one screen for entering the passphrase, yet the one passphrase is insufficient to unlock the swap partition!

  4. #4
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    Okay now i see, you have an encrypted partition which hosts the LVM, which again host an encrypted root lv and an encrypted swap lv. Sorry, but this is nonsense.
    There is no need for encryption inside of encryption. The second passphrase you enter is not for the swap, but for your root lv.
    Please look into /etc/crypttab to compare the entries with your system.

  5. #5
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    Here ya go... For all its worth
    Code:
    luks-6caf0b39-564c-4088-a585-ec808472caa8 UUID=6caf0b39-564c-4088-a585-ec808472caa8 none
    luks-618c5bc3-8cc2-4691-a86e-ab632c1e8e38 UUID=618c5bc3-8cc2-4691-a86e-ab632c1e8e38 none
    luks-2145471a-de7e-4ed4-b771-a565213de6bf UUID=2145471a-de7e-4ed4-b771-a565213de6bf none
    Now what?

  6. #6
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    The file looks okay.
    But i am kind of out of suggestions apart from reinstallation.
    In my opinion you cannot have encrypted LVs in an encrypted PV.
    The setup should have either an encrypted PV or some encrypted LVs, not both.

  7. #7
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    @michaaa62: Will you post one or more links describing in detail this position. I do not understand. I installed using the Fedora F15 iso. Maybe you are correct and there are more customization options I need to consider. Please support your claims.

  8. #8
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    This is my setup
    └─sda5 crypto_LUKS
    └─luks-1fabb8ab-34ec-4fba-a12f-b9e18c0fb70c (dm-0) LVM2_member
    ├─cryptVG-swap (dm-1) swap [SWAP]
    ├─cryptVG-root (dm-2) ext4 _Fedora-15-x86_6 /
    └─cryptVG-daten (dm-3) ext4 /media/daten
    This provides me with all the security, if the laptop will get lost. The containing partition is encrypted. Until i boot the system logical volume, the swap lv and the data lv are all hidden.
    This is the advantage of LVM, you just need one encrypted physical device to contain all of your partitions.

    The installation guide may provide deeper inside about encryption http://docs.fedoraproject.org/en-US/...cryption_Guide and LVMs http://docs.fedoraproject.org/en-US/...oning-lvm.html

  9. #9
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    @michaaa62: My position on encryption is much the same as it is presented by the installer. It is a level of security for a physical volume. I understand in the event my laptop is misplaced or stolen, this inclines the thief to delete my data before they can use my hardware. I do not need to understand more of the philosophy of encryption or of theft to understand this is something I would choose to add to my laptop's configuration.

    So. That said, while I appreciate your reply, I do not understand the completion of your thought. How is your reply responding to my post about troublesome corrupt graphics hiding the second passphrase entry box? Or describing the stages of a non-corrupt boot process?

    You said,
    In my opinion you cannot have encrypted LVs in an encrypted PV.
    After I posted my information, is this the case? Do I have this impossible configuration? More, I have read from other sources, not here, that it may not be possible to have only one passphrase!

    If you have solved this dilema, the links you provided and your outline have not made the issue for me. I'm sorry. But I do not understand what you are driving at.

  10. #10
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    I do not say your setup is impossible, but it is unnecessary.
    Because your physical device is encrypted, you don't need to encrypt the logical volumes.

    The corruption you are facing are from the killed framebuffer by the need to decrypt your root logical volume. To get rid of the corruption try to boot without Plymouth or without 'rhgb quiet' in the kernel boot line.

  11. #11
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    The installer application thinks its necessary! (>_<)

    Here is the installer screen (from the instruction page for F15)
    • Figure 8.36. Partitioning on x86, AMD64, and Intel 64 Systems
    • Figure 8.37. Creating Storage


    Here is the dialogue box for selecting the partition to be "encrypted"
    • Figure 8.38. Creating a New Partition


    I don't have an extra HD to test reinstalling the system, haha. I recall the steps as making a new LVM (Figure 8.37) and then selecting "Encryption" in Figure 8.38.

    Somewhere there was an option for making my passphrase a "global passphrase". I did have a problem during installation and had to reinstall (this is the second installation right now) and I can't recall specifically that I did select this option--though I can't imagine why I wouldn't, since it sounds so, ... useful (^_^).

    What I ended up with in terms of encryption, is a result of selecting encryption for each of the LVs. You can't select just one within a LV group.

    What's your secret michaaa62? If you used the installer to encrypt, what combination results in the configuration you are suggesting. Or did you do it another way?
    Last edited by xtian; 17th July 2011 at 01:03 AM. Reason: added smily to indicate greater emotional range

  12. #12
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    Okay, you got me cheating I prepared that partition before i started to be encrypted outside of anaconda installer.

    When the installer asked me about partitioning i choose 'Custon'. It then asked me for the passphrase for the encrypted device i had prepared. Then i made the three logical volumes and kept the 'encrypt'- box empty..., because i had the partition encrypted.

  13. #13
    Join Date
    Oct 2009
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    If I recall correctly, the iso boot disk makes it possible to set up the partition using gparted. In other words, the DVD contains the app used to install the system. Did you perform this setup from the DVD installer, or live media, or another hard drive?

    What did you use? # cryptsetup?

    This sounds like a good topic for a "Guides and Solutions" post!

  14. #14
    Join Date
    Jul 2011
    Location
    Berlin, Germany
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    I did it from a terminal just before starting the installer, because i wanted my personal setup with the labels i choose.
    I did shrink my Windows system partition, purge the two partitions they used for recovering and resetting this Windows with gparted and created a new primary partition for /boot and a logical partition without any filesystem.
    Then i went to the terminal and created the encrypted container for the LVM.
    Code:
    su
    cryptsetup luksFormat -y --cipher aes-xts-plain --key-size 512 /dev/sda5
    cryptsetup luksOpen /dev/sda5 crypt
    pvcreate /dev/mapper/crypt
    vgcreate cryptVG /dev/mapper/crypt
    lvcreate -n root -L 15.5G cryptVG
    lvcreate -n swap -L 4.5G cryptVG
    lvcreate -n data -l 100%FREE cryptVG
    That created 15.5 GB space for root, a 4.5 GB swap and all the free space for data. If you want you could apply the file-systems now, but the Installer also might take care of it. Now close the crypto- container.
    Code:
    cryptsetup luksClose crypt
    With these steps the preparations are over and the installer will pick everything up, ask for the passphrase of the encrypted partition, show you all the logical volumes and let you also choose a custom mount point for the data, like /home/$USER/data or /media/data. All the logical volumes do need no encryption, because the containing partition is encrypted.
    Last edited by michaaa62; 17th July 2011 at 07:17 PM.

  15. #15
    Join Date
    Jul 2004
    Location
    Finland
    Age
    47
    Posts
    380
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What is supposed to happen during startup of encrypted disk?

    Just for your information: I get the same "display corruption" (with burnout effect) almost everytime when asking for encryption password. And yes it is asking it separately for each partition. I have no LVM in use. I have following partitions:
    /dev/sda1 (Windows install partition)
    /dev/sda2 /boot
    /dev/sda3 swap (encrypted)
    /dev/sda4 (extended partition where sda5-6 are located)
    /dev/sda5 /root
    /dev/sda6 /home (encrypted)

    It is annoying when it's asking for password for every partition with garbled screen but I took rhgb away from boot parameters so now it's using text mode...

Page 1 of 2 12 LastLast

Similar Threads

  1. Boot from fully encrypted disk which looks like unused
    By User000 in forum Security and Privacy
    Replies: 0
    Last Post: 15th May 2011, 02:08 PM
  2. Encrypted Disk Boot
    By BarlasGuclu in forum Using Fedora
    Replies: 1
    Last Post: 27th November 2009, 07:49 PM
  3. F9 to F10 upgrade, now can't boot encrypted disk
    By ottow in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 5th October 2009, 08:04 PM
  4. palimpsest in readonly mode/encrypted disk lost
    By mariuszs in forum Alpha, Beta & Snapshots Discussions (Fedora 11 Only)
    Replies: 1
    Last Post: 4th June 2009, 08:45 AM
  5. Add new disk to encrypted LVM
    By mrscsi in forum Security and Privacy
    Replies: 0
    Last Post: 19th October 2008, 04:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •