From 0f5b08eb755023e1e4c8bcb660ba52a7efa4afd3 Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
Date: Fri, 31 Aug 2018 15:13:02 +0206
Subject: filesystems: show mkfs for real partitions before loop

Creating filesystems for real partitions should be shown first.
Then, the slightly more complex example of loop images can be
shown.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 linux-basics/filesystems/pres_filesystems_en.tex | 31 ++++++++++++------------
 1 file changed, 16 insertions(+), 15 deletions(-)

(limited to 'linux-basics/filesystems/pres_filesystems_en.tex')

diff --git a/linux-basics/filesystems/pres_filesystems_en.tex b/linux-basics/filesystems/pres_filesystems_en.tex
index e6339e5..d2c3b9e 100644
--- a/linux-basics/filesystems/pres_filesystems_en.tex
+++ b/linux-basics/filesystems/pres_filesystems_en.tex
@@ -161,6 +161,21 @@ of data are stored): XFS
 \end{frame}
 
 \subsubsection{Creating and testing filesystems}
+
+\begin{frame}[fragile]
+\frametitle{Creating filesystems}
+\begin{lstlisting}[keywordstyle=\ttfamily\footnotesize]
+# EXT2 filesystem on a disk partition
+mkfs.ext2 -b 2048 /dev/sdb2
+# Checking an EXT2 filesystem
+fsck.ext2 /dev/sdb2
+# Mounting an EXT2 partition
+mount -t ext2 /dev/sdb2 /mountpoint
+# or just
+mount /dev/sdb2 /mountpoint
+\end{lstlisting}
+\end{frame}
+
 \begin{frame}[fragile]
 \frametitle{Creating filesystems}
 \begin{lstlisting}[keywordstyle=\ttfamily\footnotesize]
@@ -183,25 +198,11 @@ First data block=0
 \end{lstlisting}
 \end{frame}
 
-\begin{frame}[fragile]
-\frametitle{Creating filesystems}
-\begin{lstlisting}[keywordstyle=\ttfamily\footnotesize]
-# EXT2 filesystem on a disk partition
-mkfs.ext2 -b 2048 /dev/sdb2
-# Checking an EXT2 filesystem
-fsck.ext2 /dev/sdb2
-# Mounting an EXT2 partition
-mount -t ext2 /dev/sdb2 /mountpoint
-# or just
-mount /dev/sdb2 /mountpoint
-\end{lstlisting}
-\end{frame}
-
 \begin{frame}[fragile]
 \frametitle{Testing filesystems for block devices}
 \begin{lstlisting}[keywordstyle=\ttfamily\footnotesize]
 # 1) Mounting a filesystem which is located in a file
-mount -o loop ext2.imt /mountpoint
+mount -o loop ext2.img /mountpoint
 # 2) Mounting a specific partition of a complete disk image
 $ fdisk -lu bla.img 
 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
-- 
cgit v1.2.3

