Mount command: Linux external storage media mounting method

  
                  

When using a CD, floppy disk or USB flash drive, the Linux system must first execute the mount command. The mount command will specify these storage media as a directory in the system, and then directly access the corresponding directory to read and write data on the storage media. 1.



disc mount command to mount the discs are as follows:

# mount -t is09660 /dev /cdrom /mnt /cdrom

the The command mounts the CD to the /mnt/cdrom directory and uses the "ls /mnt/cdrom" command to display the data and files on the CD. CD uninstall command

follows:

# umount /mnt /cdrom

2.

will mount a floppy diskette mount /mnt /floppy directory command is as follows:

# mount /dev /fd0 /mnt /floppy

command to unmount floppy disk as follows:

#umount /mnt /floppy

3. Mounting a USB flash drive to mount a USB flash drive is relatively complicated.

the first to use "fdisk -l" command to see the plug-in flash memory device number, usually /dev /sda1. Then use the "mkdir /mnt/usb" command to create a directory to mount the U disk. After FAT format using the following command to mount the U-:

# mount -t msdos /dev /sda1 /mnt /usb

U disk using the following command to mount FAT32 format:

# mount -t vfat /dev /sda1 /mnt /usb

4. partition mounted external hard drives

plug mount the hard disk partition (FAT32 format) also need to use " Fdisk -1" View the external hard disk partition device number, assuming /dev/hda1. After establishing /mnt /vfat mount directory, use the following command to mount:

# mount -t vfat /dev /hda1 /mnt /vfat

note that, by default, Linux only allows The root user executes the mount command. If you want the general user can mount, and want to automatically mounted at system startup CD or floppy disk, you need to modify /etc /fstab configuration file, add the following:

LABEL = //ext3 defaults 11 < BR> /dev /cdrom /mnt /cdrom iSo9660 auto, owner, kudzu, ro, user 00
/dev /fdo /mnt /floppy auto auto, owner, kudzu, ro, user 00

which "user" means to give the mount command to the general user.

/etc /fstab file in Linux is very detailed help manual, the reader may wish to look.

Copyright © Windows knowledge All Rights Reserved