NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Bent82
Jan 19, 2016Guide
Deleting old home directories
A few years ago I upgraded from an old NV to a 314, OS 6.4.1. I have gotten used to many of the differences, but there is something I still can't figure out how to do. I use AD for users, and every...
- Jan 26, 2016
Hi everyone.
You can't just delete those old home folders because they're btrfs subvolumes.
Though this is not supported by NETGEAR Support, you can remove old home folders with:root@rn314:~# btrfs subvolume list /data | grep home
ID 257 gen 516 top level 5 path home
ID 309 gen 133 top level 257 path home/admin
ID 330 gen 516 top level 257 path home/kohdeeroot@rn314:~# btrfs subvolume delete /data/home/kohdee
Delete subvolume (no-commit): '/data/home/kohdee'
root@rn314:~# btrfs subvolume list /data | grep home
ID 257 gen 516 top level 5 path home
ID 309 gen 133 top level 257 path home/adminBy using SMB to connect to the ReadyNAS as admin, you're exposed to the btrfs subvolumes, but you can't delete; however, this lets you delete files and folders from private home shares to regain your missing space from old home folders.
The subvolumes being there empty hurt nobody. Once you delete the data, the only benefit you get out of deleting the subvolume is for asthetics.
Your subvolume list might be different because you were on a domain. The difference would look like btrfs subvolume delete /data/DOMAIN/USERNAME
Doing this is at your own risk and is not supported by NETGEAR Support.
JennC
Jan 19, 2016NETGEAR Employee Retired
Hello Bent82,
When you map the NAS IP with admin login, you should be able to see a share name Home, this should have all the homes shares of users.
Regards,
Bent82
Jan 19, 2016Guide
Hi JennC,
I am not sure I exactly have what you are referring to, but let me see. I can log on to the admin webpage of the ReadyNAS, go to the shares tab, and see and browse the home shares. However, I am unable to delete them, right clicking brings up Browse and Copy, but not delete. Current users show up as a folder with a figure of a person on it, while old, deleted users show up as just a folder, but both behave the same way.
I tried accessing the ReadyNAS though SMB, both as the domain\administrator, and as my own user account (also a domain administrator). Neither allow me to see any home share other than my own in the shares list, and neither can access anything like \\ReadyNAS\home.
StephenB, the users I am trying to delete have already been deleted from AD.
- StephenBJan 19, 2016Guru - Experienced User
Bent82 wrote:
StephenB, the users I am trying to delete have already been deleted from AD.
My guess is that the NAS doesn't immediately delete users when they disappear from AD. If the NAS did that, than any misbehavior in AD itself could result in loss of data. But there should be some way to delete user accounts. Maybe try the "Refresh ADS Accounts" control?
I don't use AD, so I can't offer much on this. There are other people here who use it, perhaps one of them knows how to kill off these stale accounts. You shouldn't be forced to use ssh.
Did you try changing the folder/subfolder owner before you deleted with ssh?
- Bent82Jan 20, 2016Guide
Hi StephenB,
Well, the accounts themselves are gone, if I go look at the accounts page I see the same current list of users I see in AD. That's why I am assuming the folders appear different in the web interface. What I am concerned about is this folders in /home. Most of these folders are empty even, it isn't even a space thing, I mostly want this list of folders up to date for a procedure I am trying to write. In my old NV, I could just browse to /c/ and find the home folders using the domain admin account and delete them, but thyat doesn't work in OS 6. I was suprised that logging in as root using ssh gave me permission errors as well. Changing the owner didn't work either. So I am stumped at the proper way to do this.
mdgm, thanks, PM sent.
- JennCJan 20, 2016NETGEAR Employee Retired
Hello Bent82,
What happens when you map the NAS IP (SMB) and login as admin? This is using the default admin user account of NAS.
Regards,
- mdgm-ntgrJan 19, 2016NETGEAR Employee Retired
Hi Bent82,
I have asked engineering for an update on this issue.
In the meantime, I have sent you a PM.- nswaffordJan 20, 2016Aspirant
I am having the same issue. ReadyNAS 104 running 6.4.1. I connect to AD a couple of days ago and yesterday was trying to clean up the home directory. Even when logged on to the ReadyNAS as Admin I am unable to delete old home directories that were once tied to local accounts on the NAS. I only get the option to copy or browse.
Related Content
NETGEAR Academy

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