Red Hat Linux Mounts External resources

Source: Internet
Author: User

In our installation of Red Hat Linux. Half of the machines are configured for the primary server, with no desktop environment. When copying files from a USB stick, you are puzzled. I found it on the Internet. To access the USB drive, you must first mount them to the/mnt folder in your Linux system. The process of loading a USB flash drive is as follows:

Before mounting the U-disk, execute the command cat/proc/partitions to see which partitions are present in the system. After inserting the U-disk, execute the above command again to see what partition is out (generally sda1. Because I was installed under the virtual machine, so it is SDB1).
1) Insert USB stick
2) Enter Fdisk-l/DEV/SDA to view the output, for example I am this:

# fdisk-l/DEV/SDA
disk/dev/sda:131 MB, 131104768 bytes
3 heads, Sectors/track, 2667 cylinders
Units = Cylinders of * 49152 bytes
Device Boot Start End Blocks Id System
/DEV/SDB1 * 1 2668 128016 6 FAT16

3) Look at the above output to know the device that the U disk is located. For example, mine is/DEV/SDB1. Then it is mounted, if I mount the USB drive to the/mnt/usb folder (no, new). It is
Mount-t Msdos/dev/sdb1/mnt/usb. Pay attention to the storage format of the USB flash drive when loading.
Let's say FAT16 uses the following command
Mount-t Msdos/dev/sdb1/mnt/usb
Assuming it's FAT32, the USB drive we're using now is in this format by default.
Mount-t Vfat/dev/sdb1/mnt/usb
If it is ext2 format, use the command:
Mount-t Ext2/dev/sda1/mnt/usb
4) Open/mnt/usb to see what's on your USB flash drive!
5) The Unload command is: UMOUNT/MNT/USB.

It is important to note that. When you run this command, the LEDs on your USB flash drive may still be on, and this is not an uninstallation failure. Linux's management of the USB stick is a kernel-module. Only the kernel module of the USB device is not removed, the indicator light should be lit after the uninstall.

When installing the desktop environment for the system, the same problem encountered the need to mount resources.

The installation file for the desktop is in the system installation image, assuming you want to install the desktop file. To mount the image file first, the mount process is as follows:

A. Build a folder, such as: mkdir/mnt/a
b. Attach the ISO file to the folder: Mount-o loop Xxxx.iso A
Now the contents of the folder/mnt/a are the contents of the ISO file.

When the installation command is executed. The system is on its own initiative to the file down the search.

The mounting resources are clear, and red Hat is much easier to use.

Red Hat Linux Mounts External resources

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.