NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

atz6975's avatar
atz6975
Guide
Aug 01, 2015
Solved

[SOLVED] Duplicate files?

Hi,

I was looking for files in my Nas(314/6.2.4) through ssh.

 

I found two copies of the files :

One where it is (/data/Documents.....)

One in /var/ftp/

 

Finally I found that var/ftp contains a lot of the files (Documents, Video) I had in other places.

 

What is /var/ftp?

 

Thx

  • Each share is a subvolume.

     

    If you run df . on /var/ftp and /data, you'll see that the subvolumes (a.k.a. shares) have simply been mounted twice.  There are some details here: https://lwn.net/Articles/579009/

     

     

3 Replies

Replies have been turned off for this discussion
  • Ok...i was a bit lazy....

    Looks like the Nas is mounting there the shares I have FTP enabled for.

    du  -hs * shows a very small /var and a big /data.

    I'm completely unaware of btrfs magic (subvolumes&friends) but is this how this is done (for my culture)?

     

    Thx for taking the time to enlight me.

    • StephenB's avatar
      StephenB
      Guru - Experienced User

      Each share is a subvolume.

       

      If you run df . on /var/ftp and /data, you'll see that the subvolumes (a.k.a. shares) have simply been mounted twice.  There are some details here: https://lwn.net/Articles/579009/

       

       

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More