Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

grub - boot live .iso from luks partition

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Nekomata3
Posts: 3
Joined: 2014-07-12 17:53

grub - boot live .iso from luks partition

#1 Post by Nekomata3 »

Hello,
is it possible to boot a .iso as alternative linux os (on grub) after I type my luks password? The iso would be located in the home folder, that is encrypted with luks in a lvm, only /boot is unencrypted but it is too small to allocate the .iso, or do I need a bigger /boot partition for that? tried google some boot parameters but none worked.

thank you any help.

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: grub - boot live .iso from luks partition

#2 Post by kiyop »

I am not familiar with luks, but I found crypto.mod and lvm.mod and so on in /boot/grub directory. Thus I wonder if grub2 can decrypt the encrypted luks. As you may know, grub2 can loop-mount an iso file by loopback.mod and use its contents.
https://bbs.archlinux.org/viewtopic.php?id=169492
But there is another problem. Even if grub2 can decrypt the luks and can use the contents in the decrypted luks, debian kernel and initramfs must decrypt the luks and use the iso file in the luks. I am not sure if there is such useful live debian iso. Of course, you can manually make such initramfs (and/or kernel) by yourself.
http://live.debian.net/manual/stable/index.en.html
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

Nekomata3
Posts: 3
Joined: 2014-07-12 17:53

Re: grub - boot live .iso from luks partition

#3 Post by Nekomata3 »

kiyop wrote:I am not familiar with luks, but I found crypto.mod and lvm.mod and so on in /boot/grub directory. Thus I wonder if grub2 can decrypt the encrypted luks. As you may know, grub2 can loop-mount an iso file by loopback.mod and use its contents.
https://bbs.archlinux.org/viewtopic.php?id=169492
But there is another problem. Even if grub2 can decrypt the luks and can use the contents in the decrypted luks, debian kernel and initramfs must decrypt the luks and use the iso file in the luks. I am not sure if there is such useful live debian iso. Of course, you can manually make such initramfs (and/or kernel) by yourself.
http://live.debian.net/manual/stable/index.en.html
Yes, I'm familiar with booting ISO with grub, I have not find a way to make it load one in an encrypted lvm volume, it may be asking too much of grub...

Thank you.

Nekomata3
Posts: 3
Joined: 2014-07-12 17:53

Re: grub - boot live .iso from luks partition

#4 Post by Nekomata3 »

bump

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: grub - boot live .iso from luks partition

#5 Post by kiyop »

If only you can deal with grub2 correctly, you may be able to make it deal the iso file in an encrypted lvm volume. But the second problem seems harder. Be clever! ;)
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

Post Reply