PDA

Bekijk de volledige versie : DELETE: Value too large for defined data type



Xterm
01-05-2008, 20:10
Hi !

I want to delete a directory via Telnet (Putty)!
My problem is that Dir and the file in it cannt be removed via Webinterface or Ftp or Telnet.
Have a Dir called "1" with a file "gns-hgld.iso" in it -what i do is the following:

cd shares/MYVOLUME1/MYSHARE1/
rm -rf 1

Output is:

rm: unable to stat `1/gns-hgld.iso': Value too large for defined data type
rm: unable to remove `1': Directory not empty

Normally I can delete every Dir with this method!
gns-hgld.iso is 6,8GB in size maybe too large for filesystem?
I am using Asus original firmware 1.0.7.8

PLZ help

mumsoft
02-05-2008, 22:11
Hi !

I want to delete a directory via Telnet (Putty)!
My problem is that Dir and the file in it cannt be removed via Webinterface or Ftp or Telnet.
Have a Dir called "1" with a file "gns-hgld.iso" in it -what i do is the following:

cd shares/MYVOLUME1/MYSHARE1/
rm -rf 1

Output is:

rm: unable to stat `1/gns-hgld.iso': Value too large for defined data type
rm: unable to remove `1': Directory not empty

Normally I can delete every Dir with this method!
gns-hgld.iso is 6,8GB in size maybe too large for filesystem?
I am using Asus original firmware 1.0.7.8

PLZ help

I have some thoughts that may help.

1) install K.Furge's version of the Asus firmware: http://www.wl500g.info/files/asus/custom/kfurge/WL700gE_kc_1078_02.nas
It's pretty easy and it does not require anything else. As bonus you get bash in stead of sh and a better busybox to deal with rm, and that might do the trick.
BTW There are so much more reasons to install that firmware that I wonder why some people stick to the plain vanilla firmware of Asus. (See: http://wl700g.homelinux.net/drupal/?q=node/134)

2) If that does not help, or if you really are in love with Asus, then try something like this:
echo hello > 1/gns-hgld.iso
that will make gns-hgld.iso much smaller.
then: rm -rf 1

Regards,
Marc