I'm using a raspberry pi. I didn't think mounting a samba share to a folder full of files would do anything - I thought it would copy the files to the samba share. Now the files are gone from this folder, but the pi's drive is still full. Where did the files go when I mounted the samba share to the folder?
- 2It made more sense to you to ask this question than to do the obvious: Unmount the share and see what happens...?Hauke Laging– Hauke Laging2014-02-04 04:21:46 +00:00Commented Feb 4, 2014 at 4:21
- Agreed, more work to ask a Q here then to unmount?slm– slm ♦2014-02-04 04:24:52 +00:00Commented Feb 4, 2014 at 4:24
- I'm fairly new to Linux, and I wanted to be sure before trying anything.enigmaticeasteregg– enigmaticeasteregg2014-02-04 04:29:49 +00:00Commented Feb 4, 2014 at 4:29
- @enigmaticeasteregg That's a strange statement considering that you have "tried" mounting the share without having understood anything about mounting...Hauke Laging– Hauke Laging2014-02-04 04:31:17 +00:00Commented Feb 4, 2014 at 4:31
- @HaukeLaging Unbeknownst to me the folder on the pi became disconnected from the networked folder, and thus disconnected from a TIFF-JPEG conversion script that I had running on the incoming TIFFs in this networked folder. With the network link broken, the pi quickly filled up. I had never run into the situation before of a network link like this being broken, and the pi filling up.enigmaticeasteregg– enigmaticeasteregg2014-02-04 04:38:34 +00:00Commented Feb 4, 2014 at 4:38
| Show 2 more comments
1 Answer
The mounted volume covers the filesystem content. The files will reappear when you unmount the share.
You can mirror the filesystem content with mount --bind. If you do that before you mount the share then you can still see the filesystem content (at the other location).
- Thanks, I suspected that that would help, but wanted to be sure.enigmaticeasteregg– enigmaticeasteregg2014-02-04 04:27:58 +00:00Commented Feb 4, 2014 at 4:27