From: Milan Broz <gmazyland@gmail.com>
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: Sat, 16 Jun 2012 10:01:31 +0200 [thread overview]
Message-ID: <4FDC3D5B.105@gmail.com> (raw)
In-Reply-To: <20120615205944.GA1218@tansi.org>
On 06/15/2012 10:59 PM, Arno Wagner wrote:
> 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.
Exactly. Anaconda (the Fedora installer) sometimes wipes
devices during install, I would not be surprised that this can
happen even during upgrade.
(In install, it usually appends device to LVM, so be sure that
this device is really not in use or luksFormat break your system
even more.)
Usually you should do:
1) blkid -p <device> - check what is not on that disk
(partition table added, lvm, mdraid, fs... ?)
2) check if the device is not use - lsblk, pvs, lvs -o+devices ...
I am afraid that if device was wiped, no way to get you data back
(without LUKS header backup).
So, once you are sure, just reformat the drive. Maybe you will have
to setup UUID (check fstab/crypttab) - you can set UUID
on the device itself (see man cryptsetup luksUUID) or just
fix files mentioned above (if they contain UUID reference).
> 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.
Upgrade F15...F17 seems to switch grub->grub2
(I had to fix 3 borked systems after upgrade already so will not
better comment it anymore:-) Whatever, grub2-mkconfig is very
useful tool...
also see http://fedoraproject.org/wiki/Common_F17_bugs and other
pages, just search Google
Milan
prev parent reply other threads:[~2012-06-17 15:51 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 ` [dm-crypt] What does it mean ?not a valid LUKS device?? " Arno Wagner
2012-06-16 8:01 ` Milan Broz [this message]
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=4FDC3D5B.105@gmail.com \
--to=gmazyland@gmail.com \
--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