You are not logged in.

#1 2011-05-11 21:20:07

TiborB
Member
Registered: 2008-12-09
Posts: 103

cryptsetup - how to disable automounting during boot

Hi,
I have encrypted partition on usb key, works fine, but when computer boots it complaint that it cannot mount the USB stick (not there usually).
How can I disable this attempt?

My setup:

/etc/fstab:
/dev/mapper/usb-private      /mnt/usb-private  ext2    user,noauto       0       0

/etc/crypttab:
/dev/mapper/usb-private /dev/disk/by-uuid/ae5.........49b /root/keyfile luks

Notice, I have noauto in fstab, but there must be other rule that attempts to mount the drive.

Problem is not critical, PC goes on with boot without waiting, but I would like to fix it anyway.

Regards

Offline

#2 2011-05-12 17:50:23

flan_suse
Member
Registered: 2010-10-28
Posts: 121

Re: cryptsetup - how to disable automounting during boot

In your /etc/crypttab, I don't believe you need to prepend the target name with the full path.

So instead of this:

/dev/mapper/usb-private /dev/disk/by-uuid/ae5.........49b /root/keyfile luks

Use this:

usb-private /dev/disk/by-uuid/ae5.........49b /root/keyfile luks

Notice there is no /dev/mapper/ in the target name anymore. Not entirely sure this will solve your problem, but it can't hurt to try. I was going to mention the "noauto" option, yet you're already using it.

Offline

#3 2011-05-12 21:06:11

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: cryptsetup - how to disable automounting during boot

I modified crypttab - no change during next boot...

Offline

#4 2011-05-13 02:44:47

flan_suse
Member
Registered: 2010-10-28
Posts: 121

Re: cryptsetup - how to disable automounting during boot

When you see the message, does it specifically say that /dev/mapper/usb-private is unavailable?

Offline

#5 2011-05-15 19:03:19

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: cryptsetup - how to disable automounting during boot

Today my PC run fsck so I had some time to notice what it prints out:

cryptsetup [-?vyrqlp] [--usage] [--version...........
/sbin/cryptsetup: unknown action

Looks like some syntax problem.....

Offline

Board footer

Powered by FluxBB