Re: removal/truncation of cryptofile too easy

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

 



On Thursday 28 Nov 2002 11:52, Skyscraper System Administrator wrote:
>     I tested losetup on a device, and it accepted the command, but
>     apparently that corrupts the pt:
>     $ losetup --encryption aes /dev/crypto /dev/hdc2
>
>     $ fdisk -l /dev/hdc2
>     Disk /dev/hdc2: 255 heads, 63 sectors, 141 cylinders
>     Units = cylinders of 16065 * 512 bytes
>
>     Disk /dev/hdc2 doesn't contain a valid partition table

/dev/hdc2 shouldn't contain a partition table anyway. hdc2 represents a 
partition within /dev/hdc, which _does_ have a PT. So fdisk -l /dev/hdc 
should give you a list of the partitions on hdc, including hdc2.

I've used cryptoloop on devices for some time with no problems, both raw 
(/dev/hdd for my LS-120 ATAPI floppy drive) and partitioned (eg. /dev/pda1 
for the first partition on my parallel-port SyQuest drive).

Stephen
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux