Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the mount command of linux to mount the file system

Shulou Source: shulou.com Published: 2022-06-02 12:46:05 09月30日 Update

Don't know how to use linux mount command file system mount? In fact, it is not difficult to solve this problem. Let Xiaobian take you to learn how to solve it together. I hope you will gain a lot after reading this article.

The mount command is used to mount a file system to a specified mount point. This command is most commonly used to mount cdrom, so that we can access the data in cdrom, because you insert the disc into cdrom, Linux does not automatically mount, you must use Linux mount command to manually complete the mount.

Syntax format: mount [parameter]

Common parameters:

-t Specify mount type-l Display list of loaded file systems-h Display help and exit-V Display program version-n Load file systems not written in file "/etc/mtab"-r Load file systems as read-only mode-a Load all file systems described in file "/etc/fstab"

Reference Example

View Version:

[root@linuxcool ~]# mount -V

Start all mounts:

[root@linuxcool ~]# mount -a

Mount/dev/cdrom to/mnt:

[root@linuxcool ~]# mount /dev/cdrom /mnt

Mount file system in nfs format:

[root@linuxcool ~]# mount -t nfs /123 /mnt

Mount the first partition of the first disk into the/etc directory:

[root@linuxcool ~]# mount -t ext4 -o loop,default /dev/sda1/etc Thank you for reading this article carefully, I hope Xiaobian share the use of linux mount command file system mount content is helpful to everyone, but also hope that everyone more support, pay attention to the industry information channel, encounter problems to find, detailed solutions waiting for you to learn!

Tags: Files systems commands parameters formats versions articles questions learning help information CDs content at the same time examples commonly used manual data methods patterns Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Redmi OPPO Reno Apple NVidia