DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] What does it mean ?not a valid LUKS device?? Can I start over and not destroy the drive?
Date: Fri, 15 Jun 2012 22:59:44 +0200	[thread overview]
Message-ID: <20120615205944.GA1218@tansi.org> (raw)
In-Reply-To: <SNT129-W2D91796CB345FCE03AAA894FB0@phx.gbl>


crytptestup only works within the specified target device,
no effect oytside of it. Hence your other partitions will
be unaffected, baring some strange set-ups.

If you do not care about the data in the old LUKS container 
(partition), you can just luksFormat the device. However
you should be sure /dev/sda3 is not used in any other
way (something did erase or damage the header after all, may 
have been a filesystem, raid-superflock or other thing),
and may damage your new header. It may be a good thing
to check the partition is not maunted and you could also check
ehat kind of header is in it, e.g. with hd or by trying to mount
it.

As to grub.conf, Grub legacy uses menu.lst, and grub 2
uses grub.cfg, so I am not really sure what you are talking 
about.

Arno

On Fri, Jun 15, 2012 at 04:18:18PM +0000, neon_ bikini wrote:
> 
> 
>     
> 
> 
> 
> 
> 
> 
>     
>     
>     
> 
>           
>     
>           
>     
>         During an upgrade from Fedora 15 to 17, I installed into an 
> existing LUKS encrypted partition. I'm sure I borked the boot loader 
> options, because the new system boots to GRUB and there is no sign of 
> grub.conf. 
> 
> 
> 
> 
> 
> When I attempt to fix the
>  problems from the boot cd and run cryptsetup luksOpen /dev/sda3 
> cryptLVM, I get ?not a valid LUKS device?.
> 
> 
> 
> 
> Can I simply reformat Luks? What are my concerns right now if I don't need to save data?
> 
> 
>      		 	   		  

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


-- 
Arno Wagner,    Dr. sc. techn., Dipl. Inform.,   Email: arno@wagner.name 
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 

  parent reply	other threads:[~2012-06-15 20:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15 16:18 [dm-crypt] What does it mean “not a valid LUKS device”? Can I start over and not destroy the drive? neon_ bikini
2012-06-15 18:11 ` .. ink ..
2012-06-15 20:59 ` Arno Wagner [this message]
2012-06-16  8:01   ` [dm-crypt] What does it mean ?not a valid LUKS device?? " Milan Broz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120615205944.GA1218@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox