Ask Your Question
2

How I Can boot Encrypted fedora from grub> Minimal Bash ?

asked 2018-06-25 12:20:59 -0500

timonxss gravatar image

updated 2018-06-26 12:18:28 -0500

Hi , I'm new here I've been using Fedora about year , and my question is that , i have installed Fedora on Encrypted Hard Disk with LVM and Here is my Volume Group

VG          #PV #LV #SN Attr   VSize  VFree
fedora_unix   1   4   0 wz--n- 47.04g 4.00m

and my Logical Volumes are

  LV   VG          Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  00   fedora_unix -wi-ao----  5.00g                                                    
  01   fedora_unix -wi-ao----  5.00g                                                    
  02   fedora_unix -wi-ao----  3.82g                                                    
  03   fedora_unix -wi-ao---- 33.21g

and The Result Of The lsblk is

 NAME                                            MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
 sda                                               8:0    0   50G  0 disk  
 ├─sda1                                            8:1    0  976M  0 part  /boot/efi
 ├─sda2                                            8:2    0    2G  0 part  /boot
 └─sda3                                            8:3    0   47G  0 part  
    ├─fedora_unix-03                              253:0    0 33.2G  0 lvm   
    │ └─luks-62a9d691-240c-49b9-b937-f611ef79b05c 253:2    0 33.2G  0 crypt /
    ├─fedora_unix-02                              253:1    0  3.8G  0 lvm   
    │ └─luks-79810c34-a63d-43b6-80db-297d7982d66e 253:3    0  3.8G  0 crypt [SWAP]
    ├─fedora_unix-00                              253:4    0    5G  0 lvm   
    │ └─luks-c49e658c-196a-4d07-8932-24e80fd36d79 253:7    0    5G  0 crypt /home
    └─fedora_unix-01                              253:5    0    5G  0 lvm   
      └─luks-9e434ce7-2686-4f3f-9d55-b90224a1c290 253:6    0    5G  0 crypt /var

      sr0                                              11:0    1 55.3M  0 rom

So How to define The root directory In grub > Minimal Bash ?

when i write

grub> ls

(hd0) (hd1) (hd1,gpt3) (hd1,gpt2) (hd1,gpt1) (lvm/fedora_unix-03)

(lvm/fedora_unix-02) (lvm/fedora_unix-01) (lvm/fedora_unix-00)

grub> set root=(hd1,gpt2)

grub> linuxefi /vmlinuz-4.17.2-200.fc28.x86_64  root=/dev/mapper/fedora_unix-03

grub> initrdefi /initramfs-4.17.2-200.fc28.x86_64.img

grub> boot

It does not boot , it just ask for the passpharse and after that the system could not switch to the real root file system

Thanks In Advance

Sorry For My English

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-06-26 16:24:24 -0500

timonxss gravatar image

Hi There , My Problem Has Been Solved

I Just need to write The root directory as below

grub> ls

(hd0) (hd1) (hd1,gpt3) (hd1,gpt2) (hd1,gpt1) (lvm/fedora_unix-03)

(lvm/fedora_unix-02) (lvm/fedora_unix-01) (lvm/fedora_unix-00)

grub> set root=(hd1,gpt2)

grub> linuxefi /vmlinuz-4.17.2-200.fc28.x86_64  root=/dev/mapper/luks-62a9d691-240c-49b9-b937-f611ef79b05c


grub> initrdefi /initramfs-4.17.2-200.fc28.x86_64.img

grub> boot

Summary : I've Created LVG named as fedora_unix and Then I've Created LVMs and After That I Encrypt These LVMs and Finally I installed Fedora ON These Encrypted LVMs

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-06-25 12:20:59 -0500

Seen: 205 times

Last updated: Jun 26 '18