0

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?

7
  • 2
    It made more sense to you to ask this question than to do the obvious: Unmount the share and see what happens...? Commented Feb 4, 2014 at 4:21
  • Agreed, more work to ask a Q here then to unmount? Commented Feb 4, 2014 at 4:24
  • I'm fairly new to Linux, and I wanted to be sure before trying anything. Commented 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... Commented 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. Commented Feb 4, 2014 at 4:38

1 Answer 1

3

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).

1
  • Thanks, I suspected that that would help, but wanted to be sure. Commented Feb 4, 2014 at 4:27

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.