$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 9.8G 0 9.8G 0% /dev tmpfs 9.8G 18M 9.8G 1% /dev/shm tmpfs 9.8G 1.8M 9.8G 1% /run tmpfs 9.8G 0 9.8G 0% /sys/fs/cgroup /dev/mapper/fedora-root 49G 14G 33G 30% / tmpfs 9.8G 160K 9.8G 1% /tmp /dev/nvme0n1p5 976M 195M 715M 22% /boot /dev/mapper/fedora-home 37G 28G 6.3G 82% /home /dev/nvme0n1p1 256M 47M 210M 19% /boot/efi tmpfs 2.0G 12M 2.0G 1% /run/user/1000
The gnome-app 'Disks' show that I have a 400gb unused free space on
How can I add those 400GB to my home partion, so that /dev/mappe/fedora-home will become 437 GB.
I use disk encryption (LUKS) and Fedora 29
sudo parted -l below:
Model: NVMe Device (nvme) Disk /dev/nvme0n1: 512GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 274MB 273MB fat32 EFI System Partition boot, hidden, esp 2 274MB 290MB 16.8MB Microsoft reserved partition msftres 5 406GB 407GB 1074MB ext4 6 407GB 511GB 104GB 4 511GB 512GB 1049MB ntfs Basic data partition hidden, diag
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 477G 0 disk ├─nvme0n1p1 259:1 0 260M 0 part /boot/efi ├─nvme0n1p2 259:2 0 16M 0 part ├─nvme0n1p4 259:4 0 1000M 0 part ├─nvme0n1p5 259:5 0 1G 0 part /boot └─nvme0n1p6 259:6 0 96.7G 0 part └─luks-29414c5a-13ed-4ddb-9403-8aa5d983fd4f 253:0 0 96.7G 0 crypt ├─fedora-root 253:1 0 50G 0 lvm / ├─fedora-swap 253:2 0 9.8G 0 lvm [SWAP] └─fedora-home 253:3 0 36.9G 0 lvm /home
Thanks to the answer from @frostschutz I have some follow up / understanding questions.
lsblk I can see the whole device and its partitions
parted -lI can see the contents of each used partion.
So from lsblk I can see that nvme0n1 has a total size of 477 GB. That disk has 6 partions. I can see that partion 6 is the luks encrypted container with three mountpoints.
The partitionnumber correspond to the output of
- nvme0n1p1 = 260M is EFI boot (this I can se from parted -l)
- nvme0n1p2 = 16M is Microsoft reserved (I guess a recovery partition)
- nvme0n1p3 is missing. We can sort of deduce that there is 400 GB here - but not quite. we have 477G - 260M -16M - 1000M - 1G - 96.7G = 378G
- nvme0n1p4 = Basic data patitio, Ntfs - probably old windows - but hidden? Dont know what this is
- nvme0n1p5 = Boot,I guess this is for linux grub?
- nvme0n1p6 = the fedora install, encrypted with luks lvm container.
lsblk also shows me that I have 'room' from where partion 2 ends (290 MB) to partion 3 begins (406 GB).
My follow up questions
I can see that
lsblk disagrees about partion size?
Parted says partion 6 is 104GB.
lsblk says partion 6 is 96.7 GB
disk says I have 406 GB available.
Calculating total size minus used partions as reported from
lsblk says I have ca. 378G
parted I have 406G minus 290M - so mayby 405
1: Which reported size should I trust?. Or rather why is lsblk reporting the wrong size? The difference seems to be larger than any difference from G (base 10) and GB (base 2?) -but is that it?
I understand how I create partition 3. I guess you randomly assign it 9 MB so we get a round number.
boot is today 1 GB - you assign newboot ca. 900 MB - as per my output of
df this is plenty.
root is today 96.7 GB you assign it (200G minu 1200M) ca. 199G - because why not have plenty of space?
2: Is this correct?
I understand how to copy the data via dd.
I understand that you now want to delete partion 5 (old boot - just copied to 7), partion 6 (the one that does not exists?) partion 7 and 8 (newboot and newroot? - but we just created andcopied theese?)
3: So I dont understand why we delete theese new partions? Or is it only the numbering that gets removed?
4: *I don't understand why you create newboot and newroot again? It seems to me we create it, we copy data to it, we delete and we create it? If its not deleted (as per question 3) then why create it again?
The way I read it:I understand that the resize command afterwards expands the partion to the 511 GB spot.
But I dont think I have any data now? Where am I misunderstanding?
When I get this far, later on, I will need to look into