"files" that can't be deleted

Using applications, configuring, problems
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#16 Post by musher0 »

(Sorry for being so wordy!)

About your drive being bad: let's not put the cart in from ot the oxen for
now.

There exists diagnostics software that will tell you which sectors or section
of the HD are (is) bad. And then you can do one partition before the defect
and one partition after -- if you have only one defective part.

But let's not conclude anything for now.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#17 Post by foxpup »

If you want to do a chkdsk you can use Hiren (HBCD). It has the old scandisk from dos.
Maybe there are other rescue CD's for windows that have chkdsk.

Saladin
Posts: 94
Joined: Sun 28 Aug 2011, 03:19

#18 Post by Saladin »

musher0 wrote:In any Puppy, have a look at (cd to)
/usr/share/zoneinfo/Africa
Very similar. It's used mostly by the date utility, but also (not 100 %
sure) by the ntp protocol (when its utilities are installed).

Maybe the leftover from a incomplete formatting or partitioning. A power
outage occurred while formatting was going on, maybe?
Definitely looks like the same files. I don't remember it happening, but I could believe that the computer locked up while I was deleting the wine directory.
musher0 wrote:Do you have a similar sdXY part in the path of your weird files?
This comparison will tell us the name of the partition and its format.
It's sda1, ntfs.

Not really worried about it if all it is is the power going off while files were being deleted. As long as there's no risk to the rest of the disk, I'm content to ignore them.

User avatar
flea
Posts: 5
Joined: Mon 13 Aug 2018, 17:33
Location: Minnesota, USA

#19 Post by flea »

try

Code: Select all

chattr -i -a yourfilename
rm -f yourfilename

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#20 Post by rockedge »

Hey flea!
nice! that is a little thing I will make a note of.

Saladin
Posts: 94
Joined: Sun 28 Aug 2011, 03:19

#21 Post by Saladin »

Code: Select all

root# chattr -i -a America
chattr: Input/output error while trying to stat America
root# rm -f America
rm: cannot remove 'America': Input/output error

User avatar
flea
Posts: 5
Joined: Mon 13 Aug 2018, 17:33
Location: Minnesota, USA

#22 Post by flea »

You could try the following. Make sure the partition is not mounted (boot off a usb-stick or CD ROM if necessary)

Code: Select all

fsck /dev/sdxx
sdxx being a substitute for your partition name (i.g. /dev/sda1, etc.) If necessary use

Code: Select all

lsblk
to identify your partition.

Then try to delete the file. If that doesn't work, you probably have a hardware issue.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#23 Post by musher0 »

Saladin wrote:

Code: Select all

root# chattr -i -a America
chattr: Input/output error while trying to stat America
root# rm -f America
rm: cannot remove 'America': Input/output error
Shucks. :twisted: (Please note that I myself live on this continent!)

Silly joke aside, if we are talking about the /usr/share/zoneinfo directory,
"America" is a sub-directory of it, with stuff in it. So rm -f only won't cut it.
The command needs to be:

Code: Select all

rm -f -r America
That "-f -r" means -force and -recurse.
Without the -r you will only erase the first level.

And to make double sure it's gone, it won't hurt to use

Code: Select all

rmdir --ignore-fail-on-non-empty America
right after the rm command above, because rm can be fussy with dirs.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply