The difference between Mnt,media and the dev directory in Linux

Source: Internet
Author: User

A few days ago, the hands of the cheap, accidentally deleted/usr. So carved a BACKTRACK3 boot disk, go into the system backup.
I mounted the home with mount/dev/sda6/mnt/home and then tar cf/mnt/usb0/bak.tar/mnt/home back up.
After the backup, I backtrack3 in the virtual directory around, suddenly, I found/media directory also has a home folder, open a look, found and/mnt/home exactly the same!
Originally, the/MNT directory holds the hardware that is mounted manually, the/media directory holds the Automatically mounted hardware (the load point is automatically created and deleted by the system), there is no special difference between the two.

Tell me more about/dev.
/dev is not a driver for a device, but an interface for accessing external device files. For example, our USB stick, after inserting the Linux system, use Fdisk-l to view the partition, display the file as/dev/sda1. Then we can mount the U-disk to/mnt/usb0, mount/dev/sda1/mnt/usb0.

The above is the difference between the three.

Reference documents:

The "/mnt/media/dev directory Difference" about/dev is a copy of this.

The difference between MNT and media (LINUX, whichhas not figured out the relationship between the/media directory and the/mnt directory) , shows the difference between the /mnt directory and the/media directory in two articles.

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.