How I Can boot Full Encrypted Distro Manually From grub> Minimal Bash?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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
In Fact I can Boot an Encrypted Ubuntu , because the root file system is defined as
root=/dev/mapper/ubuntu--vg-root
But In My Case , In Fedora , I Tried
root=/dev/mapper/fedora_unix-root
It Does Not work
I also tried
root=/dev/mapper/fedora_unix-03
and it doest work also
Thanks In Advance
Sorry For My English
bash fedora grub
add a comment |Â
up vote
0
down vote
favorite
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
In Fact I can Boot an Encrypted Ubuntu , because the root file system is defined as
root=/dev/mapper/ubuntu--vg-root
But In My Case , In Fedora , I Tried
root=/dev/mapper/fedora_unix-root
It Does Not work
I also tried
root=/dev/mapper/fedora_unix-03
and it doest work also
Thanks In Advance
Sorry For My English
bash fedora grub
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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
In Fact I can Boot an Encrypted Ubuntu , because the root file system is defined as
root=/dev/mapper/ubuntu--vg-root
But In My Case , In Fedora , I Tried
root=/dev/mapper/fedora_unix-root
It Does Not work
I also tried
root=/dev/mapper/fedora_unix-03
and it doest work also
Thanks In Advance
Sorry For My English
bash fedora grub
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
In Fact I can Boot an Encrypted Ubuntu , because the root file system is defined as
root=/dev/mapper/ubuntu--vg-root
But In My Case , In Fedora , I Tried
root=/dev/mapper/fedora_unix-root
It Does Not work
I also tried
root=/dev/mapper/fedora_unix-03
and it doest work also
Thanks In Advance
Sorry For My English
bash fedora grub
edited Jun 26 at 17:04
asked Jun 25 at 18:15
Ahmed Abdul-Monem
11
11
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
On my non-luks lvm setup with this schema
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 978.1G 0 disk
âÂÂâÂÂsda1 8:1 0 260M 0 part /boot/efi
âÂÂâÂÂsda2 8:2 0 977.9G 0 part
âÂÂâÂÂvtb-Kali 253:0 0 50G 0 lvm /
âÂÂâÂÂvtb-Bunsen 253:1 0 10G 0 lvm
âÂÂâÂÂvtb-Home 253:2 0 200G 0 lvm /home
âÂÂâÂÂvtb-Work 253:3 0 300G 0 lvm /home/bu5hman/Documents/work
My GRUB boot sequence for those joyous occasions when the GRUB
goes splat is
set root=(/lvm/vtb-Kali)
linux /vmlinuz root=/dev/mapper/vtb-Kali
initrd /initrd.img
boot
From this it seems you are pointing set root
at the wrong partition.
Making a leap of faith to Fedora for setting the root to the /
on your lvm and leaving fstab to pick up /boot/efi
I would suggest you try
set root=(/lvm/fedora_unix-03)
linuxefi /vmlinuz-4.17.2-200.fc28.x86_64 root=/dev/mapper/fedora_unix-03
initrdefi /initramfs-4.17.2-200.fc28.x86_64.img
boot
If that doesn't work then try it without the leading /
in set root
set root=(lvm/fedora_unix-03)
EDIT: after discussion in comments
try
`set root=` with either of the 2 options in my previous post.
After your call to linuxefi use
root=/dev/mapper/luks-d2c9decd-e486-4ef3-9146-654ca2b4ec0a
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
On my non-luks lvm setup with this schema
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 978.1G 0 disk
âÂÂâÂÂsda1 8:1 0 260M 0 part /boot/efi
âÂÂâÂÂsda2 8:2 0 977.9G 0 part
âÂÂâÂÂvtb-Kali 253:0 0 50G 0 lvm /
âÂÂâÂÂvtb-Bunsen 253:1 0 10G 0 lvm
âÂÂâÂÂvtb-Home 253:2 0 200G 0 lvm /home
âÂÂâÂÂvtb-Work 253:3 0 300G 0 lvm /home/bu5hman/Documents/work
My GRUB boot sequence for those joyous occasions when the GRUB
goes splat is
set root=(/lvm/vtb-Kali)
linux /vmlinuz root=/dev/mapper/vtb-Kali
initrd /initrd.img
boot
From this it seems you are pointing set root
at the wrong partition.
Making a leap of faith to Fedora for setting the root to the /
on your lvm and leaving fstab to pick up /boot/efi
I would suggest you try
set root=(/lvm/fedora_unix-03)
linuxefi /vmlinuz-4.17.2-200.fc28.x86_64 root=/dev/mapper/fedora_unix-03
initrdefi /initramfs-4.17.2-200.fc28.x86_64.img
boot
If that doesn't work then try it without the leading /
in set root
set root=(lvm/fedora_unix-03)
EDIT: after discussion in comments
try
`set root=` with either of the 2 options in my previous post.
After your call to linuxefi use
root=/dev/mapper/luks-d2c9decd-e486-4ef3-9146-654ca2b4ec0a
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
add a comment |Â
up vote
0
down vote
On my non-luks lvm setup with this schema
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 978.1G 0 disk
âÂÂâÂÂsda1 8:1 0 260M 0 part /boot/efi
âÂÂâÂÂsda2 8:2 0 977.9G 0 part
âÂÂâÂÂvtb-Kali 253:0 0 50G 0 lvm /
âÂÂâÂÂvtb-Bunsen 253:1 0 10G 0 lvm
âÂÂâÂÂvtb-Home 253:2 0 200G 0 lvm /home
âÂÂâÂÂvtb-Work 253:3 0 300G 0 lvm /home/bu5hman/Documents/work
My GRUB boot sequence for those joyous occasions when the GRUB
goes splat is
set root=(/lvm/vtb-Kali)
linux /vmlinuz root=/dev/mapper/vtb-Kali
initrd /initrd.img
boot
From this it seems you are pointing set root
at the wrong partition.
Making a leap of faith to Fedora for setting the root to the /
on your lvm and leaving fstab to pick up /boot/efi
I would suggest you try
set root=(/lvm/fedora_unix-03)
linuxefi /vmlinuz-4.17.2-200.fc28.x86_64 root=/dev/mapper/fedora_unix-03
initrdefi /initramfs-4.17.2-200.fc28.x86_64.img
boot
If that doesn't work then try it without the leading /
in set root
set root=(lvm/fedora_unix-03)
EDIT: after discussion in comments
try
`set root=` with either of the 2 options in my previous post.
After your call to linuxefi use
root=/dev/mapper/luks-d2c9decd-e486-4ef3-9146-654ca2b4ec0a
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
add a comment |Â
up vote
0
down vote
up vote
0
down vote
On my non-luks lvm setup with this schema
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 978.1G 0 disk
âÂÂâÂÂsda1 8:1 0 260M 0 part /boot/efi
âÂÂâÂÂsda2 8:2 0 977.9G 0 part
âÂÂâÂÂvtb-Kali 253:0 0 50G 0 lvm /
âÂÂâÂÂvtb-Bunsen 253:1 0 10G 0 lvm
âÂÂâÂÂvtb-Home 253:2 0 200G 0 lvm /home
âÂÂâÂÂvtb-Work 253:3 0 300G 0 lvm /home/bu5hman/Documents/work
My GRUB boot sequence for those joyous occasions when the GRUB
goes splat is
set root=(/lvm/vtb-Kali)
linux /vmlinuz root=/dev/mapper/vtb-Kali
initrd /initrd.img
boot
From this it seems you are pointing set root
at the wrong partition.
Making a leap of faith to Fedora for setting the root to the /
on your lvm and leaving fstab to pick up /boot/efi
I would suggest you try
set root=(/lvm/fedora_unix-03)
linuxefi /vmlinuz-4.17.2-200.fc28.x86_64 root=/dev/mapper/fedora_unix-03
initrdefi /initramfs-4.17.2-200.fc28.x86_64.img
boot
If that doesn't work then try it without the leading /
in set root
set root=(lvm/fedora_unix-03)
EDIT: after discussion in comments
try
`set root=` with either of the 2 options in my previous post.
After your call to linuxefi use
root=/dev/mapper/luks-d2c9decd-e486-4ef3-9146-654ca2b4ec0a
On my non-luks lvm setup with this schema
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 978.1G 0 disk
âÂÂâÂÂsda1 8:1 0 260M 0 part /boot/efi
âÂÂâÂÂsda2 8:2 0 977.9G 0 part
âÂÂâÂÂvtb-Kali 253:0 0 50G 0 lvm /
âÂÂâÂÂvtb-Bunsen 253:1 0 10G 0 lvm
âÂÂâÂÂvtb-Home 253:2 0 200G 0 lvm /home
âÂÂâÂÂvtb-Work 253:3 0 300G 0 lvm /home/bu5hman/Documents/work
My GRUB boot sequence for those joyous occasions when the GRUB
goes splat is
set root=(/lvm/vtb-Kali)
linux /vmlinuz root=/dev/mapper/vtb-Kali
initrd /initrd.img
boot
From this it seems you are pointing set root
at the wrong partition.
Making a leap of faith to Fedora for setting the root to the /
on your lvm and leaving fstab to pick up /boot/efi
I would suggest you try
set root=(/lvm/fedora_unix-03)
linuxefi /vmlinuz-4.17.2-200.fc28.x86_64 root=/dev/mapper/fedora_unix-03
initrdefi /initramfs-4.17.2-200.fc28.x86_64.img
boot
If that doesn't work then try it without the leading /
in set root
set root=(lvm/fedora_unix-03)
EDIT: after discussion in comments
try
`set root=` with either of the 2 options in my previous post.
After your call to linuxefi use
root=/dev/mapper/luks-d2c9decd-e486-4ef3-9146-654ca2b4ec0a
edited Jun 28 at 11:09
answered Jun 26 at 18:22
bu5hman
1,164214
1,164214
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
add a comment |Â
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
Thanks Sir , But For Sorry It does not work Here is my /etc/fstab
â Ahmed Abdul-Monem
Jun 26 at 18:48
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451813%2fhow-i-can-boot-full-encrypted-distro-manually-from-grub-minimal-bash%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password