Re: Arg. File > 2GB removal

From: Andreas Jaeger (aj@suse.de)
Date: Sat Dec 23 2000 - 02:27:11 EST


>>>>> Damacus Porteng writes:

> For grins, I did `dd if=/dev/zero of=testfile bs=1024 count=4000000`
> Obviously, with the limits of ext2, this isn't allowed, however, dd continued
> marrily on its way, tho it spouted an error...
With 2.4 it's allowed.

> I cancelled the dd and went to remove the file, though the following occured:
> root@obfuscated:/home/ftp# rm testfile
> rm: cannot remove `testfile': Value too large for defined data type

> 'ls' complains about the same. I ran e2fsck -f /dev/hde6 (the partition of
> /home) and it didn't 'find' the problem.
You need an rm that's using the LFS interface.

> How do I remove this file and reclaim the HDD space?
Try:
echo > testfile

Andreas

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:33 EST