Remove hardlinked folder sync on btrfs

Currently reading
Remove hardlinked folder sync on btrfs

40
4
NAS
DS1819+ DS1817+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
Last edited:
Hi.

This is too bad. Probably an admin (who doesn't participate anymore in NAS administration) did a hardlink or btrfs tweak, which he didn't communicate.

A folder is mirrored from one shared folder to another one.

I see:
Code:
$ mount
...
/dev/mapper/vg1-volume_1 on /volume1/homes/mad/myData type btrfs (rw,relatime,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,subvolid=265,subvol=/@syno/Data/myData)

1. Is it possible that this was done using the DSM (6.2.4) or was a shell command required to achieve this?
2. How can I revert this action = split the link?

Thanks
 
Last edited:
I found the problem.
It was a forgotten (undocumented) script /usr/local/etc/S99mount.sh, which created the links as follows:
Code:
/bin/mkdir -p "$2"
/bin/mount -o bind "$1" "$2"
/usr/syno/bin/synologset1  sys info 0x11800000 "$0: Mounted $1 to $2"
After removing that script that, the btrfs subvolume was gone (after restart).
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Today i noticed a security benefit for having multiple shared folders. Some shared folders that don’t...
Replies
20
Views
2,699
@tonyufo Thanks for the advise but unfortunately this is still the same, the Advanced Share Permissions...
Replies
2
Views
845

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top