You are not logged in.

#1 2009-08-10 19:44:12

Psyce
Member
Registered: 2008-05-06
Posts: 51

Automount truecrypt with tcbootscreen

Old

Hi everybody,

i have encrypted my /home with truecrypt.

/etc/crypttab entry:
#home        /dev/sda4        ASK
then i inserted this in /etc/fstab

#/dev/mapper/home /home xfs noatime,user 0 0
When I try to mount it at boot it says wrong fs 
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Can someone help me please?

Last edited by Psyce (2009-08-12 10:02:52)

Offline

#2 2009-08-11 05:04:43

jwwolf
Member
Registered: 2009-06-29
Posts: 74

Re: Automount truecrypt with tcbootscreen

Take a look at this.
http://notes.lokorin.org/2007/1/9/mount … ns-on-boot

But I'd suggest using LUKS,and using crypttab and fstab to do the mounting(as you are trying to do now),without altering anything out of the ordinary.

Offline

#3 2009-08-12 10:03:20

Psyce
Member
Registered: 2008-05-06
Posts: 51

Re: Automount truecrypt with tcbootscreen

Push

Found tcbootscreen on google and tried it, but failed.

Tcbootscreen worked for the decrypt part but when I tried to bring it up in the boot sequence it failed.

This is the tut for Debian(German) http://privat.heinzelzwerg.de/howtos/de … x.html#p27.

Instead of update-rc.d tcbootscreen defaults, I edited my rc.conf and wrote tcbootscreen in the Deamons section.
My new problem is that archlinux doesn't stop the bootsecquence till I encrypted my hard disk. It goes straight to the tty login and then starts tcbootscreen which fails.

Is there a possibility to stop the boot sequence when I use tcbootscreen in the rc.conf or can I write it in the inittab with bootwait?

Offline

#4 2009-08-14 13:08:23

Psyce
Member
Registered: 2008-05-06
Posts: 51

Re: Automount truecrypt with tcbootscreen

Ok I think I got it running with tcbootscreen.

I just wrote the path to the script into rc.sysinit.

tcbootscreen is in /etc/rc.d

Entry in rc.sysinit is

/etc/rc.d/tcbootscreen

I wrote it before /bin/dmesg | /var/log/dmesg.log

I'll test it over the weekend.

Offline

#5 2009-12-19 20:58:11

Natanji
Member
Registered: 2009-09-22
Posts: 133

Re: Automount truecrypt with tcbootscreen

I just discovered that running tcbootscreen is a big security risk!
If you run htop, it will show all commands that were entered to start a program. As tcbootscreen uses Truecrypt's -p Parametern, your password will be just standing there, in full clearly readable text!

Does anyone know of alternatives to tcbootscreen that don't exhibit this flaw? Or rather, is there any possibility of auto-mounting a Truecrypt volume without the -p parameter?

Offline

Board footer

Powered by FluxBB