Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 15 Nov 2018, 19:15
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
"files" that can't be deleted
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
musher0

Joined: 04 Jan 2009
Posts: 12966
Location: Gatineau (Qc), Canada

PostPosted: Wed 15 Aug 2018, 23:46    Post subject:  

(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
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
foxpup


Joined: 29 Jul 2016
Posts: 577
Location: europa near northsea

PostPosted: Thu 16 Aug 2018, 05:23    Post subject:  

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.
Back to top
View user's profile Send private message 
Saladin

Joined: 27 Aug 2011
Posts: 87

PostPosted: Thu 16 Aug 2018, 08:40    Post subject:  

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.
Back to top
View user's profile Send private message 
flea


Joined: 13 Aug 2018
Posts: 5
Location: Minnesota, USA

PostPosted: Thu 16 Aug 2018, 09:04    Post subject:  

try
Code:
chattr -i -a yourfilename
rm -f yourfilename
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 849
Location: Connecticut, United States

PostPosted: Thu 16 Aug 2018, 09:53    Post subject:  

Hey flea!
nice! that is a little thing I will make a note of.
Back to top
View user's profile Send private message Visit poster's website 
Saladin

Joined: 27 Aug 2011
Posts: 87

PostPosted: Thu 16 Aug 2018, 10:08    Post subject:  

Code:
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
Back to top
View user's profile Send private message 
flea


Joined: 13 Aug 2018
Posts: 5
Location: Minnesota, USA

PostPosted: Thu 16 Aug 2018, 10:32    Post subject:  

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

Code:
fsck /dev/sdxx


sdxx being a substitute for your partition name (i.g. /dev/sda1, etc.) If necessary use
Code:
lsblk
to identify your partition.

Then try to delete the file. If that doesn't work, you probably have a hardware issue.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12966
Location: Gatineau (Qc), Canada

PostPosted: Thu 16 Aug 2018, 15:17    Post subject:  

Saladin wrote:
Code:
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 Evil (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:
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:
rmdir --ignore-fail-on-non-empty America

right after the rm command above, because rm can be fussy with dirs.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0935s ][ Queries: 13 (0.0270s) ][ GZIP on ]