Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289058 - /etc/init.d/dmcrypt should check partition type before mkswap
Summary: /etc/init.d/dmcrypt should check partition type before mkswap
Status: RESOLVED DUPLICATE of bug 289055
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 15:20 UTC by Daniel Bahrdt
Modified: 2009-10-14 15:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bahrdt 2009-10-14 15:20:30 UTC
If you repartition your device and forget to change the settings in conf.d/dmcrypt you might loose a lot of data. I have tried this on a 200GB ext4 partition. Fortunately fsck.ext4 could recover the data (I haven't activated the swap partition).
What I'm asking for is a check like fdisk -l /dev/sda | grep /dev/sda10 | grep swap as I can't think of another usage of random keys except with swap-partitions.
Comment 1 Rafał Mużyło 2009-10-14 15:31:51 UTC

*** This bug has been marked as a duplicate of bug 289055 ***