partitions - Enlarging encyrpted partiton on a SD card - Ask Ubuntu


i have installed ubuntu few weeks ago try linux first time. used acer cloudbook 14 , hard drive shows memory card in ubuntu. recently, in process of formating sd card 3 partitions on it. started deleting partitions , wondered why had multiple partitions on sd card. finding strange, stopped , closed window thinking canceled process. system worked fine until rebooted.

the bios displayed message saying couldn't find bootable os. able restore partitions testdisk , bootable usb stick ubuntu on it.

name         fstype   size mountpoint                                label sda                  29.3g                                            └─sda1       vfat    29.3g /cdrom                                    ubuntu 16_0 loop0        squashf  1.4g /rofs                                      mmcblk0rpmb             4m                                            mmcblk0boot0            4m                                            mmcblk0boot1            4m                                            mmcblk0              58.3g                                            ├─mmcblk0p1  vfat     512m /media/ubuntu/6d91-4de6                    ├─mmcblk0p2  ext2     488m /media/ubuntu/6d67f0bf-4575-4233-bb2c-d2c  └─mmcblk0p3  crypto_    2m 

i can see 1 encrypted partition , 2 other partitions. however, when enter passphrase , system displays error message:

unable access “2.1 mb encrypted”

error unlocking /dev/mmcblk0p3: command-line `cryptsetup luksopen "/dev/mmcblk0p3" "luks-8a590c4f-4ce1-4682-81b8-873788889e96" ' exited non-zero exit status 1: requested offset beyond real size of device /dev/mmcblk0p3.

with gpart, can see have unallocated partition of 57.27gb. think data is.

i have followed instruction on [resizeencryptedpartitions][1] had error message after deleting 2 partition , creating new larger partition fdisk.

i rebooted , don't see 2md encrypted partition anymore, , see instead new larger, extended , unallocated partition.

i tried run:

sudo cryptsetup luksopen /dev/sda5 crypt1 

and got error message: device /dev/mmcblk03 doesn't exist or access denied.

here's have now:

disk /dev/mmcblk0: 58.3 gib, 62545461248 bytes, 122159104 sectors units: sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes disklabel type: dos disk identifier: 0x55fc3a23  device         boot   start       end   sectors  size id type /dev/mmcblk0p1 *       2048   1050623   1048576  512m  c w95 fat32 (lba) /dev/mmcblk0p2      1050624   2050047    999424  488m 83 linux /dev/mmcblk0p3      2050048 122159103 120109056 57.3g  5 extended     disk /dev/mmcblk0boot1: 4 mib, 4194304 bytes, 8192 sectors units: sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes   disk /dev/mmcblk0boot0: 4 mib, 4194304 bytes, 8192 sectors units: sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes   disk /dev/sda: 29.3 gib, 31466323968 bytes, 61457664 sectors units: sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes disklabel type: dos disk identifier: 0x30e0162d  device     boot start      end  sectors  size id type /dev/sda1  *     2048 61457663 61455616 29.3g  c w95 fat32 (lba) 

any idea of should do?

thank much!

v.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User