The -y option is useful to use initially to make sure you have the right password when you format. It causes cryptsetup to ask the password twice. For more documentation on the options, run cryptsetup -h and refer to the man-page. Arno On Wed, Feb 29, 2012 at 06:57:33PM +0100, Giovanni Di Stasi wrote: > Il 29/02/2012 17:41, Milan Broz ha scritto: > >On 02/29/2012 05:26 PM, Giovanni Di Stasi wrote: > > > >Here you are creating plain container (did you mean luksFormat in fact?) > >># sudo cryptsetup -y create crypt .encrypted > > > >and here you are trying to open LUKS... > >># cryptsetup luksOpen .encrypted crypt > > > >so try > >sudo cryptsetup -y create crypt .encrypted > > > >which will just recreate the mapping (create just set up mapping, > >it doesn't format anything) > > > >Milan > Worked!! Thanks!! > > But I was asked the password twice... how come? > What if I type a different password? > > Thanks, > Giovanni > _______________________________________________ > dm-crypt mailing list > dm-crypt@xxxxxxxx > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@xxxxxxxxxxx GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt