Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #56159
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | alt.os.linux |
| Subject | Re: Can crypsetup --type plain destroy a previous written partition? |
| Date | Fri, 10 May 2019 07:02:38 +0200 |
| Lines | 42 |
| Message-ID | <gjkeveFa7fmU1@mid.individual.net> (permalink) |
| References | <qb21mk$eti$1@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net oaVOezjGgrl2zcBv5sUkBgOx6Bmqo83I1zSaC0QYm3fJc0XuEh |
| Cancel-Lock | sha1:Mo/eFrI3BwUvoCNqo16LYosVdvo= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
| In-Reply-To | <qb21mk$eti$1@gioia.aioe.org> |
| Content-Language | en-PH |
| Xref | csiph.com alt.os.linux:56159 |
Show key headers only | View raw
On 09/05/2019 22.14, Paulo da Silva wrote: > Hi all! > > Can crypsetup --type plain destroy a previous written partition? If you use cryptsetup instead of cryptmount. > Here is what happened ... > > 1. I had a raid1 of 2X2TiB usb disks (say A and B). > 2. I wanted to replace one of the disks. There are some errors in it - > B. Disk A is fine. > 3. I decided to use 2 new disks of 4TiB each (C and D) in raid1. > 4. Disks A and B were encryted with --type plain. > 5. I normally mounted disks A and B as usual. OK. > 6. luksFormat'ed disk C. > 7. Added it using btrfs dev add. > 8. Deleted disk B with btrfs dev del B. > 9. After 1.5 days the process ended successfully with disks A and C (I > could see it with btrfs fi show). Why not setup the new btrfs with disk C and D and then use btrfs send / btrfs receive and you would have issues with breaking something, just see to change the volume on the C/D to read/write. > 10. After this I unmounted the filesystem, closed the encrypted devices. > 11. I physically disconnected disk B. > 12. Then, wrongly, I tried to open disk A with --type=luks (it was > encrypted with --type=plain!). I got an error message. > 13. After this I was no more able to make disk A recognized by btrfs. > 14. I also noticed that cryptsetup with --type=plain (for disk A) didn't > cause a link creation in /dev/disk/by-uuid for the corresponding mapped > device which makes me think that the disk content was destroyed or at > least it is not being correctly unencrypted. > > Any comments? Thanks. As far as I remember (as I only run the system disk encrypted, this handled by the system mount scripts in initramfs) cryptmount should handle which type of encryption is used, so no need to specify that
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-09 21:14 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-10 07:02 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-10 16:10 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-10 18:43 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-10 17:59 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-10 23:52 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-11 04:08 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-11 09:40 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-11 18:50 +0100
Re: Can crypsetup --type plain destroy a previous written partition? [EXLAINED] Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-10 16:00 +0100
csiph-web