Systemd cryptsetup fails to map drive during reboot


 
Thread Tools Search this Thread
Operating Systems Linux Systemd cryptsetup fails to map drive during reboot
# 1  
Old 09-25-2017
Facebook Systemd cryptsetup fails to map drive during reboot

I have created an encrypted disk using the following command:
Code:
# cryptsetup create testcui /dev/sdb --key-file= /etc/keys --verify-passphrase plain

This created the correctly mapped device /dev/mapper/testcui
I have create the crypttab file with the following:
Code:
#
# test disk
#
/dev/mapper/testcui  /dev/sdb /etc/keys plain

this works fine. I can create directories and files on the device without any problem.Smilie
The problem comes when I reboot:
type in : < PassPhrase> ****
and then the following is pulled out of journalctl:
Code:
Sep 25 15:06:16 jubilee systemd[1]: Starting Cryptography Setup for /dev/mapper/testcui...
-- Subject: Unit systemd-cryptsetup@-dev-mapper-testcui.service has begun start-up
-- Unit systemd-cryptsetup@-dev-mapper-testcui.service has begun starting up.
Sep 25 15:06:27 jubilee systemd[1]: systemd-cryptsetup@-dev-mapper-testcui.service: main process exited, code=exited, status=1/FAILURE
Sep 25 15:06:27 jubilee systemd[1]: Failed to start Cryptography Setup for /dev/mapper/testcui.
-- Subject: Unit systemd-cryptsetup@-dev-mapper-testcui.service has failed
-- Unit systemd-cryptsetup@-dev-mapper-testcui.service has failed.
Sep 25 15:06:27 jubilee systemd[1]: Dependency failed for dev-mapper--dev-mapper-testcui.device.
-- Subject: Unit dev-mapper--dev-mapper-testcui.device has failed
-- Unit dev-mapper--dev-mapper-testcui.device has failed.
Sep 25 15:06:27 jubilee systemd[1]: Job dev-mapper--dev-mapper-testcui.device/start failed with result 'dependency'.
Sep 25 15:06:27 jubilee systemd[1]: Unit systemd-cryptsetup@-dev-mapper-testcui.service entered failed state.
Sep 25 15:06:27 jubilee systemd[1]: systemd-cryptsetup@-dev-mapper-testcui.service failed.
Sep 25 15:07:45 jubilee systemd[1]: Job dev-mapper-testcui.device/start timed out.
Sep 25 15:07:45 jubilee systemd[1]: Timed out waiting for device dev-mapper-testcui.device.
-- Subject: Unit dev-mapper-testcui.device has failed
-- Unit dev-mapper-testcui.device has failed.
Sep 25 15:07:45 jubilee systemd[1]: Dependency failed for File System Check on /dev/mapper/testcui.
-- Subject: Unit systemd-fsck@dev-mapper-testcui.service has failed
-- Unit systemd-fsck@dev-mapper-testcui.service has failed.
Sep 25 15:07:45 jubilee systemd[1]: Job systemd-fsck@dev-mapper-testcui.service/start failed with result 'dependency'.
Sep 25 15:07:45 jubilee systemd[1]: Job dev-mapper-testcui.device/start failed with result 'timeout'.
Sep 25 15:08:22 jubilee systemd[1]: Found device /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-testcui.
-- Subject: Unit dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2dtestcui.device has finished start-up
-- Unit dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2dtestcui.device has finished starting up.
Sep 25 15:08:22 jubilee systemd[1]: Found device /dev/disk/by-id/dm-name-testcui.
-- Subject: Unit dev-disk-by\x2did-dm\x2dname\x2dtestcui.device has finished start-up
-- Unit dev-disk-by\x2did-dm\x2dname\x2dtestcui.device has finished starting up.
Sep 25 15:08:22 jubilee systemd[1]: Starting File System Check on /dev/mapper/testcui...
-- Subject: Unit systemd-fsck@dev-mapper-testcui.service has begun start-up
-- Unit systemd-fsck@dev-mapper-testcui.service has begun starting up.
Sep 25 15:08:22 jubilee systemd-fsck[870]: /dev/mapper/testcui: clean, 11/1310720 files, 126322/5242880 blocks
Sep 25 15:08:22 jubilee systemd[1]: Started File System Check on /dev/mapper/testcui.
-- Subject: Unit systemd-fsck@dev-mapper-testcui.service has finished start-up
-- Unit systemd-fsck@dev-mapper-testcui.service has finished starting up.
Sep 25 15:08:25 jubilee systemd[1]: Starting Cryptography Setup for /dev/mapper/testcui...
-- Subject: Unit systemd-cryptsetup@-dev-mapper-testcui.service has begun start-up
-- Unit systemd-cryptsetup@-dev-mapper-testcui.service has begun starting up.
Sep 25 15:08:25 jubilee systemd-cryptsetup[888]: Volume /dev/mapper/testcui already active.
Sep 25 15:08:25 jubilee systemd[1]: Started Cryptography Setup for /dev/mapper/testcui.
-- Subject: Unit systemd-cryptsetup@-dev-mapper-testcui.service has finished start-up
-- Unit systemd-cryptsetup@-dev-mapper-testcui.service has finished starting up.

Can someone give me some help on why the systemd-cryptsetup is failing???Smilie

Moderator's Comments:
Mod Comment Welcome, please use ode tags for your code and data, thank you

Last edited by vbe; 09-26-2017 at 03:46 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Windows Drive Mount Fails to Refresh in RedHat

Hi all, I have a server running Red Hat Linux 7.2 and a Windows file server. I have mounted certain paths from the Windows file server on to the Red Hat server. I can specify access privileges to folders that are visible to different users who have access to both Windows and Linux servers.... (0 Replies)
Discussion started by: mister_frostee
0 Replies

2. UNIX for Dummies Questions & Answers

Map network drive

Hi I need to restore an oracle backup from production in a test x86 Solaris 10 box . But the space is limited and does not have enough to hold both the backup as well as database . Hence , I am thinking of mapping a network drive from another x86 Solaris 10. Pls let me know if it is... (3 Replies)
Discussion started by: Rossdba
3 Replies

3. Windows & DOS: Issues & Discussions

How to map a path to a drive in windows

Hi all, Can anybody explain me about mapping a path to a drive with example? Thanks (3 Replies)
Discussion started by: Bobby16
3 Replies

4. Solaris

X2200 in reboot loop & mounting ZFS drive on other boxes

So I was patching a Solaris 10 U08 X86 X2200 box in preparation for an Oracle upgrade. Rebooted the box because the patches failed and the box will not boot successfully. I need to back up the zones on the 2 drives before going further. I pulled the drives and attempted to mount them on my Ubuntu... (0 Replies)
Discussion started by: LittleLebowski
0 Replies

5. Windows & DOS: Issues & Discussions

Script to automatically map samba shares as network drive

Hopefully someone will be kind enough to help me. I have a fileserver acting as a PDC and providing samba shares to a small network. Authentication to the PDC is via LDAP (setup using ebox) The users all have real local accounts on the server. I would like a windows logon script that will:... (4 Replies)
Discussion started by: barrydocks
4 Replies

6. Linux

Auto map network drive using SAMBA with batch file

Hi everyone. I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are: 1) to have the share automatically map as the P: drive to members of the employees group 2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Discussion started by: unassassinable
0 Replies

7. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

8. Solaris

How to map drive from Sun Solaris to Windows! Help me

I have two servers, one running on Windows server 2003 and one running Sun Solaris 10. Can you help me how to map drive from Sun Solaris to Windows server 2003. Thanks (1 Reply)
Discussion started by: tanhq
1 Replies

9. UNIX for Dummies Questions & Answers

Map Drive from UNIX Server to Windows Clients

hi all ;; I have a Tru64 UNIX machine , first i want my employees ( windows clients) to see specific directory on unix , and how can i put a unix command in a visual basic code to copy the contents of that directory to drive c in the client side who request that by clicking a push button. ... (3 Replies)
Discussion started by: kafaween
3 Replies

10. Solaris

Map Network Drive...

Hallo...Hi, Anyone can help me???How can I map network drive from Windows if i'm using the Sun Solaris 8 server? :confused: (1 Reply)
Discussion started by: mrboomber
1 Replies
Login or Register to Ask a Question