NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Bit-Bucket
Aug 06, 2015Aspirant
Creating / Deleting large file crashes ReadyNAS
In VMWare, I was migrating a large VM to a NFS share on my ReadyNAS RN2120. It got to a certain point and then the ReadyNAS crashed. After rebooting it, I tried to delete the directory which contai...
- Aug 07, 2015
Hi Bit-Bucket,
I have sent you a PM.
pyby
Nov 03, 2015Aspirant
may someone write down the solution?
i've got ready nas 2120 and same problem - cant delete 1 file about 1.6tb.
best regards,
Marcin
- Bit-BucketNov 03, 2015Aspirant
Ok, it seems a lot of people are having this issue and apparently it still hasn't been fixed in the ReadyNAS software.
I have posted the script below that will delete large files that are "stuck". Be very careful with this script as you can probably screw things up big-time if you don't get it just right. Mods, please delete if this is not appropriate to post here.
Script follows:
-------------------------
#!/bin/sh
if [ -z "$1" ]; then
echo "no file"
exit 1
fi
file="$1"size=`stat --format='%s' "$file"`
step=1073741824
next=$(($size - $step))while [ $next -gt 0 ]; do
echo "trunc to $next"
truncate -s$next -- "$file"
sync
next=$(($next - $step))
done
rm -- "$file"------------------------
Related Content
NETGEAR Academy

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