NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
akbeer
Jan 21, 2025Aspirant
Amazon S3 not sync for ReadyNAS home directories
I have a ReadyNAS 2304 that has been syncing a share to an Amazon S3 bucket for a few years. This has worked well. I recently configured a second session on the ReadyNAS to sync the user home directo...
- Jan 22, 2025
Home "directories" are actually BTRFS sub-volumes if properly created by the OS. They are only created automatically after the first time the user logs in. So if you created a user and then, not finding the home directories, manually created them as standard directories, that could be the issue. Once you created them, the OS could no longer create the sub-volumes because there would be a name conflict.
There is a command available via SSH to force creation of home directories, it's mkhomedir_helper.
See if btrft subvolume list /home shows them as subvolumes. If it doesn't, you can move the incorrectly created directories elsewhere, properly create hem, and then copy the contents of the old ones to the new ones.
StephenB
Jan 22, 2025Guru - Experienced User
Sandshark wrote:
My NAS have no such files in the home folders. Perhaps they were created due to the S3 sync?
Did you look in the .ssh folder?
root@NAS:~# cd /home/admin
root@NAS:/home/admin# ls -als
total 4
0 drwx------ 1 admin admin 34 Jan 26 2022 .
0 drwxr-xr-x 1 admin admin 10 Mar 12 2023 ..
4 -rw------- 1 admin admin 404 Mar 12 2024 .bash_history
0 drwx------ 1 admin admin 38 Mar 21 2022 .ssh
root@NAS:/home/admin# ls -als .ssh
total 0
0 drwx------ 1 admin admin 38 Mar 21 2022 .
0 drwx------ 1 admin admin 34 Jan 26 2022 ..
0 -rw------- 1 admin admin 0 Mar 21 2022 ssh_authorized_keys
root@NAS:/home/admin#
akbeer
Jan 22, 2025Aspirant
Yes, your picture details exactly what I am seeing.
I'm a bit confused as you said above that the files didn't exist on your NAS, but the picture you sent shows that they do?
- StephenBJan 22, 2025Guru - Experienced User
akbeer wrote:
Yes, your picture details exactly what I am seeing.
I'm a bit confused as you said above that the files didn't exist on your NAS, but the picture you sent shows that they do?
Sandshark said they didn't exist - not me.
- SandsharkJan 22, 2025Sensei
root@RD5200A:/# ls /home/admin -all total 4 drwx------ 1 admin admin 26 Apr 20 2023 . drwxr-xr-x 1 admin admin 34 Mar 31 2023 .. -rw------- 1 admin admin 349 Mar 12 2024 .bash_history root@RD5200A:/# ls /home/admin/.ssh -all ls: cannot access '/home/admin/.ssh': No such file or directory
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!