Thread: Cannot mount newly created LUKS filesystem
hi guys, created luks filesystem following these instructions. seemed okay @ first. mounted no problem , moved files there. unmounted , remounted see if need use special command. mounted right away , allowed access normal users. so, rebooted see if change. before go on should partitioning scheme weird. not knowing better 'upgraded' 11.04 when update manager told me new version out. didn't go , had fresh install put 10.10 on machine. after way partitions drive has been weird. had /dev/sda1 has installation on including /home. but, gets weird /dev/sda2 not manually mount. looking @ disk in gparted showed /dev/sda2 under that, if sub partitions or something, had sda6 , sda7. had been using 6 , 7 various things , mounted fine, decided encrypt 7. after reboot have sda1. else shows unallocated , ever way try mount device not exist.
happy provide information needed. please tell me data still there. did procedure sda7 6 has been affected well. there no longer sda2 way there before. bothered me anyway since wanted sda2 /home wanted call sda6 , put under sda2 said, never fix that, this.
hello compuslave,
that's nice tutorial, link! after reading post curious try find out might have happened , thought fun challenge see if can find solution problem.
decided simulate situation in spare computer fresh installation of ubuntu natty narwhal in it. ran through each of steps in tutorial linked to, , set encrypted partition too, same yours except mine /dev/sdb6, it's in logical partition yours. @ first, explained, able mount without problems
after reboot - nothing. got error messages 'unable mount 10gb encrypted. 1 or more block devices holding /dev/sdb6', , 'no such device /dev/mapper/sdb6' , '/dev/sdb6 not proper luks volume (or effect).
unlike description though, extended partition, (the box other partitions in /dev/sda2), fine. mine's /dev/sdb2. see both encypted partition , swap area in gparted okay, except of course gparted didn't recognize file system in encrypted partition , expected.
remembering run 'sudo modprobe dm-crypt' whenever i'm in new ubuntu installation , i'm start working on luks encrypted file systems, decided run , see if help. @ first didn't seem , rebooted , still couldn't mount encrypted file system.
in end repeated entire procedure on again start , created new encrypted file system. time reason worked! have nice spare partition encrypted file system in it's persistent after reboot.
i'm not sure if running 'sudo modprobe dm-crypt ' has success on second try, suspect might have. need test again in clean install find out sure. noticed in comments under tutorial person called 'jaba' posted 'modprobe dm-mod ;\
cp /etc/modules /etc/modules.old &&\
echo dm-mod >> /etc/modules'
try running 'sudo modprobe dm-crypt' won't harm , might you.
i wonder if command required before can make valid luks encrypted partitions now? tutorial few years old, , things may have changed between , now.code:sudo modprobe dm-crypt
me okay repeat procedure in tutorial because didn't have data yet in encrypted partition. problem repeating procedure if you'll lose data because partition need reformatted.
other factor that's unique current predicament fact extended partition isn't showing. i'm wondering if might have accidentally typed or copied , pasted command tutorial 'as is', (without changing '2' on end of '/dev/sda2' '7'by accident? if that's possibility, (we're human , make mistakes), explain why partitions seem have disappeared.
normally, missing partitions can written partition table scanning testdisk start points , having testdisk write new partition table.
if missing data valuable testdisk might worth try. there's chance might able regain access @ least of data testdisk. i'm hoping testdisk still able recognize partition start points.
if have never used testdisk before you'll need find website there excellent illustrated tutorials.code:sudo apt-get install testdisk
hope i've been of , hope have luck regaining access data. data still there i'm sure, regaining access might easy or tricky, it's hard tell @ point in time. need spend lot more time re-installing , running more experiments learn more it's night-time here , time sleep.
edit: in light of more have learned subject since reply post, don't think should yet.
idea read testdisk not disturb disk or of partitions yet.
idea clone entire disk same size or larger disk if can one, , work on copy of hard disk , no original.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Cannot mount newly created LUKS filesystem
Ubuntu
Comments
Post a Comment