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:
{{lc}}
+
[[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]] ([[2008]]) [[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]].
 
  
Since [[Linux kernel]] [[4.1]] on June 2015<ref>https://lwn.net/Articles/639427/</ref>, ext4 natively supports file [[cryptography|encryption]]
+
Since [[Linux kernel]] 4.1 on June 2015<ref>https://lwn.net/Articles/639427/</ref>, ext4 natively supports file [[cryptography|encryption]]
 
 
* https://man7.org/linux/man-pages/man5/ext4.5.html
 
  
 
==Basic commands==
 
==Basic commands==
* <code>[[mkfs]]</code> and <code>[[mke2fs]]</code>
+
*[[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]] [[/dev/sd]]X</code>  
+
:: <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 ===
<code>[[resize2fs]]</code><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]]
+
[[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==
+
==EXT4 Features timeline==
* 2020 ext4 [[fast commit]] support ([[Linux Kernel 5.10]] December 2020)
+
* 2015 File encryption
* [[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
* 2006 [[Extents]] replace the traditional block mapping scheme used by <code>[[ext2]]</code> and <code>[[ext3]]</code>
 
  
 
== 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
# [[Review ext4 journalctl logs]]
 
 
== [[Mount options]] ==
 
 
== Related terms ==
 
* <code>[[e2label]]</code>
 
* [[XFS]]
 
* [[Reservation percentage]]
 
  
 
== 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}}

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: