Hello,
First of all, let me tell you my final goal before to describe the situation for which I require your help.
The ultimate goal is to have an encrypted USB key on two system, a key containing the boot that will be unencrypted and one USB key that will be encrypted and will contain the root, knowing that contrary to what the OpenSuse documentation indicates, it refuses to encrypt partitions like /.
To achieve this I developed my project in phases:
[ol]
[li]Install OpensSuse on two USB keys as needed for the final goal.[/li]To this point, everything is working properly, this means in particular that /boot is on a key, the / on the second key and the system can be used as a “basic” system.
[li]Use two other keys by copying all the original keys (/boot and /) on the new keys and modifying the necessary parameters (see tests below).[/li]At this point, I’m stuck.
[li]Last phase, encrypt the key that will contain /, copy the system and change the necessary settings.[/li]Of course, as you can see, before beginning this step, already I have to be able to boot a system on new keys, without encryption.
[/ol]
Used versions and configurations:
[ol]
[li]BIOS: drive order.[/li]
[LIST=1]
[li]hd0: /boot.[/li]
[li]hd1: /.[/li][/ol]
[li]OS: OpensSuse 13.1.[/li]
[li]File system: ext4 for all keys.[/li]
[li]Partitions: use UUID instead of traditionnal notation /dev/sdxx.[/li]
[li]GRUB: the one included in OpensSuse 13.1, GRUB2.[/li]
[li]Terminal: Super user mode.[/li]
[li]File Manager: Super user mode.[/li][/LIST]
Tests already done for Phase 2, unsuccessfully, of course:
[ol]
[li]Copy all the content of the original keys in the directories:[/li]
[LIST=1]
[li]/mnt/00_Orig/boot for the key containing /boot.[/li]
[li]/mnt/00_Orig/root for the key containing /.[/li]
[li]Information: rsync -aHAXP order is used to make these copies.[/li]
[LIST=1]
[li]N.B.: this command is used with these options for all copies below.[/li][/ol]
[/LIST]
[li]Formatting of two new USB keys in ext4.[/li]
[li]Mount of the news keys in folders:[/li]
[ol]
[li]/mnt/01_New/boot.[/li]
[li]/mnt/01_New/root.[/li][/ol]
[li]Copy the entire contents of:[/li]
[ol]
[li]/mnt/00_Orig/boot in /mnt/01_New/boot.[/li]
[li]/mnt/00_Orig/root in /mnt/01_New/root.[/li][/ol]
[li]Unmount of /mnt/01_New/boot.[/li]
[li]Mount of /mnt/01_New/boot in /mnt/01_New/root/boot.[/li]
[li]Chroot (chroot . /bin/bash) on /mnt/01_New/root.[/li]
[li]Yast execution.[/li]
[li]Adaptation and configuration control of the boot loader (GRUB) (System → Boot loader).[/li]
[ol]
[li]Boot from boot partion only option selected: Ok.[/li]
[li]Probe foreign OS off: Ok.[/li]
[li]Disk order :[/li]
[LIST=1]
[li]hd0: key contaning /boot.[/li]
[li]hd1: key contaning /.[/li][/ol]
[li]Removal of internal HDD: Ok.[/li][/LIST]
[li]Adaptation and control of configuration files:[/li]
[ol]
[li]etc/fstab : change the UUIDs of the original keys by the UUIDs of the key new keys.[/li]
[li]Files check:[/li]
[LIST=1]
[li]/boot/grub2/grub.cfg: the UUIDs of the original keys have been replaced with the UUIDs of the new keys → Ok[/li]
[li]/boot/grub2/device.map.new:new references hd0 drives for /boot and hd1 for / have been modified with those of the new USB keys→ Ok.[/li]
[li]Checking the /etc/default/grub file: no change (same as the original file) → Ok. [/li]
[li]Checking /etc/sysconfig/bootloader file: no change (same as the original file) → Ok. [/li][/ol]
[/LIST]
[li]As the above steps have remained ineffective, I tried to regenerate the /boot/initrd file with dracut --regenerate-all –force.[/li][/LIST]
Problem currently encountered: when the computer start, of course after the BIOS sequence, it appears the blinking cursor at the top left of the screen, but the “Grub loading” and “Welcome to grub” messages never appear.
By advance I thank those who take the time to read this message and will be able to answer, even it would be only for a part, to this situation.
Last question: Is this a mistake from me or just OpenSuse which does not support this type of “manipulation” by contrast, seems other distributions like Debian?