<p dir="ltr">When you created the folder it was just a folder on your local filesystem. When you mounted the drive to that folder, you were saying your flash drive's filesystem starts in that folder. When you unmount the drive the file will be in /mnt/usbflash, as it will once again just be a folder on your local file system. So you'll probably want to delete that, especially if it was a large SQL dump. Linux file structure can be weird thinking about it at first, but it's actually very logical.</p>
<div class="gmail_quote">On Feb 5, 2013 11:28 PM, "Steve @ HCS" <<a href="mailto:steveg@branchadventures.org">steveg@branchadventures.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Yes, that makes a lot of sense. An
interesting thing i did accidentally was to write a file to the OS
folder before i mounted it. After mounting, it never got sent to
the actual drive after i then mounted it. Kind of in limbo
land. <br>
Lessons learned. Thanks John<br>
<br>
On 2/5/2013 11:16 PM, John Wesorick wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">Linux uses a single filesystem hierarchy. Everything
is under / (even removable or network drives). When you created
the folder and mounted the flash drive to /mnt/usbflash you were
telling the OS that your flash drive can be found at
/mnt/usbflash. Without mounting it, Linux can't see it, since it
isn't in the file system hierarchy. Does that make sense?</p>
<div class="gmail_quote">On Feb 5, 2013 11:08 PM, "Steve @ HCS"
<<a href="mailto:steveg@branchadventures.org" target="_blank">steveg@branchadventures.org</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Thanks John,<br>
<br>
Is the folder on the OS, a hardware abstraction queue?<br>
<br>
On 2/5/2013 10:53 PM, John Wesorick wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">I don't understand. You mounted your flash
drive to a folder on your OS and wrote to it. That's how
it works.</p>
<div class="gmail_quote">On Feb 5, 2013 10:39 PM, "Steve @
HCS" <<a href="mailto:steveg@branchadventures.org" target="_blank">steveg@branchadventures.org</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While i'm out tonight wearing my ignorance on my
shoulder, i was wondering if someone could provide an
explanation of how the below works.<br>
<br>
On a VMware server running Centos, i needed to copy
some sql data onto a flashdrive. Once the USB host
and device are attached to the VM,<br>
in order to be able to write to the flashdrive i:<br>
<br>
fdisk -l and got the "sdc3" that i needed<br>
<br>
But i just don't understand enough about the OS to
know how the below mounting works. Why writing to the
"usbflash" magically shows up on the flashdrive is a
mystery to my brain.<br>
<br>
mkdir /mnt/usbflash<br>
cp tmp/asdf.sql to the usbflash directory i just
created<br>
mount /dev/sdc3 /mnt/usbflash<br>
<br>
P.S. Above is from memory of earlier in the day so
hopefully is accurate<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
grlug mailing list
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a></pre>
</blockquote>
<br>
<br>
<div>-- <br>
<font color="black">
<h3>Healthy Computer Systems </h3>
<h4>Steve Grody - Owner </h4>
<h4><a href="tel:616-502-2454" value="+16165022454" target="_blank">616-502-2454</a></h4>
</font></div>
</div>
<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
grlug mailing list
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a></pre>
</blockquote>
<br>
<br>
<div>-- <br>
<font color="black">
<h3>Healthy Computer Systems
</h3>
<h4>Steve Grody - Owner
</h4>
<h4><a href="tel:616-502-2454" value="+16165022454" target="_blank">616-502-2454</a></h4>
</font></div>
</div>
<br>_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br></blockquote></div>