Mount a USB flash drive and a CD in RedHat Linux

Source: Internet
Author: User

USB flash disk mounting

1. Insert a USB flash drive.

2. Use fdisk-L to view disk Information

[Root @ localhost USB] # fdisk-l

Disk/dev/SDA: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device boot start end blocks ID system
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 1012 8024467 + 83 Linux
/Dev/sda3 1013 1044 257040 82 Linux swap

Disk/dev/SDB
: 511 MB, 511558144 bytes
16 Heads, 61 sectors/track, 1023 Cylinders
Units = cylinders of 976*512 = 499712 bytes

 

The red figure above shows the USB flash drive.

 

3. Create a USB directory under the MNT directory (this can be customized)

[Root @ localhost MNT] # mkdir USB

4. mount a USB flash drive

[Root @ localhost MNT] # Mount/dev/sdb/mnt/USB/

 

5. Enter/mnt/USB to view the content of the USB flash disk.

6. unmount the USB flash drive

[Root @ localhost USB] # umount-L/dev/SDB

 

Attach a cd

Similar to a USB flash drive.

1. Insert the disc.

 

2. Attach a cd

[Root @ localhost MNT] # Mount/dev/CDROM/mnt/CDROM/

 

3. Uninstall the CD

[Root @ localhost USB] # umount-L/dev/CDROM

 

4. pop up the CD

[Root @ localhost USB] # eject

 

The above test passed in VMware workstation6.5 + RedHat Linux 9 (2.4 kernel.

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.