mwbutler Posted October 20, 2011 Posted October 20, 2011 I need to delete around 1TB of data off of one of our ReadyNAS 2100s. Deleting all this data manually is a no go so is there any free software or scripts I can use to get rid of the data? I tried using Robocopy to delete the data but it kept throwing up (lack of) permission errors despite the account having full access to both folders and all data inside. Any advice is much appreciated. Cheers!
sted Posted October 20, 2011 Posted October 20, 2011 might be quicker to reformat and copy back the data you do want on there
mwbutler Posted October 20, 2011 Author Posted October 20, 2011 might be quicker to reformat and copy back the data you do want on there The NAS holds 4TB in total (it's 98% full) and we have no where to copy the other 3TB of data to. Good suggestion though.
mwbutler Posted October 20, 2011 Author Posted October 20, 2011 can it be deleted from the web interface? Heh I had completely forgotten I could do that I'm not confident in the web interface at all as it rarely works properly for us but |I'll give it ago. Thanks! Any other solutions are more than welcome.
3s-gtech Posted October 20, 2011 Posted October 20, 2011 CMD rmdir /s is very effective with NAS boxes I've found - just did one yesterday with this where manual deletion had hit a roadblock. It's fast too.
mwbutler Posted October 20, 2011 Author Posted October 20, 2011 Using the web interface to delete the folder didn't do anything. I'll retry it again later and leave it going over night. CMD rmdir /s is very effective with NAS boxes I've found - just did one yesterday with this where manual deletion had hit a roadblock. It's fast too. I cannot get this command to work: C:\>rmdir /s "\\netbackup2\pluto\student area\Year\H\RMUsers" \\netbackup2\pluto\student area\Year\H\RMUsers, Are you sure (Y/N)? y The system cannot find the path specified. However I can make a new folder and then delete it: C:\>mkdir "\\netbackup2\pluto\student area\Year\H\RMUsers\test1" C:\>rmdir /s "\\netbackup2\pluto\student area\Year\H\RMUsers\test1" \\netbackup2\pluto\student area\Year\H\RMUsers\test1, Are you sure (Y/N)? y Anyone have any suggestions? I did reboot the NAS and still no luck.
LosOjos Posted October 20, 2011 Posted October 20, 2011 I cannot get this command to work: C:\>rmdir /s "\\netbackup2\pluto\student area\Year\H\RMUsers" \\netbackup2\pluto\student area\Year\H\RMUsers, Are you sure (Y/N)? y The system cannot find the path specified. I have known DOS to be funny about UNC paths, try mapping it to a drive then running the command on the mapped drive
Arthur Posted October 20, 2011 Posted October 20, 2011 (edited) Try this... @echo off pushd "\\netbackup2\pluto\student area\Year\H" rd /s /q RMusers popd The pushd command will automatically map a drive letter for you directly to the "H" folder. Edited October 20, 2011 by Arthur
sted Posted October 20, 2011 Posted October 20, 2011 is it just filenames are too long for windows to cope with might be worth mappign a drive furter down the chain of folders \\nas01\folder\folder\folder\folder and then trying
round2it Posted October 20, 2011 Posted October 20, 2011 (edited) try using 7zip to delete the pesky long filenames it workes great for me use the 7zip browser and hit delete you might have to hold shift down at the same time so they dont goto the recycle bin also i found i can only delete the files on our nas when connecting through the main server http://www.edugeek.net/forums/windows-server-2008/82394-tip-delete-those-pesky-files-windows-refuses-delete-filename-too-long-ect.html Edited October 20, 2011 by round2it
mwbutler Posted October 20, 2011 Author Posted October 20, 2011 I have known DOS to be funny about UNC paths, try mapping it to a drive then running the command on the mapped drive I mapped my R: Drive to \\netbackup2\pluto\student area\Year\H R:\>rmdir /s \RMUsers \RMUsers, Are you sure (Y/N)? y \RMUsers\Students\Work\Year13 - The system cannot find the path specified. \RMUsers\Students\Work\Visitors - The system cannot find the path specified. \RMUsers\Students\Work\Year10 - The system cannot find the path specified. The path is most definately correct and I've tried mapping the folder further up and still no luck Try this... @echo off pushd "\\netbackup2\pluto\student area\Year\H" rd /s /q RMusers popd The pushd command will automatically map a drive letter for you directly to the "H" folder. I still get "The system cannot find the path specified" and the command doesn't map a drive. is it just filenames are too long for windows to cope with might be worth mappign a drive furter down the chain of folders \\nas01\folder\folder\folder\folder and then trying try using 7zip to delete the pesky long filenames it workes great for me use the 7zip browser and hit delete you might have to hold shift down at the same time so they dont goto the recycle bin also i found i can only delete the files on our nas when connecting through the main server http://www.edugeek.net/forums/windows-server-2008/82394-tip-delete-those-pesky-files-windows-refuses-delete-filename-too-long-ect.html I'll try this now. Thanks all I really appreciate the help
mwbutler Posted October 20, 2011 Author Posted October 20, 2011 (edited) is it just filenames are too long for windows to cope with might be worth mappign a drive furter down the chain of folders \\nas01\folder\folder\folder\folder and then trying try using 7zip to delete the pesky long filenames it workes great for me use the 7zip browser and hit delete you might have to hold shift down at the same time so they dont goto the recycle bin also i found i can only delete the files on our nas when connecting through the main server http://www.edugeek.net/forums/windows-server-2008/82394-tip-delete-those-pesky-files-windows-refuses-delete-filename-too-long-ect.html 7Zip couldn't delete the files either and it errored with "The system cannot find the path specified." I mapped a drive on the server and tried using rmdir /s and still got the same error message. Oddly 7Zip is utterly confused about the size of the disks on the NAS. See attachment. I'm going to reinstall the OS on the device to see if that fixes the problem. Edited October 20, 2011 by mwbutler
Arthur Posted October 20, 2011 Posted October 20, 2011 Something else you could try... rd /s /q \\.\R:\RMUsers
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now