Difference between revisions of "Resize2fs"
Jump to navigation
Jump to search
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>resize2fs</code>< | + | {{lc}} |
+ | <code>resize2fs</code> <code>ext2/ext3/[[ext4]]</code> file system resizer | ||
+ | * https://linux.die.net/man/8/resize2fs | ||
+ | resize2fs [[/dev/nvme1n1]] | ||
+ | resize2fs 1.42.9 (28-Dec-2013) | ||
+ | Filesystem at [[/dev/nvme1n1]] is mounted on /mount/path; on-line resizing required | ||
+ | old_desc_blocks = 63, new_desc_blocks = 94 | ||
+ | The filesystem on /dev/nvme1n1 is now 196608000 blocks long. | ||
+ | resize2fs [[/dev/]]mapper/VolGroup-lv_root | ||
− | + | resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv | |
− | + | resize2fs 1.45.6 (20-Mar-2020) | |
+ | The filesystem is already 16646144 (4k) blocks long. Nothing to do! | ||
+ | |||
+ | resize2fs [[/dev/root]] | ||
+ | The filesystem is already 2068731 (4k) blocks long. Nothing to do! | ||
+ | |||
+ | Review: [[growpart]] | ||
+ | |||
+ | resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv | ||
+ | resize2fs 1.45.6 (20-Mar-2020) | ||
+ | Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required | ||
+ | old_desc_blocks = 8, new_desc_blocks = 16 | ||
+ | The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 33291264 (4k) blocks long. | ||
+ | |||
+ | |||
+ | resize2fs /path/todir | ||
+ | resize2fs 1.42.9 (28-Dec-2013) | ||
+ | open: Is a directory while opening /path/todir | ||
+ | resize2fs [[/dev/root]] | ||
+ | resize2fs 1.46.5 (30-Dec-2021) | ||
+ | Filesystem at /dev/root is mounted on /; on-line resizing required | ||
+ | old_desc_blocks = 1, new_desc_blocks = 8 | ||
+ | The filesystem on /dev/root is now 16748795 (4k) blocks long. | ||
+ | == Activities == | ||
+ | # [[Extend LVM on qcow2 images]] | ||
+ | # [[Increase EBS size]] | ||
== Related commands == | == Related commands == | ||
Line 17: | Line 50: | ||
* <code>[[fdisk]]</code> or <code>[[parted]]</code> | * <code>[[fdisk]]</code> or <code>[[parted]]</code> | ||
* <code>[[growpart]]</code> | * <code>[[growpart]]</code> | ||
+ | * <code>[[xfs_growfs]]</code> | ||
== See also == | == See also == | ||
* {{ext4}} | * {{ext4}} | ||
− | * {{ | + | * {{resize2fs}} |
* {{fs}} | * {{fs}} | ||
Latest revision as of 11:22, 11 July 2023
resize2fs
ext2/ext3/ext4
file system resizer
resize2fs /dev/nvme1n1 resize2fs 1.42.9 (28-Dec-2013) Filesystem at /dev/nvme1n1 is mounted on /mount/path; on-line resizing required old_desc_blocks = 63, new_desc_blocks = 94 The filesystem on /dev/nvme1n1 is now 196608000 blocks long.
resize2fs /dev/mapper/VolGroup-lv_root
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv resize2fs 1.45.6 (20-Mar-2020) The filesystem is already 16646144 (4k) blocks long. Nothing to do!
resize2fs /dev/root The filesystem is already 2068731 (4k) blocks long. Nothing to do!
Review: growpart
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv resize2fs 1.45.6 (20-Mar-2020) Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required old_desc_blocks = 8, new_desc_blocks = 16 The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 33291264 (4k) blocks long.
resize2fs /path/todir resize2fs 1.42.9 (28-Dec-2013) open: Is a directory while opening /path/todir
resize2fs /dev/root resize2fs 1.46.5 (30-Dec-2021) Filesystem at /dev/root is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 8 The filesystem on /dev/root is now 16748795 (4k) blocks long.
Activities[edit]
Related commands[edit]
See also[edit]
ext4
e2fsck,
,fsck.ext4
, superblock, inode, block size, mkfs.ext4 tune2fswipefs
,resize2fs
stat
,extents
, Review ext4 journalctl logs. Read-only file system,virt-resize
, ACLresize2fs
, Increase EBS size- File systems:
ext4
,XFS
,ZFS
,btrfs
,wipefs
,findfs
,HDFS
,overlay
,aufs
,virt-filesystems
, Windows: (FAT, NTFS, ReFS), GPFS, squashfs, Ecryptfs, Encfs, FUSE, VMFS, Comparison of distributed file systems, Userspace filesystem, Resize filesystem size
Advertising: