diff options
| author | John Ogness <john.ogness@linutronix.de> | 2018-08-31 15:13:02 +0206 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-08-31 15:13:02 +0206 |
| commit | 0f5b08eb755023e1e4c8bcb660ba52a7efa4afd3 (patch) | |
| tree | 491e4d26f0363e64efc6efde8ec553ab2b4a518c /linux-basics/filesystems/pres_filesystems_en.tex | |
| parent | eb84168cfbe0e53a054a4335a8a4bd4142eef70f (diff) | |
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>
Diffstat (limited to 'linux-basics/filesystems/pres_filesystems_en.tex')
| -rw-r--r-- | linux-basics/filesystems/pres_filesystems_en.tex | 31 |
1 files changed, 16 insertions, 15 deletions
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] @@ -184,24 +199,10 @@ First data block=0 \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 |
