Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📕✨:add initial accessions: mount & umount commands (umount later) #22

Merged
merged 41 commits into from
Dec 27, 2023
Merged
Changes from 27 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
563de85
📕✨:add initial accessions: mount
DerekNonGeneric Dec 27, 2023
7619cc0
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
32d215e
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
13072f3
fix(doc): correct incongruences in link label defs
DerekNonGeneric Dec 27, 2023
881fe71
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
f7e1aa3
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
deb0ad2
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
0dc8531
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
73ccd82
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
b025b7d
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
cbc3468
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
ac62a64
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
31d1e2d
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
d8966b3
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
d7ac391
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
217b1d3
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
026728a
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
785e303
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
a8dfddc
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
90ec6b0
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
10e4959
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
752b591
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
299e8ec
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
6a88bc1
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
f6e17bb
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
d1af3e9
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
b0e12d5
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
a2722ff
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
211eeb7
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
95df858
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
59a01a5
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
5c1815f
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
44a8aa6
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
c6d45ce
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
a69a97f
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
99769b9
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
9c293e5
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
c460be3
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
e697275
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
ede9132
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
3ca0df2
Update doc/glossary.md
DerekNonGeneric Dec 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 112 additions & 35 deletions doc/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,100 @@ directory to all files contained within the directory.
<br />

<dl>
<dt></dt><br />
<section id="mount"><dt>

#### <dfn><code>mount</code></dfn>&nbsp;<a role="button" aria-expanded="false" tabindex="0" href="#mount" id="mount-ref">⚓</a>

</dt>
<div align="right"><note place="source"><ref target="chap11">

[⑪📑][]

</ref></note></div>
<dd>
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved

The [`mount`][] command allows users to **_mount_**, i.e., attach additional
child filesystems to a particular mount point on the currently accessible
filesystem.

<details>
<summary>Learn more&hellip;</summary>


To temporarily mount a filesystem to the Linux virtual directory, use the
[`mount`][] command; the basic format for the [`mount`][] command is:

```console
$ mount -t fstype device mountpoint
```

Use the `-t` command-line option to specify the filesystem type of the device:

```console
$ sudo mount -t ext4 /dev/sdb1 /media/usb1
```

If one specifies the [`mount`][] command with no parameters, it displays all
devices currently mounted on the Linux system. Be prepared for a long output
though, as most Linux distributions mount many virtual devices in the virtual
directory to provide information about system resources. Listing 11.1 shows a
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
partial output from a [`mount`][] command.



<div align="center"><br /><br />
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
<figure><div align="left">
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved

```console
$ mount
...
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda1 on /boot/efi type vfat
(rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859
-1,shortname=mixed,errors=remount-ro)
...
/dev/sdb1 on /media/usb1 type ext4 (rw,relatime,data=ordered)
/dev/sdb2 on /media/usb2 type ext4 (rw,relatime,data=ordered)
rich@rich-TestBox2:~$
```

</div><br /><figcaption>

***Listing 11.1: Output from the [`mount`][] command.***
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved

</figcaption>
</figure><br /><br />
</div>


To save space, the output from the [`mount`][] command was trimmed down to _only_ show
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
the physical devices on the system. The main hard drive device (`/dev/sda`)
contains two partitions, and the USB memory stick device (`/dev/sdb`) also
contains two partitions.

<picture>
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/OpenINF/GitHub-Markdown/HEAD/blockquotes/badge/light-theme/info.svg">
<img alt="Note" src="https://raw.githubusercontent.com/OpenINF/GitHub-Markdown/HEAD/blockquotes/badge/dark-theme/info.svg">
</picture><br />
<strong>Note</strong>

The [`mount`][] command uses the `-o` option to specify additional features of the
filesystem, such as mounting it in read-only mode, user permissions assigned to
the mount point, and how data is stored on the device. These options are shown
in the output of the [`mount`][] command. Usually, one can omit the `-o` option to
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
use the system defaults for the new mount point.
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved

The downside to the [`mount`][] command is that it only temporarily mounts the
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
device in the virtual directory. When you reboot the system, you have to
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
manually mount the devices again. This is usually fine for removable devices,
such as USB memory sticks, but for more permanent devices it would be nice if
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
Linux could mount them for us automatically. Fortunately for us, Linux can do
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
just that.

To remove a mounted drive from the virtual directory, use the [`umount`][] command
(note the missing _n_). You can remove the mounted drive by specifying either
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
the device file name or the mount point directory.
</details>
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
</dd>
</dl>

Expand Down Expand Up @@ -1174,7 +1265,7 @@ many system services from one interface.

<br /><br />

<!-- BEGIN LINK DEFINITIONS -->
<!-- BEGIN LINK LABEL DEFINITIONS -->

[^1]: https://www.redhat.com/en/topics/linux/what-is-centos
[^2]: https://docs.docker.com/get-started/overview/#images
Expand All @@ -1198,52 +1289,38 @@ many system services from one interface.

<!-- Glossary Entries -->

[access control list (ACL)]: ./glossary.md#acl
[AppArmor]: ./glossary.md#apparmor
[`doas`]: ./glossary.md#doas

[`/etc/mtab`]: ./glossary.md#etc-mtab
[`/etc/rsyslog.conf`]: ./glossary.md#etc-rsyslog-conf
[`chmod`]: ./glossary.md#chmod

[`doas`]: ./glossary.md#doas
[`fstab`]: ./glossary.md#etc-fstab

[`getfacl`]: ./glossary.md#getfacl

[inheritance]: ./glossary.md#inheritance

[Linux ext file systems]: https://ext4.wiki.kernel.org/index.php/Main_Page

[`mtab`]: ./glossary.md#etc-mtab
[`/etc/mtab`]: ./glossary.md#etc-mtab
[`/etc/rsyslog.conf`]: ./glossary.md#etc-rsyslog-conf
[`klogd`]: ./glossary.md#klogd
[`syslog`]: ./glossary.md#syslog
[`syslogd`]: ./glossary.md#syslogd
[`sysklogd`]: ./glossary.md#sysklogd
[`syslogd-ng`]: ./glossary.md#syslogd-ng
[`mount`]: ./glossary.md#mount
[`mtab`]: ./glossary.md#mtab
[`rsyslog`]: ./glossary.md#rsyslog
[`rsyslogd`]: ./glossary.md#rsyslogd

[`setfacl`]: ./glossary.md#setfacl
[`su`]: ./glossary.md#su
[`sudo`]: ./glossary.md#sudo
[`sudoedit`]: ./glossary.md#sudoedit
[`sysklogd`]: ./glossary.md#sysklogd
[`syslog`]: ./glossary.md#syslog
[`syslogd-ng`]: ./glossary.md#syslogd-ng
[`syslogd`]: ./glossary.md#syslogd
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
[`umount`]: ./glossary.md#umount
[access control list (ACL)]: ./glossary.md#acl
[AppArmor]: ./glossary.md#apparmor
DerekNonGeneric marked this conversation as resolved.
Show resolved Hide resolved
[Listing 11.1]: ./glossary.md#listing_11-1
[inheritance]: ./glossary.md#inheritance
[Rsyslog]: ./glossary.md#rsyslog
[rsyslogd]: ./glossary.md#rsyslogd

[SELinux]: ./glossary.md#selinux
[`setfacl`]: ./glossary.md#setfacl
[Syslog]: ./glossary.md#syslog
[syslogd]: ./glossary.md#syslogd
[Systemd]: ./glossary.md#systemd

[`su`]: ./glossary.md#su
[`sudo`]: ./glossary.md#sudo
[`sudoedit`]: ./glossary.md#sudoedit

[Unix file permissions]: ./glossary.md#unix-file-perms

<!-- uCertify Chapter Markers -->

<!-- BEGIN LINK DEFINITIONS -->

<!-- uCertify Chapter Markers -->

[⓪📑]: https://www.ucertify.com/app/?func=ebook&chapter_no=1#top "uCertify ch. 0"
[①📑]: https://www.ucertify.com/app/?func=ebook&chapter_no=2#top "uCertify ch. 1"
[②📑]: https://www.ucertify.com/app/?func=ebook&chapter_no=3#top "uCertify ch. 2"
Expand Down Expand Up @@ -1296,4 +1373,4 @@ many system services from one interface.
[㊾📑]: https://www.ucertify.com/app/?func=ebook&chapter_no=50#top "uCertify ch. 49"
[㊿📑]: https://www.ucertify.com/app/?func=ebook&chapter_no=51#top "uCertify ch. 50"

<!-- END LINK DEFINITIONS -->
<!-- END LINK LABEL DEFINITIONS -->