Sabayon 10 boot didn't mount encrypted filesystem [Solved]

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Sabayon 10 boot didn't mount encrypted filesystem [Solved]

Postby JamesHicks » Sun Sep 09, 2012 14:17

just ran an equo upgrade. now my /var won't mount. It is encrypted. System still boots but it really misses /var

After boot if I try to
mount /dev/disk/by-uuid/FUNKY-UUID-NUMBER /mnt/floppy

for example it says mount unknown filesyste type 'crypto_LUKS'.

my / partition is encrypted as well and it prompts me for it's password when I boot up. It used to ask me for the password for the /var partition when booting but it doesn't do that now. :shock:

I am able to do a
Code: Select all
cryptsetup luksOpen /dev/sdb2 var

after entering my password. I was able to do this
Code: Select all
mount /dev/mapper/var /var

and my /var directory is back. Now how can I make this happen on boot?
Last edited by JamesHicks on Mon Sep 10, 2012 13:25, edited 2 times in total.
JamesHicks
Baby Hen
 
Posts: 4
Joined: Sun Sep 09, 2012 13:51

Re: Sabayon 10 cannot mount encrypted filesystem

Postby r00t.ati » Mon Sep 10, 2012 12:23

Same problem here
User avatar
r00t.ati
Baby Hen
 
Posts: 12
Joined: Tue Mar 29, 2011 16:48

Re: Sabayon 10 cannot mount encrypted filesystem

Postby batvink » Mon Sep 10, 2012 12:45

place output of /etc/fstab here,
please.
Latest (important) news about sabayon?
Watch Rigo's notice board, or surf to:
https://wiki.sabayon.org/index.php?title=Wiki_News
User avatar
batvink
Technological Hen
 
Posts: 405
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands

Re: Sabayon 10 cannot mount encrypted filesystem

Postby r00t.ati » Mon Sep 10, 2012 12:51

Boot do not ask me anymore to enter a passphrease to /dev/sda5

EDIT = SOLVED FOR ME!
<svantoviit> sabayonweb8349: https://pastebin.sabayon.org/pastie/10482 have you moved your config to dmcrypt?


So i just add a new entry to /etc/conf.d/dmcrypt like this:
Code: Select all
target=home
source='/dev/sda5' #Luks partition
User avatar
r00t.ati
Baby Hen
 
Posts: 12
Joined: Tue Mar 29, 2011 16:48

Re: Sabayon 10 cannot mount encrypted filesystem

Postby JamesHicks » Mon Sep 10, 2012 13:07

The top commented out line was original uncommented line is an attempt to fix.
/etc/fstab
Code: Select all
UUID=836ffdd2-e1ec-4e67-90cf-cec46d8269f0 /                       ext4    defaults,noatime,discard        1 1
#UUID=19569485-671f-4a42-9040-55282590f827 /var                    ext4    defaults        1 2
UUID=d2eb2cce-9f41-443a-a0f2-c24dacfe60e0 /var                    ext4    defaults        1 2
UUID=2e3e500c-e389-4c34-a8ac-a70a8e390e9b /boot                   ext4    defaults,noatime,discard        1 2
UUID=3cfa206d-b206-4f7e-ba19-bd879ba13acc /opt                    ext4    defaults        1 2
UUID=41ca4a6c-f9d3-4235-ba64-42106ce8b90c /platter                ext4    defaults,users        1 2
UUID=8b3627dd-4a24-4bb2-8720-68b4da3244eb /tmp                    ext4    defaults        1 2
UUID=ed9c8e84-a933-4722-817f-279ab617bcdd 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


/etc/blkid.tab
Code: Select all
<device DEVNO="0x0802" TIME="1332123762.392951" UUID="08880407-c665-4526-9a94-eed9194e4ae8" TYPE="crypto_LUKS">/dev/sda2</device>
<device DEVNO="0x0812" TIME="1332123762.443803" UUID="d2eb2cce-9f41-443a-a0f2-c24dacfe60e0" TYPE="crypto_LUKS">/dev/sdb2</device>
<device DEVNO="0x0801" TIME="1332123856.339228" UUID="2e3e500c-e389-4c34-a8ac-a70a8e390e9b" TYPE="ext4">/dev/sda1</device>
<device DEVNO="0x0811" TIME="1332123856.506370" UUID="ed9c8e84-a933-4722-817f-279ab617bcdd" TYPE="swap">/dev/sdb1</device>
<device DEVNO="0x0813" TIME="1332123856.560685" UUID="3cfa206d-b206-4f7e-ba19-bd879ba13acc" TYPE="ext4">/dev/sdb3</device>
<device DEVNO="0x0815" TIME="1332123856.603106" UUID="8b3627dd-4a24-4bb2-8720-68b4da3244eb" TYPE="ext4">/dev/sdb5</device>
<device DEVNO="0x0816" TIME="1332123856.661466" UUID="41ca4a6c-f9d3-4235-ba64-42106ce8b90c" TYPE="ext4">/dev/sdb6</device>
<device DEVNO="0x0b00" TIME="1332123857.1177" LABEL="Sabayon KDE" TYPE="udf">/dev/sr0</device>
<device DEVNO="0xfb00" TIME="1332124351.61931" PRI="45" UUID="836ffdd2-e1ec-4e67-90cf-cec46d8269f0" TYPE="ext4">/dev/mapper/root</device>
<device DEVNO="0xfb01" TIME="1332123857.44702" PRI="45" UUID="19569485-671f-4a42-9040-55282590f827" TYPE="ext4">/dev/mapper/luks-d2eb2cce-9f41-443a-a0f2-c24dacfe60e0</device>


partial /boot/grub/grub.cfg

Code: Select all
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.4.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 2e3e500c-e389-4c34-a8ac-a70a8e390e9b
        echo    'Loading Linux x86_64-3.4.0-sabayon ...'
        linux   /kernel-genkernel-x86_64-3.4.0-sabayon ro  init=/linuxrc video=vesafb:ywrap,mtrr:3 quiet dokeymap keymap=us domdadm resume=swap:UUID=ed9c8e84-a933-4722-817f-279ab617bcdd real_resume=UUID=ed9c8e84-a933-4722-817f-279ab617bcdd root=/dev/mapper/root crypt_root=UUID=08880407-c665-4526-9a94-eed9194e4ae8 docrypt radeon.modeset=1 radeon.pcie_gen2=1
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-genkernel-x86_64-3.4.0-sabayon
}


Code: Select all
       NetworkManager |      default                                 
            alsasound |      default                                 
         avahi-daemon |      default                                 
             bootmisc | boot                                         
          consolefont | boot                                         
           consolekit | boot                                         
         cpufrequtils |      default                                 
                cupsd |      default                                 
                 dbus | boot                                         
                devfs |                                        sysinit
        device-mapper | boot                                         
              dmcrypt | boot                                         
                dmesg |                                        sysinit
           fbcondecor | boot                                         
                 fsck | boot                                         
             hostname | boot                                         
              hotplug | boot                                         
              hwclock | boot                                         
              keymaps | boot                                         
            killprocs |                        shutdown               
                local |      default nonetwork                       
           localmount | boot                                         
                  lvm | boot                                         
                mdadm |      default                                 
              modules | boot                                         
             mount-ro |                        shutdown               
                 mtab | boot                                         
               net.lo | boot                                         
             nfsmount |      default                                 
           ntp-client |      default                                 
            powernowd |      default                                 
               procfs | boot                                         
                 root | boot                                         
            savecache |                        shutdown               
                 swap |      default                                 
            swapfiles | boot                                         
               sysctl | boot                                         
            syslog-ng |      default                                 
         termencoding | boot                                         
                 udev |                                        sysinit
                  ufw |      default                                 
              urandom |      default                                 
           vixie-cron |      default                                 
              x-setup | boot                                         
                  xdm | boot
JamesHicks
Baby Hen
 
Posts: 4
Joined: Sun Sep 09, 2012 13:51

Re: Sabayon 10 cannot mount encrypted filesystem

Postby JamesHicks » Mon Sep 10, 2012 13:19

This fixed my problem as well

Added these lines to /etc/conf.d/dmcrypt
Code: Select all
target=var
source='/dev/sdb2' #Luks partition


Thanks r00t.ati ! I was so close yesterday....
JamesHicks
Baby Hen
 
Posts: 4
Joined: Sun Sep 09, 2012 13:51

Re: Sabayon 10 boot didn't mount encrypted filesystem [SOLVE

Postby JamesHicks » Tue Sep 11, 2012 3:33

Woops! wasn't as fixed as I thought it was. I also had to change my /var fstab entry
Code: Select all
/dev/mapper/var                            /var                   ext4    defaults        1 2
JamesHicks
Baby Hen
 
Posts: 4
Joined: Sun Sep 09, 2012 13:51

Re: Sabayon 10 boot didn't mount encrypted filesystem [Solve

Postby cichys » Tue Sep 11, 2012 19:28

I had the same problem
Now it's fixed following your posts, thanks guys :)
User avatar
cichys
Young Hen
 
Posts: 21
Joined: Tue Sep 04, 2012 12:42
Location: Italy


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest