Ext4

From wikinotes
Revision as of 18:17, 26 November 2020 by Will (talk | contribs) (→‎Mount)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Ext4 is a journaled filesystem, used by default by most linux distros.

Documentation

man ext4 https://www.man7.org/linux/man-pages/man5/ext4.5.html#MOUNT_OPTIONS


Creation

Mount

FreeBSD

See http://blog.ataboydesign.com/2014/04/23/freebsd-10-mounting-usb-drive-with-ext4-filesystem

# requires package: fusefs-ext2
# NOTE: there is a port sysutils/fusefs-ext4fs but it is deprecated
#       in favour of fusefs-ext2
mount -t ext2fs /dev/ad1s1 /mnt


Linux

You cannot set the uid/gid for ext4 mounts.
Instead, set the permissions of the files on the mounted-mount itself, and they will be preserved.

sudo mount /dev/sdb1 /mnt/usb