![]() VG UUID 9htamV-DveQ-Jiht-Yfth-OZp7-XUDC-tWh5Lvģ) # lvextend -l +100%FREE /dev/mapper/fedora-root Resize2fs: Bad magic number in super-block while trying to open 0) #df -hįilesystem Size Used Avail Use% Mounted on ![]() I had just the same trouble with fedora 26 and LVM partitions, it seems I forgot check something during the installation, So, my 15G root directory has been increased to 227G like I needed. So, because you love terminal (in 2012, who knows now?) we do echo $(((1713*512)/1024))k, which is 1713 sectors multiplied for 512 bytes (divided by 1024 to have KB), which gives 856k. We still have 1713 sectors at 512 bytes each. Remaining 1713 unallocated 512-byte sectors It will gives you the number of sectors still free. But I think fdisk is the quickest solution: it's plain and simple, with nothing to install: execute fdisk /dev/sdx and then enter v into the interactive shell. There is also cfdisk, which gives you free space. I personally don't like the parted solution because my brain-memory for commands is already taken. So, we have a disk already partitioned and we want to know how much space we may use. ![]() ![]() To have human-readable information we must translate this number into bytes. Since we're talking about free available space, we should talk about sectors, since no partitioning or sizing of sectors is done.įor us human beings this doesn't make much sense. This is an old question, but I wanted to give my answer as well.
0 Comments
Leave a Reply. |