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.