Re: how to calculate correct values for resize2fs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jelle de Jong <jelledejong@xxxxxxxxxxxxx> hat geschrieben:

> Christian Kujau wrote:
>> After creating a new partition, you can mkfs this new one. I did not 
>> understand at which point you want to "resize" a partition. Resizing a 
>> filesystem is usually done on existing, resized partitions.

He wants to SHRINK the partition, so he will have to resize the
file system, then shrink the partition.

> resize2fs /dev/sda1 ????????
[...]
> Hope you can show me how to calculate the value to get a 16 MB free
> space on /dev/sda with the resize2fs tool.

Just resize the file system on sda1 to 3GB (or another value which leaves 
enough space - just overcalculate here). Then make the partition smaller 
to the final size you want it to be, then re-erlarge the file system to 
it's final size.

And another advice: Do NOT create the new partition(s), before you 
completed the TWO resize-steps.

Regards, Bodo

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux