Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the skill of mounting mount command?

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use the mount mount command, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. Mount the CD

The command to mount the CD is as follows:

# mount-t is09660 / dev/cdrom / mnt/cdrom

This command mounts the CD to the / mnt/cdrom directory and uses the "ls / mnt/cdrom" command to display the data and files on the CD.

The command to uninstall the CD is as follows:

# umount / mnt/cdrom

two。 Mounting floppy disk

The command to mount the floppy disk to the / mnt/floppy directory is as follows:

# mount / dev/fd0 / mnt/floppy

The command to uninstall the floppy disk is as follows:

# umount / mnt/floppy

3. Mounting a USB disk is relatively complicated.

First use the "fdisk-l" command to check the device number of the plug-in flash memory, usually / dev/sda1. Then use the "mkdir / mnt/usb" command to create a directory to mount the USB disk. Then use the following command to mount the USB disk in FAT format:

# mount-t msdos / dev/sda1 / mnt/usb

Use the following command to mount the USB disk in FAT32 format:

# mount-t vfat / dev/sda1 / mnt/usb

4. Mount the partition of the external hard disk

To mount a plug-in hard disk partition (FAT32 format), you also need to use "fdisk-1" to check the device number of the plug-in hard disk partition, assuming / dev/hda1. After the / mnt/vfat mount directory is established, mount it using the following command:

# mount-t vfat / dev/hda1 / mnt/vfat

Note that by default Linux only allows root users to execute mount commands. If you want the general user to mount the CD or floppy disk automatically when the system starts, you need to modify the / etc/fstab configuration file and add the following:

LABEL=/ / ext3 defaults 11

/ dev/cdrom/mnt/cdrom iSo9660 auto,owner,kudzu,ro,user 00

/ dev/fdo / mnt/floppy auto auto,owner,kudzu,ro,user 00

Where "user" means to grant the mount command to the average user.

On the mount mount command is how to share the skills here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report