SCIENTIFIC-LINUX-USERS Archives

July 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Sun, 29 Jul 2012 15:27:37 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (86 lines)
> On Sun, Jul 29, 2012 at 12:30 AM, Todd And Margo Chester
> <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>
>         On Sat, Jul 28, 2012 at 9:40 PM, Todd And Margo Chester
>         <[log in to unmask] <mailto:[log in to unmask]>
>         <mailto:[log in to unmask]
>         <mailto:[log in to unmask]>__>> wrote:
>
>              Hi All,
>
>              Xfce 4.8
>              Scientific Linux 6.2, 64 bit
>
>              I have just encrypted my backup drive.  Is there anyway
>              to get it into my fstab?
>
>              Problem is rebooting removed the label I created in
>              /dev/mapper with
>
>                    # cryptsetup luksOpen /dev/sdb1 lin-bak
>
>              and in fstab, I can add:
>                 /dev/mapper/lin-bak  /lin-bak  ext4  defaults  1 0
>
>              But "/dev/mapper/lin-bak" vanishes on me after a reboot.
>
>              I can double click on the icon on my desktop and
>              it will mount in "/media/lin-bak".  But this plays
>              havoc on my scripts.  Gives me a long funny name
>              in /dev/mapper too, which disappears when you
>              dismount.
>
>              Be nice to be able to get the drive into my fstab.
>              If not, how do I mount it from the command line?
>
>              If I try to mount directly, I get
>
>                    # mount  /dev/sdb1  /lin-bak
>                    mount: unknown filesystem type 'crypto_LUKS'
>
>              Perplexed,
>              -T
>
>
>
>     On 07/28/2012 07:31 PM, Tam Nguyen wrote:> You need to map it in the
>     file /etc/crypttab.
>
>      >
>      > You want to configure your /etc/crypttab file to look like this:
>      > lin-bak     /dev/sdb1
>      >
>
>     Ah ha!  Thank you!
>
>     In /etc/crypttab, how do you handle passwords with spaces in
>     them?  I think it gags on quote marks.
>
>     -T
>
>

On 07/28/2012 09:46 PM, Tam Nguyen wrote:> I haven't tested it with 
password that contains space.  Try escape with
 > back slash key( \ ).
 >
 >
 >


Hi Tam,

With both quotes and backslashes, I get "key file missing".  So
I switched to a keyfile.

Now I get: special device /dev/mapper/lin-bak does not exist.

I can create /dev/mapper/lin-bak with
    cryptsetup luksOpen /dev/sdb1 lin-bak

but /dev/mapper/lin-bak disappears after I reboot.

Any ideas what I am doing wrong?

-T

ATOM RSS1 RSS2