Encryption - Dual boot Grub [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Encryption - Dual boot Grub [Solved]

Postby unkn-error » Wed May 09, 2012 4:19

Is it possible to dual boot between two different linux distros which one is encrypted and one not in this scenario:

here is the cfdisk screenshot: http://i46.tinypic.com/2zy8nyo.png

I installed sabayon linux as /sda5 asigned to " /boot " and /sda6 assigned to " / "
when I installed I choosed "encrypt partition"

In the next step, I installed linux mint in /sda2 which has the ''/" and "/boot"

In the sabayon install I choosed install grub to /sda5
In the LMDE (mint) install I choosed install grub to /sda2

Now, If I set the boot flag to /sda2 I can boot mint
and If I set the boot flag to /sda5 I can boot sabayon
but it is really anoying to swich the boot flag every time I wish to switch between them,
how can I make the grub installed from LMDE (mint debian edition) to "see" the encrypted sabayon & boot it up?
8) :roll:
Last edited by unkn-error on Wed Jun 13, 2012 13:04, edited 3 times in total.
unkn-error
Baby Hen
 
Posts: 16
Joined: Tue Apr 03, 2012 19:03

Re: Encryption - Dual boot Grub

Postby harmon » Mon Jun 11, 2012 14:07

Hi!
Normally - if I install multi boot with preinstalled Windows (and I did install many tripel boot ) - I choose as boot loader
device [for the first Linux distribution to install] MBR (Master Boot Record of the first hard disk, e.g. /dev/sda),
for the second Linux I choose PBR (that means boot partition or if not existing, root partition of Linux2) ...
E.g.
a) Linux with boot partion in sda5 and root in sda6 -> sda5
b) Other Linux with root partition in sda7 and home partition in sda8 -> sda7
After having updated GRUB of Linux1 you can choose between all distributions (you don't need a flag on Linux partitions).
It is possible to install Grub - starting from the live medium - into the MBR after having installed a distribution where
Grub has been installed into PBR.
harmon
harmon @ Linux multiboot
harmon
Growing Hen
 
Posts: 165
Joined: Sat Jun 19, 2010 16:35

Re: Encryption - Dual boot Grub

Postby unkn-error » Tue Jun 12, 2012 21:08

This is what cfdisk say about my partitions:

http://i49.tinypic.com/ve2539.png

Here is what blkid say:
Code: Select all
[email protected]:/# blkid
/dev/loop0: UUID="fc7a4d72-3e9f-4178-bfc4-bb38c1ce1e0d" TYPE="ext4"
/dev/sda1: LABEL="WinSys" UUID="4CB4B8A6B4B89444" TYPE="ntfs"
/dev/sda2: LABEL="bootsabayon" UUID="e41e9722-68f4-427a-a654-6db70636987b" TYPE="ext4"
/dev/sda5: UUID="b4f8de00-2142-4ac1-89b4-f37dc66f9b0d" TYPE="crypto_LUKS"
/dev/sda6: UUID="b6baf991-11af-45d9-905f-e432f032cf5e" TYPE="crypto_LUKS"
/dev/sda7: LABEL="MyData" UUID="5620BA9A20BA8093" TYPE="ntfs"
/dev/sdb1: LABEL="MYLINUXLIVE" UUID="6CC0-3D92" TYPE="vfat"
/dev/mapper/encrypted: UUID="106e2fe8-a522-4664-995c-8d8451445a0b" TYPE="ext4"


[email protected]:/# less /etc/fstab |cat
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0



[email protected]:/# less /mnt/sabayon/etc/fstab |cat

#
# /etc/fstab
# Created by anaconda on Fri Jun  8 04:56:57 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=106e2fe8-a522-4664-995c-8d8451445a0b /                       ext4    defaults        1 1
UUID=e41e9722-68f4-427a-a654-6db70636987b /boot                   ext4    defaults        1 2
UUID=16d02b76-2f18-4b14-ab3d-75ca10fa1d43 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0


[email protected]:/#


But the system dosen't boot. And I really wish to restore grub to make the system boot... :( :?
Last edited by unkn-error on Wed Jun 13, 2012 11:07, edited 1 time in total.
unkn-error
Baby Hen
 
Posts: 16
Joined: Tue Apr 03, 2012 19:03

Re: Encryption - Dual boot Grub [Solved]

Postby harmon » Tue Jun 12, 2012 21:29

Hi!
Could you please try to remember and write down all steps (specified) - e.g.
1. Windows preinstalled
2. Partitioning before Installing?
2. Installation Linux (distribution?) from live CD/ DVD/ USB - own boot- / root- / home-partition? Boot loader device?
3. Deleting? New formatted?
4. New Installation? Boot loader?
5. Another Linux (distribution)?
Please post the output of Terminal Konsole (as root):
Code: Select all
for d in $(sed -ne 's/^.*\(sd.*\)/\1/p' /proc/partitions);do echo -e "$d\t ID: $(sudo hexdump -v -s 0x80 -n 2 -e '2/1 "%x" "\n"' /dev/$d)";done;echo -e "\nGRUB 1: 5272/aa75\nGRUB 2: 7c3c/48b4/020"

to see where Grub has been installed.
harmon
harmon @ Linux multiboot
harmon
Growing Hen
 
Posts: 165
Joined: Sat Jun 19, 2010 16:35

Re: Encryption - Dual boot Grub [Solved]

Postby unkn-error » Wed Jun 13, 2012 12:14

Thousand of excuses,
because of the fatigue I messed posts.


My actual problem goes here:

http://forum.sabayon.org/viewtopic.php?f=86&t=27305

Dual booting I had solved with moving the flag from /sda2 to sda3 and viceversa. Now I have deleted the sda2 but the system dosen't boot anymore.
unkn-error
Baby Hen
 
Posts: 16
Joined: Tue Apr 03, 2012 19:03


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests

cron