• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[Verizon] /mnt Folder?

I noticed when I download it goes to the /mnt folder.

So looking at it I see duplicates? Can someone elaborate on the /mnt folder?

I'll let other, better, and already written sources tell you :):

Linux's directory structure says:

< /mnt >

This directory is used for mount points. The different physical storage devices (like the hard disk drives, floppies, CD-ROM's) must be attached to some directory in the file system tree before they can be accessed. This attaching is called mounting, and the directory where the device is attached is called the mount point.

The /mnt directory contains mount points for different devices, like /mnt/floppy for the floppy drive, /mnt/cdrom for the CD-ROM, and so on. However, you're not forced to use the /mnt directory for this purpose, you can use whatever directory you wish. Actually in some distros, like Debian and SuSE, the default is to use /floppy and /cdrom as mount points instead of directories under /mnt.

Also, this page has a really good (but longer) explanation, too: The /mnt directory definition by The Linux Information Project:
The /mnt Directory

The /mnt directory and its subdirectories are intended for use as the temporary mount points for mounting storage devices, such as CDROMs, floppy disks and USB (universal serial bus) key drives. /mnt is a standard subdirectory of the root directory on Linux and other Unix-like operating systems, along with directories such as /bin, /boot, /dev, /etc, /home, /proc, /root, /sbin, /usr and /var. As is the case with all other first tier directories in the root directory, /mnt's name always begins with a forward slash.

Mounting is the process of attaching an additional filesystem, which resides on a CDROM, hard disk drive (HDD) or other storage device, to the currently accessible filesystem of a computer. Filesystem in this context refers to the hierarchy of directories (also referred to as the directory tree) that is used to organize files on a computer. On Unix-like operating systems, the directories start with the root directory, which is the directory that contains all other directories and files on the system and which is designated by a forward slash. The currently accessible filesystem is the filesystem that is currently in use in the computer.

The mount point is the directory in the currently accessible filesystem (typically an empty directory) to which the additional filesystem is attached (i.e., mounted). It becomes the root directory of the subtree from the newly added storage device, and that subtree becomes accessible from that directory. Any original contents of the mount point become invisible and inaccessible until the filesystem is unmounted (i.e., detached from the main filesystem).

/mnt can be empty, or it can contain subdirectories for mounting individual devices. Its subdirectories on a typical system include /mnt/cdrom and /mnt/floppy; other subdirectories can be created as desired.

Although /mnt exists specifically for mounting storage devices, other directories can also be used for this purpose. Major filesystems on non-root partitions (i.e., logically independent sections) of the hard disk drive (HDD) are typically mounted in the root directory, but they can likewise be mounted in other directories, including those created by a user for the purpose.
Cheers!
 
  • Like
Reactions: jmar
Upvote 0
I see.......

So, are these duplicate files real duplicates or images or mirrors of the files?
If I show a 4.9MB file in /mnt/sdcard, and show the same file 4.9MB file in the /sdcard, is that indeed 9.8MB od data?

Well, not sure about anything being duplicates...? :thinking: What files are you seeing duplicates (what are the full file paths?).

The Samsung Galaxy Nexus has its "SD card" mounted on the /data partition (in /data/media).

Next, "/sdcard" is symbolically linked to /mnt/sdcard.

Your "SD card" data actually lives in the /data/media folder since there really is no externally removable card as you know.

Its a little confusing, I know...:) ;).
 
Upvote 0
that would clear it up for me.

What you're seeing is the real mount point versus a logical path via symbolic links:

# mount | grep sdcard
/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /mnt/sdcard ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc 0 0
So the real mount point is /mnt/sdcard. But there is a symbolic link in / for sdcard to /mnt/sdcard:

# ls -l /sdcard
lrwxrwxrwx root root 2012-02-19 19:44 sdcard -> /mnt/sdcard
So no it's not a duplicate, it's just an alternative way to get to the path.

Hope that helps clarify. :)
 
  • Like
Reactions: scary alien
Upvote 0
oops! Sorry, I saw your first reply but not the second :)

LOL, no, your response was very good...! :)

It really is a little confusing to explain and describe how the SD card is implemented on the Galaxy Nexus.

(don't ask me to tell you about how "fuse" is involved...not sure I understand it all, and not sure I want to ;) :)).

Thanks!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones