Use of floppy disk, CD, and USB flash disk in Linux

Source: Internet
Author: User
Use of floppy disk, CD, and USB flash disk in Linux-Linux general technology-Linux technology and application information. For details, refer to the following section. (1) attaching a floppy disk
To use a floppy disk in Linux, first mount the floppy disk. After inserting the floppy disk, enter "mount/mnt/floppy/" in the terminal. After the floppy disk is mounted by the system, you can use the "cd/mnt/floppy/" command to view the content stored in the floppy disk.

The command is actually # mount? T vfat/dev/fd0/mnt/floppy, you can also mount the floppy disk to another directory, such as the floppy directory under home, # mount/dev/fd0/home/floppy.

Detach a floppy disk

End the use of the floppy disk program. to detach a floppy disk, you can use "umount/mnt/floppy/" to detach the floppy disk.

Copy a file to a floppy disk

Run cp filename/mnt/floppy to copy Linux files to a floppy disk.

Format a floppy disk

If it is lattice FAT: mkfs-t msdos/dev/fd0 1440, 1440 is 1.44M. you can use the mkdosfs/dev/fd0 command to create a floppy disk in the fat format. If the disk is formatted as EXT2: mkfs-t ext2/dev/fd0 1440 or mke2fs/dev/fd0, format the disk as an ext2 file system. Fdformat/dev/fd0H1440, low-level formatting floppy disk.

(2) attaching and detaching a cd
# Mount? T iso9660/mnt/cdrom or # mount/mnt/cdrom

# Umount/mnt/cdrom

You can use the eject to pop up the disc. The eject first calls umount to unmount the disc and then directly pops up the disc.

If you have already attached and no longer use the CD, run the (eject-n command to view the default devices that can be popped up by the System-most of which are CDs)

Directly one "eject"

(3) mount the iso file
Mount-o loop the iso file mount point to be mounted
For example, I want to mount the "redhat-disk1.iso" file under/mnt/d/
Direct: mount-o loop/mnt/d/redhat-disk1.iso/mnt/cdrom

Use of USB flash drives

Generally, most Linux systems can automatically mount a USB flash drive. When a USB flash drive is inserted in the desktop environment, the USB flash drive icon is displayed. Double-click it to open the content of the USB flash drive, you don't need to learn how to copy it. It's the same as win.

If you are using a slightly older Linux system, it may not be automatically mounted, so manually:

Mkdir/mnt/udisk (create a mount point only once)
Mount-t vfat/dev/sda1/mnt/udisk

Then you can operate the files/folders in the USB flash drive (mounted on/mnt/udisk) on the command line or in the desktop environment. When you do not need a USB flash drive, You need to exit/Close the USB flash drive path on the command line or desktop, and then unmount: umount/mnt/udisk.

If the computer still has a SCSI/SATA hard disk or built-in card reader, the partition on the USB flash disk is not/dev/sda1, run fdisk-l to check whether it is sda1, sdb1, sdc1, sdd1...
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.