Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5092  / 1 Year ago, thu, may 18, 2023, 12:31:12

Which is the best way in order to resize an encrypted (ecryptfs) ext4 home partition ?



Pros nad Cons of each method are greatly appreciated.



$ fdisk -l
Disk /dev/sda: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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

Device Boot Start End Blocks Id System
/dev/sda1 * 63 41945714 20972826 7 HPFS/NTFS/exFAT
/dev/sda2 207007744 211206554 2099405+ 82 Linux swap / Solaris
/dev/sda3 42946560 82008063 19530752 83 Linux
/dev/sda4 82008064 207007743 62499840 83 Linux

More From » encryption

 Answers
6

Boot Ubuntu from the LiveCD (or a USB-key) and run gparted. In the top-right you can select your harddisk. When it is selected you can just right-click on the partition and chose resize.



eCryptfs encrypts single files and not the whole partition. So can safely resize the partition as you like. Remember that you should have backups of your things!


[#36702] Thursday, May 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rinstracte

Total Points: 221
Total Questions: 114
Total Answers: 120

Location: France
Member since Fri, Jan 28, 2022
2 Years ago
rinstracte questions
Wed, Jun 15, 22, 02:09, 2 Years ago
Tue, Jan 24, 23, 01:39, 1 Year ago
Wed, Jun 9, 21, 04:34, 3 Years ago
Sun, Apr 17, 22, 11:38, 2 Years ago
;