SUMMARY: Corrupted data file?

From: Jon Sirois (jsirois@silverplatter.com)
Date: Thu Nov 04 1999 - 12:20:18 CST


Many thanks to those who responded.
I certainly missed the obvious way of removing the file by using "rm -i
???".
I was more baffled with how that file got there in the first place.
I actually had to use "rm -i ????"

--Other suggestions that were offered:
"use "rm -i *" and answer "no" to all other files except the one you
really want to remove."

"GNU emacs in the directory editor mode. Just open the directory itself,
highlight the file in question, press 'd' for delete, and then 'x' to
execute the marked deletions."

"Do an ls -l and redirect output to a file: ls -l > /tmp/a
vi /tmp/a and stip out all the lines except the one with this file. You may

see some nonprinting characters in the file name. change this line now from

"-rw-rw-r-- 1 erl erl 1793933312 Nov 1 12:27 пяе" to
"rm пяе" (plus any other nonprinting characters listed). save the file,
chmod +x /tmp/a, and then execute it. Your file should be removed."

--As for why the file was only using up disk space when copied:
"It could be that the file has an "hole" in it. (ie. the file size
could be 1.7GB but only acouple of bytes has been allocated)
When you copy it, the hole gets filled with NULL-characters thus
allocating all the 1.7GB."

"That's not uncommon, they are called 'sparse' files. You should be able
to run 'du -a' in the directory and see how much space it's taking up."

Thanks again.
Jon.
--------------------------------------
My original Posting:

> Hello, we have an Ultra 2300 with a 9GB drive. There is a strange file
> below the root partition that has appeared which claims it is 1.7GB in
> size. It has very unique characters and I cannot seem to remove the file
> or do anything with it. It is not taking up the disk space it claims it
> is (as you can see in the df output below), but when I backup this file
> elsewhere, it does claim the space.
>
> --ls -l output of the file (as it appeared in a full directory listing)
>
> -rw-rw-r-- 1 erl erl 1793933312 Nov 1 12:27 пяе
>
> --output of df -k:
> Filesystem kbytes used avail capacity Mounted on
> /dev/dsk/c0t0d0s0 2034054 463039 1564235 23% /
> /proc 0 0 0 0% /proc
> fd 0 0 0 0% /dev/fd
> /dev/dsk/c0t0d0s7 4575455 818054 3711647 19% /export
> swap 2544248 24 2544224 1% /tmp
>
> I tried rebooting the system and the file did not go away.
> I also tried an fsck on that partition and that did not work either.
>
> Any ideas on why this occurred and how I can remove the file?
>
> Thanks in advance.....
> Jon Sirois
> Systems Admin
> jsirois@silverplatter.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:31 CDT