1. 2015 is going to be a great year for Android! Why wait??
    Samsung Galaxy Note 5 | Samsung Galaxy S6 | HTC One M9
  2. New Forum Created: Samsung Gear VR!

/mnt Folder?


  1. gapi

    gapi VIP Member VIP Member

    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?

    Advertisement
    :
  2. scary alien

    scary alien not really so scary Moderator

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

    Linux's directory structure says:

    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!
    jmar likes this.
  3. gapi

    gapi VIP Member VIP Member

    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?
  4. scary alien

    scary alien not really so scary Moderator

    Well, not sure about anything being duplicates...? :confused: 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...:) ;).
  5. Crashumbc

    Crashumbc Well-Known Member

    Yeah, to add to SA,

    It sounds like what your seeing is a display difference not a duplication. Depending on what application your using, its displaying the location differently.
    gapi and scary alien like this.
  6. gapi

    gapi VIP Member VIP Member


    that would clear it up for me.
  7. jkc120

    jkc120 Well-Known Member

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

    So the real mount point is /mnt/sdcard. But there is a symbolic link in / for sdcard to /mnt/sdcard:

    So no it's not a duplicate, it's just an alternative way to get to the path.

    Hope that helps clarify. :)
    scary alien likes this.
  8. scary alien

    scary alien not really so scary Moderator

    ^^^ Hey, that's what I said! :eek: :D :p ;) :)

    ("nobody gets me" scary alien mumbles as he slinks-off to the corner...)

    :) :) :)
  9. jkc120

    jkc120 Well-Known Member

    oops! Sorry, I saw your first reply but not the second :)
    scary alien likes this.
  10. scary alien

    scary alien not really so scary Moderator

    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!
  11. chablah

    chablah Member

    Thanks guys!
Loading...

Share This Page