Re: Broken header of a luks-partition - more than once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



spamzad@xxxxxxxxxxxxxx wrote:
> ... /dev/mapper/home and then /home. Cryptsetup didn't recognize it
> as a luks-partition.
> ... same thing happened again
> ...
> martin@Computername:~$ cat /etc/fstab
> ...
> /dev/mapper/home        /home   ext3 defaults  0     2

I'm fairly new to LUKS, but are your sure about ext3?  I use ext2
throughout and so far, so good.


Using one identifier "home" in multiple contexts would confuse me, and
could be confusing some piece of software.  I try to use unique and
meaningful identifiers everywhere to keep things straight (especially
with multiple drives, LUKS, and LVM).


Here is an external drive that holds backup and archive images.  Note
the ext2 partition and ext2 file system, and related names /dev/sda1,
/dev/mapper/sda1_crypt, and /mnt/sda1_crypt:

    2009-08-24 11:38:58 root@p3600 ~/p3600
    # parted /dev/sda print
    Model: Seagate FreeAgent XTreme (scsi)
    Disk /dev/sda: 1500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number  Start  End     Size    Type     File system  Flags
     1      512B   1500GB  1500GB  primary  ext2


    2009-08-24 11:40:35 root@p3600 ~/p3600
    # fdisk -l /dev/sda

    Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xb2dd7b60

       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1      182402  1465138583+  83  Linux


    2009-08-24 11:42:53 root@p3600 ~/p3600
    # grep sda /etc/crypttab
    sda1_crypt /dev/sda1 /root/.luks/keyfile luks


    2009-08-24 11:44:07 root@p3600 ~/p3600
    # grep sda /etc/fstab
    /dev/mapper/sda1_crypt /mnt/sda1_crypt ext2 errors=remount-ro 0 2


    2009-08-24 11:45:53 root@p3600 ~/p3600
    # df /mnt/sda1_crypt/
    Filesystem        1K-blocks      Used Available Use% Mounted on
    /dev/mapper/sda1_crypt
                     1442147276 617075544 751814832  46% /mnt/sda1_crypt


    2009-08-24 11:45:58 root@p3600 ~/p3600
    # ll /mnt/sda1_crypt/
    total 28
    drwxr-xr-x 4 root root  4096 Jul 18 21:40 ./
    drwxr-xr-x 4 root root  4096 Jul 18 21:21 ../
    drwx------ 2 root root 16384 Jul 18 21:15 lost+found/
    drwxrwxrwx 9 root root  4096 Aug  9 13:27 q/


HTH,

David



_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux