Go Back   Android Forums > Android Phones > Samsung Galaxy Nexus > (Verizon) Galaxy Nexus - All Things Root
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old February 19th, 2012, 09:45 PM   #1 (permalink)
Premium Member
Thread Author (OP)
 
gapi's Avatar
 
Join Date: May 2011
Location: N GA
Posts: 1,555
 
Device(s): Galaxy Nexus All Up A'Ginn It!
Carrier: Not Provided

Thanks: 516
Thanked 1,456 Times in 809 Posts
Default /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?

__________________
Galaxy Nexus Toro / AOKP JB MR1/ Lean & Franco Kernels

gapi is offline  
Reply With Quote
Sponsors
Old February 19th, 2012, 11:14 PM   #2 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 12,560
 
Device(s): Galaxy Nexus, Nexus 7, Droid X, Droid Eris
Carrier: Verizon

Thanks: 15,696
Thanked 9,126 Times in 4,747 Posts
Default

Quote:
Originally Posted by gapi View Post
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:

Quote:
< /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:




Cheers!
scary alien is online now  
Reply With Quote
The Following User Says Thank You to scary alien For This Useful Post:
jmar (February 20th, 2012)
Old February 20th, 2012, 05:26 AM   #3 (permalink)
Premium Member
Thread Author (OP)
 
gapi's Avatar
 
Join Date: May 2011
Location: N GA
Posts: 1,555
 
Device(s): Galaxy Nexus All Up A'Ginn It!
Carrier: Not Provided

Thanks: 516
Thanked 1,456 Times in 809 Posts
Default

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?
gapi is offline  
Reply With Quote
Old February 20th, 2012, 07:42 AM   #4 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 12,560
 
Device(s): Galaxy Nexus, Nexus 7, Droid X, Droid Eris
Carrier: Verizon

Thanks: 15,696
Thanked 9,126 Times in 4,747 Posts
Default

Quote:
Originally Posted by gapi View Post
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...? 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... .
scary alien is online now  
Reply With Quote
Old February 20th, 2012, 08:28 AM   #5 (permalink)
Senior Member
 
Join Date: Apr 2010
Location: B'more
Posts: 1,685
 
Device(s): Galaxy Nexus (LTE), (old)HTC Incredible, (older phone)Samsung SCH-i760
Carrier: Not Provided

Thanks: 1,623
Thanked 777 Times in 472 Posts
Default

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.
Crashumbc is offline  
Reply With Quote
The Following 2 Users Say Thank You to Crashumbc For This Useful Post:
gapi (February 20th, 2012), scary alien (February 20th, 2012)
Old February 20th, 2012, 12:24 PM   #6 (permalink)
Premium Member
Thread Author (OP)
 
gapi's Avatar
 
Join Date: May 2011
Location: N GA
Posts: 1,555
 
Device(s): Galaxy Nexus All Up A'Ginn It!
Carrier: Not Provided

Thanks: 516
Thanked 1,456 Times in 809 Posts
Default

Quote:
Originally Posted by Crashumbc View Post
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.

that would clear it up for me.
gapi is offline  
Reply With Quote
Old February 20th, 2012, 03:35 PM   #7 (permalink)
Senior Member
 
jkc120's Avatar
 
Join Date: Apr 2010
Location: El Dorado Hills, CA
Posts: 2,071
 
Device(s): LTE Galaxy Nexus (AOKP b37); Dinc (CM 7.1) [retired]
Carrier: Not Provided

Thanks: 957
Thanked 1,306 Times in 762 Posts
Default

Quote:
Originally Posted by gapi View Post
that would clear it up for me.
What you're seeing is the real mount point versus a logical path via symbolic links:

Quote:
# mount | grep sdcard
/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /mnt/sdcard ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,nom blk_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:

Quote:
# 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.
__________________
"I drank what?" -Socrates
jkc120 is offline  
Reply With Quote
The Following User Says Thank You to jkc120 For This Useful Post:
scary alien (February 20th, 2012)
Old February 20th, 2012, 03:43 PM   #8 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 12,560
 
Device(s): Galaxy Nexus, Nexus 7, Droid X, Droid Eris
Carrier: Verizon

Thanks: 15,696
Thanked 9,126 Times in 4,747 Posts
Default

^^^ Hey, that's what I said!

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

scary alien is online now  
Reply With Quote
Old February 20th, 2012, 03:49 PM   #9 (permalink)
Senior Member
 
jkc120's Avatar
 
Join Date: Apr 2010
Location: El Dorado Hills, CA
Posts: 2,071
 
Device(s): LTE Galaxy Nexus (AOKP b37); Dinc (CM 7.1) [retired]
Carrier: Not Provided

Thanks: 957
Thanked 1,306 Times in 762 Posts
Default

Quote:
Originally Posted by scary alien View Post
^^^ Hey, that's what I said!

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

oops! Sorry, I saw your first reply but not the second
jkc120 is offline  
Reply With Quote
The Following User Says Thank You to jkc120 For This Useful Post:
scary alien (February 20th, 2012)
Old February 20th, 2012, 03:59 PM   #10 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 12,560
 
Device(s): Galaxy Nexus, Nexus 7, Droid X, Droid Eris
Carrier: Verizon

Thanks: 15,696
Thanked 9,126 Times in 4,747 Posts
Default

Quote:
Originally Posted by jkc120 View Post
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!
scary alien is online now  
Reply With Quote
Sponsors
Reply


Go Back   Android Forums > Android Phones > Samsung Galaxy Nexus > (Verizon) Galaxy Nexus - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:02 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.