Red Hat Linux mounts external resources and hat mounts

Source: Internet
Author: User

Red Hat Linux mounts external resources and hat mounts

In our Red Hat Linux installation, half of the machines are the most basic server configurations, and there is no desktop environment. It is difficult to copy files from U. You only need to check them on the Internet, so you must first load them to the/mnt directory of the Linux system to access the software. To load a USB flash drive, follow these steps:

Run cat/proc/partitions to check the partitions in the system. After plugging in the USB flash drive, run the above command again to see what extra partitions are available (generally sda1, Which is sdb1 because I installed it on a virtual machine ).
1) insert a USB flash drive
2) Input fdisk-l/dev/sda to view the output result. For example, mine is like this:

# Fdisk-l/dev/sda
Disk/dev/sda: 131 MB, 131104768 bytes
3 heads, 32 sectors/track, 2667 cylinders
Units = cylinders of 96*512 = 49152 bytes
Device Boot Start End Blocks Id System
/Dev/sdb1*1 2668 128016 6 FAT16

3) after reading the above output, you will know the device where the USB flash disk is located. For example, my device is/dev/sdb1, And then I mounted it, suppose I mount the usb flash drive to the/mnt/usb directory (if not, create a new one), that is
Mount-t msdos/dev/sdb1/mnt/usb. Pay attention to the storage format of the usb flash disk during loading;
If fat16 is used, use the following command.
Mount-t msdos/dev/sdb1/mnt/usb
If fat32 is used, the default format of the USB flash drive is used.
Mount-t vfat/dev/sdb1/mnt/usb
If the format is ext2, run the following command:
Mount-t ext2/dev/sda1/mnt/usb
4) Open/mnt/usb and you will be able to see what is in your usb flash drive!
Cd/mnt/usb
5) The unmount command is umount/mnt/usb.
It should be noted that after executing this command, the indicator on your USB flash drive may still be on. This is not a failure of uninstallation. Linux manages usb flash drives in kernel modules. As long as the kernel module of the usb device is not removed, the indicator lights should still shine after uninstallation.


When installing the desktop environment for the system, you also encounter the need to mount resources. The desktop installation file is in the system installation image. to install the desktop file, first mount the image file as follows:

A. Create a directory, such as mkdir/mnt/.
B. mount the iso file to this directory: mount-o loop xxxx. iso
Now the content in directory/mnt/a is the content in the iso file.

When running the installation command, the system will automatically search for the file.

Now that you understand how to mount resources, you can use Red Hat again.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.