You are not logged in.

#1 2013-01-14 14:42:22

Vilius
Member
From: Dushanbe, Tajikistan
Registered: 2012-01-05
Posts: 26
Website

[SOLVED] How do I remove Luks encrypted partition?

First of all I naively tried to just remove the partition with GParted. There were some errors, and systemd was complaining about issues relating to the device after restart. Then I removed the lines relating to my device from /etc/fstab and /etc/crypttab. Now everything sort of works, but I get some errors during boot, and I have to wait for a minute or so for the time-out. sda6 is the partition in question, it used to be mapped as /dev/mapper/data:

/var/log/daemon.log wrote:

[vilius@cadmium ~]$ sudo cat /var/log/daemon.log | grep sda
[sudo] password for vilius:
Jan 14 19:00:07 localhost systemd[1]: Expecting device dev-sda6.device...
Jan 14 19:01:37 localhost systemd[1]: Job dev-sda6.device/start timed out.
Jan 14 19:01:37 localhost systemd[1]: Timed out waiting for device dev-sda6.device.
Jan 14 19:01:37 localhost systemd[1]: Job dev-sda6.device/start failed with result 'timeout'.

I guess I just have to let systemd know that the partition doesn't exist anymore, so it doesn't bother waiting for it. But how do I do that?

Last edited by Vilius (2013-01-15 10:24:14)

Offline

#2 2013-01-14 21:39:49

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: [SOLVED] How do I remove Luks encrypted partition?

Hum, systemd creates UNIT files for partitions, but I can not find any on my system. I'd try this.

systemctl disable dev-sda6.device

Or find the symlink and remove it.

updatedb
locate dev-sda6.device

OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#3 2013-01-15 10:23:59

Vilius
Member
From: Dushanbe, Tajikistan
Registered: 2012-01-05
Posts: 26
Website

Re: [SOLVED] How do I remove Luks encrypted partition?

hunterthomson, "systemctl disable dev-sda6.device" resulted in "Failed to issue method call: No such file or directory" error.

I double checked the crypttab file and the line was still there... Most likely I just forgot to save the file after editing, or something as dumb as that. I edited crypttab file again and now everything is fine.

Offline

Board footer

Powered by FluxBB