Editing Ext4
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | [[wikipedia:ext4|ext4]] journaling [[File system|file system]] or fourth extended filesystem is a [[journaling file system]] for [[Linux]] and it is the default file system for many Linux distributions such as [[Ubuntu]] and [[Debian]]. [[Red Hat Enterprise Linux|RHEL]] default fs is [[XFS]]. | |
− | [[wikipedia:ext4|ext4]] | ||
− | Since [[Linux kernel]] | + | Since [[Linux kernel]] 4.1 on June 2015<ref>https://lwn.net/Articles/639427/</ref>, ext4 natively supports file [[cryptography|encryption]] |
− | |||
− | |||
==Basic commands== | ==Basic commands== | ||
− | * | + | *[[mkfs]] and [[mke2fs]] |
* Creating an ext4 filesystem: (by default since 2010 will do a quick and lazy initialization <ref>https://en.wikipedia.org/wiki/Ext4#Features</ref>) | * Creating an ext4 filesystem: (by default since 2010 will do a quick and lazy initialization <ref>https://en.wikipedia.org/wiki/Ext4#Features</ref>) | ||
:Creating an ext4 in a disk | :Creating an ext4 in a disk | ||
− | :: <code>[[mkfs.ext4]] | + | :: <code>[[mkfs.ext4]] /dev/sdX</code> |
:Creating an ext4 FS in an [[Linux Administration/Devices and Filesystems/LVM|LV]]: | :Creating an ext4 FS in an [[Linux Administration/Devices and Filesystems/LVM|LV]]: | ||
:: <code>mkfs.ext4 /dev/vg01/lv01</code> | :: <code>mkfs.ext4 /dev/vg01/lv01</code> | ||
Line 17: | Line 14: | ||
=== resize2fs === | === resize2fs === | ||
− | + | [[resize2fs]]<ref>https://manpages.debian.org/stretch/e2fsprogs/resize2fs.8.en.html</ref> file system resizer for ext2/ext3/[[ext4]] (<code>resize2fs /dev/mapper/VolGroup-lv_root</code>). Online resize (expand) is supported in resize2fs since 2006<ref>https://github.com/tytso/e2fsprogs/commit/bf69235ad0073c80386b70caba0e1b58e5f85697</ref>.<ref>https://www.technomenace.com/2014/08/how-to-extend-lvm-on-qcow2-images/</ref>. resize2fs code: https://github.com/tytso/e2fsprogs/blob/master/resize/resize2fs.c. See also: [[ext2online]] | |
− | == | + | ==EXT4 Features timeline== |
− | * | + | * 2015 File encryption |
− | |||
* 2010 Lazy Initialization<ref>https://en.wikipedia.org/wiki/Ext4#Features</ref> | * 2010 Lazy Initialization<ref>https://en.wikipedia.org/wiki/Ext4#Features</ref> | ||
* 2006 Online [[resize]] (expand) support | * 2006 Online [[resize]] (expand) support | ||
− | |||
== Activities == | == Activities == | ||
Line 34: | Line 29: | ||
# Configure an [[Linux Administration/Devices and Filesystems/LVM|LVM]] Volume with an ext4 filesystem: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/s1-lvmsetupnfs-haaa | # Configure an [[Linux Administration/Devices and Filesystems/LVM|LVM]] Volume with an ext4 filesystem: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/s1-lvmsetupnfs-haaa | ||
# Learn about Lazy initialization feature of ext4: https://www.thomas-krenn.com/en/wiki/Ext4_Filesystem#Lazy_Initialization | # Learn about Lazy initialization feature of ext4: https://www.thomas-krenn.com/en/wiki/Ext4_Filesystem#Lazy_Initialization | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
Line 50: | Line 37: | ||
* [[ZFS]], [[LVM]], [[mdadm]], [[fdisk]] and [[partitions]] | * [[ZFS]], [[LVM]], [[mdadm]], [[fdisk]] and [[partitions]] | ||
* {{XFS}} | * {{XFS}} | ||
+ | * [[tune2fs]] which allows among other actions to modify reserved space<ref>https://help.ubuntu.com/community/InstallingANewHardDrive</ref> | ||
* [[ext2online]] | * [[ext2online]] | ||
* {{JFS2}} | * {{JFS2}} | ||
+ | * [[chfs]] ([[AIX]]) | ||
* {{mount}} | * {{mount}} | ||
* {{Linux Commands privileges}} | * {{Linux Commands privileges}} |
Advertising: