Debian :: Resize LUKS Partition Without LVM
Aug 20, 2011
I need to resize (increase) LUKS partition. I have found a lot of manuals, but they are just for LVM volumes(I dont use LVM and I dont plan to use it). I have HDD splited to the 4 parts:
sda1(/)
sda2(LUKS)
unalocated
swap
I want to increase LUKS partition, by using the part of unalocated space.
BUT I dont want to do the following:
Backup data from LUKS partition
Delete LUKS partition
Create new bigger LUKS partition
Restore data to the LUKS partition
View 1 Replies
ADVERTISEMENT
Feb 1, 2016
I have two basically identical harddrives that are encrypted with LUKS containing a complete debian installation:
Code: Select allroot@x200s:/home/b# lsblk --fs
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ext2 0b851969-281e-4db2-8a5b-3798e801711b /boot
├─sda2
└─sda5 crypto_LUKS cfcf63ef-448a-4f72-9f58-8f7731cf3dfc
└─sda5_crypt LVM2_member 21CS3f-SQeQ-XcMr-kyDs-OPtR-egmT-HkvJAu
[Code] ....
sda is what I currently run to write this text, sdb is my former harddrive, connected via USB.
I want to access the root partition on sdb.
The problem is:
Code: Select allcryptsetup luksOpen /dev/sdb5 oldhd
Enter passphrase for /dev/sdb5:
root@x200s:/home/b# ls /dev/mapper/
control oldhd sda5_crypt x200s--vg-root x200s--vg-swap_1
root@x200s:/home/b# mount /dev/mapper/oldhd /mnt/
[b]mount: unknown filesystem type 'LVM2_member'[/b]
[Code] ..
Before all this, both sda and sdb where in the same volume group. I renamed the volume group of sdb to "oldDisk"
using
Code: Select allvgrename <UUID> oldDisk
How I can access the data on the root filesystem of my sdb..
View 2 Replies
View Related
Mar 18, 2011
I had encrypted a partition in Debian6 KDE4 using LUKS. Using the partition as a backup storage so do NOT want to automount it, therefore I have not added the encrypted partition (/dev/sda5) into /etc/crypttab or /etc/fstab. However, when booted into Debian, the partition is not shown in dolphin. How can I mount it manually when I need to use it?
View 1 Replies
View Related
Oct 1, 2010
What will be an easy and safe way to resize partition? Boot up the LiveCD? Or can I run resize2fs while OS is running?This is a newly installed box without files on /kvm. Now I want to resize /home taking up the complete capacity of /kvm which will be removed/deleted.
View 7 Replies
View Related
May 1, 2011
I am trying to install Debian for my best friend by resizing his Windows partition so that I can install Debian on a separate partition. But, I get this message when I try to resize Windows: "for some unknown reason impossible to resize this partition. Check /var/log/syslog or see virtual console 4 for details." I do not know how to check virtual console 4 for details and besides I won't be able to interpret it. I also tried defraging the Windows hard drive several times and using several livecds with GParted to try to resize. They all failed.
View 6 Replies
View Related
May 18, 2010
I recently installed Lenny and used the "Guided - Use Entire Disk" option.I made separate partitions for root, /etc, /var, /home, /usr and swap.I trusted that the auto partitioner would choose sensible sizes but possibly that was a bad move, root is only 340Mb and is full.
View 8 Replies
View Related
Oct 24, 2015
I would like to resize the /home partition but it is mounted and when umount is run, it errors with 'busy'.
System Configuration:
I installed jessie on a laptop with one SSD. I used guided partitioning and selected the whole drive with multiple partitions. The /home now takes up 420 GB. I would like to reduce that to 20 GB to make room for another partition.
What are the methods reduce this partition?
View 8 Replies
View Related
May 11, 2010
I need to change my LUKS partition to NTFS as I do not need the boot partition any longer, but I need to keep sdb3 (truecrypted ext3) intact. This is how the disk looks now:
Code:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
View 2 Replies
View Related
May 29, 2011
I have around 30gb of free space in my partition table immediately before the Linux partition. I want to resize my linux partition to take up this space.
I tried booting with live cd, sucessfully umounted the hard drive but found I could not resize the partition. On clicking the 'edit size' button, partition manager recognised the free space before the partition but when i reduced this, the 'ok' button was greyed out. (it was not greyed out for the windows partition so I could, in theory, increase the windows partition to take up the free space but this is not what i wanted to do).
I am pretty sure that I had managed to unmount the drive correctly as the padlock symbol had dissapeared (I took the attached screenshot, which does show the lock symbol, after rebooting into my normal system).
Anyone got any ideas as to why it wont allow this? There is no reason why i can resize the partition to take up the free space BEFORE it is there?
View 9 Replies
View Related
May 10, 2010
I have a LVM logical volume, that contains a LUKS encrypted volume, on which is an ext4 filesystem. I shrank the partition to the minimum size. Next step is to luksClose the device, and then to resize the LVM logical volume. I suspect that LUKS has overhead. So if the ext4 filesystem was resized from, say 1TB to 500G, I have the idea that resizing the LVM LV to 500G does not take LUKS overhead into account and this might corrupt data on the end of the FS. So, what's the smart move to take? How do I calculate the safe minimum LV size? Or should I just give the 500G disk a few gigabytes extra to be sure?
View 4 Replies
View Related
May 9, 2011
if encrypt my root partition with Luksformat on my laptop and the battery suddenly goes out without a proper shutdown, I stand a big chance on corrupting the luks header or key slot?
View 1 Replies
View Related
Jun 30, 2010
I have a really tricky and may be intresting problem with a encrypted disk partition (cryptsetup luks...) which was fine until it accidentally got re-formatted by an instance of Windows 7. Most of the data on that 1TB-disk will probably still exist, only the LUKS header at the very beginning of the partition is - of course - gone.
So when I try to open the container, it gives no verbose, just the return value 234.
I scanned the whole partition for other LUKS headers with hexedit, none there. But, luckyly I have another partition which is encrypted in the exact same way with the exact same passphrase (which I remember very well!), so I had an idea: I copied the LUKS header (592 bytes) from the other LUKS encrypted partition over to the damaged partition.
When I now issue
Code:
Code:
No key available with this passphrase
Here is the command how I created the container:
Code:
How do I get the existing passphrase accepted by LUKS?
View 9 Replies
View Related
Nov 8, 2009
I need to access /etc/modprobe.d on an encrypted LVM LUKS partition. I m not sure how to go about it though. Mount usually handles my mounting needs, do I need to decrypt the physical volume first? LIst of commands need would make my day.
View 1 Replies
View Related
Jul 19, 2010
I'm planning a fresh F13 install, with separate partitions for /boot, /home, /tmp, /, and swap. All but /boot will be logical volumes, and I'd like to encrypt all but boot. If I encrypt the underlying partitions, is there any reason to also encrypt the logical volumes themselves?
my system will be:
HP dv6-3040us Pavillion laptop
AMD Phenon II
4GB DDR3
View 3 Replies
View Related
Aug 30, 2010
I have encrypted a partition while installing Fedora 13, and I need to disable its automount - I will mount those manually.
But even though I commented out the corresponding line in /etc/fstab, I am still asked for the passphrase for the partition at startup.
How to completely disable this behaviour - and how to mount the partition manually afterwards?
View 5 Replies
View Related
May 16, 2011
I need to move a LUKS encrypted partition to the end of a harddrive to expand another partition. Does anyone know how to do this?
Is it possible to do this with other partition editing programs?
Gparted doesnt support LUKS/LVM
View 1 Replies
View Related
Aug 15, 2010
So I was wondering about the dilemma of how to encrypt the password file on a key card to unlock your harddrive without having to enter any password. I came to the conclusion that that the scripts could do this without storing any passwords in plane text them self. Have a few extra steps to the scripts that would:
1. Read the UUID of any disks coming in.
2. Attempt to use that ID to decrypt a password file stored in the initrd.
3. Use the decrypted password file to unlock the the keycard partition.
4. THEN use the password files on the keycard to decrypt the main partition and boot the system.
However, if somebody stole your key card and didn't know what the unencrypted information was, then it's harmless for them to have it anyway. And if they did know, you wouldn't be any better off with it being encrypted because they probably can gain access to your computer anyway; leaving them to just pop the key card in and automatically decrypt the drive.
I suppose encrypting the keycard would give you extra assurance that the information would be much harder to recover if you destroyed the key card in a hurry. So would this extra security step even be worth it?
I guess the most secure thing would be to only have a password and type it in every time... unless you are concerned about the aliens/government stealing that from your brain which would probably mean they wouldn't need your password anyway.
View 3 Replies
View Related
May 20, 2010
Anyone had any experience with unlocking a LUKS encrypted root partition via ssh? It is ok to leave /boot unencrypted.
There are a few pages from google with the debians variants, archived by putting dropbear into initrd.
I like to do that with my fedora/centos remote servers, but struggle to find any resources specific to it. Anyone has any suggestions and thoughts as to what might be a suitable way forward?
View 2 Replies
View Related
Feb 22, 2010
I'm trying to have a LUKS encrypted partition mounted at startup and to have GDM ask for my key so it will decrypt. Now I followed [URL] to the letter. Except for now, I have it just mounted into /mnt/cryptohome so I'm not messing with my system. My problem is the one everyone mentions in the comments, ubuntu isn't asking for the LUKS key in the X display, it's asking in the first terminal (Ctrl-Alt-F1). This will not do. I need it to ask to mount my drive before I'm even asked to login, so eventually I can encrypt my /home.
View 9 Replies
View Related
May 27, 2010
I'm having a problem auto-mounting a new luks partition. I have crypttab and fstab entries. I already have my primary encrypted partition (root) mounting at boot (from the install), but after creating this one manually, it does not open on boot. It auto-mounts when I run the following command manually after boot: sudo luksOpen /dev/disk/by-uuid/<uuid> mycrypt
/etc/crypttab entry:
personalcrypt /dev/disk/by-uuid/a1af5b7b-db58-4690-b586-b74407795e2c none luks
/etc/fstab entry:
[code]...
View 1 Replies
View Related
Oct 26, 2010
I'm trying to migrate my LVs over to a Luks volume (prompt on password at boot). Unfortunately, as soon as I add my luks-encrypted physical volume to my volume group, I'm no longer able to update my grub configuration. I've detailed my steps below:
I've created and unlocked my encrypted partition with the following:
Code:
sudo cryptsetup -c aes-cbc-essiv:sha256 -y -s 256 luksFormat /dev/sdb1
sudo cryptsetup luksOpen /dev/sdb1 crypto_agilityssd
My /etc/crypttab looks like this:
[Code].....
View 2 Replies
View Related
Jul 17, 2011
I managed to setup an encrypted partition that's mounted on boot using dm-crypt/LUKS.
The relevant entry from my /etc/fstab:
/dev/mapper/st_crypt /media/st ext4 defaults 0 2
The partition is mounted at boot, and I can write to it as root just fine, but I have no idea how to make it writable by a normal user (i.e the users group).
View 1 Replies
View Related
Jan 21, 2009
I need a FREE solution that can image an entire Luks system encrypted volume and the rest of the used HDD, the MBR and /boot partition. Note: MBR and /boot are not encrypted. Note 2: I want to be able to restore entire drive from image with only a couple of steps. Note 3: Destination HDD space is a factor. Image file must be compressed and the image file must be around 40 to 50 GB or less. The smaller the image the better.
I have used clonezilla live cd before but not for encrypted volumes. I know you can install it in Linux. But, I don't know how to configure it after installation. I would be very happy if someone could tell me how to configure clonezilla in Fedora. How to guides are also welcome. I have one more question. If I image the encrypted volumes and all the stuff I mentioned above while logged in to Fedora, and I restore the drive from the image, will the recovered drive still be encrypted?
View 8 Replies
View Related
Mar 9, 2011
Has anyone tried encrypting the boot partition to prevent the kernel from being modified. Iv tried following this but I'm running into issues when building. [URL] Im using the source from bzr checkout [URL] Last time I tried I screwed grub and it wouldnt boot.
View 9 Replies
View Related
Aug 8, 2010
I installed Fedora 13, but did not expect it would set up a LVM on the entire remaining unpartitioned space.
So I'm now trying to resize the partition the LVM is on. I already resized lv_home using system-config-lvm... however now lv_swap resides at the end of the physical volume. If I assume correctly that this also means that it resides at the end of the sda6 partition, I need to move it in order to resize the partition.
It now looks like this: [URL]
How would I go about moving lv_swap right next to lv_home? And how can I actually resize the partition? gparted doesn't seem to be able to resize lvm2 partitions.
View 1 Replies
View Related
Sep 30, 2010
Ubuntu 10.04 64-bit (installed on installer)
What will be an easy and safe way to resize partition? Boot up the LiveCD? Or can I run resize2fs on Ubuntu while the latter is running?
Code:
This is a newly installed box without files on /kvm. Now I want to resize /home taking up the complete capacity of /kvm which will be removed/deleted.
View 5 Replies
View Related
Dec 21, 2010
I'm running Fedora Core 14 on my server and in copying over all the stuff I had backed up before the install, i recived the message that one of my volumes was nearly out of space. Since this is just a partition on my hard drive, I could resize it to make it larger, but I don't know how. It's a ext4 partition on my 2nd hard drive.
View 10 Replies
View Related
Jun 6, 2010
On recomendation from the team installing the DB on our new server, all the partitions etc on our VM were created as LVM's. The setup for this is like this:
Disk 1
-> /boot
-> /swap
-> LVMpartition1
[Code]....
View 9 Replies
View Related
Feb 25, 2011
I have a default centos 5.x install on an 8GB hard disk. (This means the volumegroup is mounted to / ). I've increased the size of that hard disk to 12GB. (so yes, fdisk says my disk is 12GB)
I now need to increase the LVM to use the 12GB instead of the 8GB. Every single article I've come across says:
"run lvextend on your vg you want to increase, then unmount, reboot, run live cd or whatever and then run resize2fs".
But of course lvextend +anyG returns an error saying not enough free extents
lvextend +100%FREE returns saying the extents matches extents
How can every the google result be wrong? How can I simply tell this LVM that it's now a few gb larger?
View 3 Replies
View Related
Feb 10, 2010
I've been upgrading a Fedora server over the years. Once it was Fedora Core 2 now it is Fedora 10. Now I want to continue the upgrade process and upgrade the server to Fedora 11. The problem is that the boot partition is 100MB but Fedora 11 wants a 200MB boot partition. Looking at Fedora 13 it seems a boot partition of 500MB is gonna be the norm. I would just resize the boot partition but there is a LVM directly after it taking up the rest of the drive.
How do I resize my boot partition in this scenario?
My current line of thought is to use G4L to backup both partitions, then restore the boot partition to a large drive, increase the size with parted then restore the LVM backup after it.
So far G4L has been reluctant to backup the boot partition of Fedora on a test rig to an NTFS drive. Not sure if I should be backing up the image to a ext3 drive.
View 8 Replies
View Related