[bootlin/training-materials updates] master: slides/sysdev-block-filesystems: reduce the focus on genext2fs (6db63f59)
Michael Opdenacker
michael.opdenacker at bootlin.com
Thu Sep 29 13:16:42 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/6db63f5934ca53475f1eb8a250c94936ac6b9b2e
>---------------------------------------------------------------
commit 6db63f5934ca53475f1eb8a250c94936ac6b9b2e
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Thu Sep 29 13:16:04 2022 +0200
slides/sysdev-block-filesystems: reduce the focus on genext2fs
Applying only to ext2
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
6db63f5934ca53475f1eb8a250c94936ac6b9b2e
.../sysdev-block-filesystems.tex | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex b/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex
index 4715f3ae..01dbb4f6 100644
--- a/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex
+++ b/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex
@@ -295,13 +295,15 @@ major minor #blocks name
\item To create a filesystem image from a directory containing all
your files and directories
\begin{itemize}
- \item Use the \code{genext2fs} tool, from the package of the same name
- \item This tool only supports ext2. Alternative for other
- filesystems: create a disk image, format it, mount it (see
- next slides), copy contents and umount.
- \item \code{genext2fs -d rootfs/ rootfs.img}
- \item Your image is then ready to be transferred to your block
- device
+ \item For some filesystems, there are utilities to create a
+ filesystem image from an existing directory:
+ \begin{itemize}
+ \item {\em ext2}: \code{genext2fs -d rootfs/ rootfs.img}
+ \item {\em squashfs}: \code{mksquashfs rootfs/ rootfs.sqfs} (details later)
+ \end{itemize}
+ \item For other (read-write) filesystems: create a disk image,
+ format it, mount it (see next slides), copy contents and umount.
+ \item Your image is then ready to be transferred to your block device
\end{itemize}
\end{itemize}
\end{frame}
@@ -311,9 +313,8 @@ major minor #blocks name
\begin{itemize}
\item Once a filesystem image has been created, one can access and
modifies its contents from the development workstation, using the
- {\bf loop} mechanism
+ {\bf loop} mechanism:
\item Example:\\
- \code{genext2fs -d rootfs/ rootfs.img}\\
\code{mkdir /tmp/tst}\\
\code{mount -t ext2 -o loop rootfs.img /tmp/tst}
\item In the \code{/tmp/tst} directory, one can access and modify
More information about the training-materials-updates
mailing list