Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* How do I delete this file?? HELP!
  1999-05-20 17:52 recompilation of kernel Stefan Schroepfer
@ 1999-05-20 18:35 ` Speedracer
  1999-05-20 19:37   ` Albrecht Jacobs
                     ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Speedracer @ 1999-05-20 18:35 UTC (permalink / raw)
  To: axp-list

I have a file that I cannot delete, the result of a fsck on a file system
that was messed up when somone pulled a scsi cable out of an external
drive WHILE it was running. 

The file looks like this :

[root@sys]# ls -la factor
b-wSr-s--T   1 16457    847        0,   3 Aug 16  1971 factor     

[root@sys]# stat factor
  File: "factor"
  Size: 1            Filetype: Block Device
  Mode: (7250/b-wsr-s--t)         Uid: ( 8585/   aaron)  Gid: (16944/
duh)
Device:  8,18  Inode: 215540    Links: 1         Device type:  0,3
Access: Tue Nov  3 03:46:56 1987(04216.09:45:29)
Modify: Mon Aug 16 23:52:35 1971(10138.14:39:50)
Change: Wed Dec 31 19:00:01 1969(10731.18:32:24)                           


I can't rm -f, chown, Chgrp etc, etc, etc.  I guess I COULD use ext2ed
but I am unfamilliar with it, PLUS I'd have to D/L the source and compile.
Any ideas on getting rid of this file??  

If I could change the device type perhaps I could delete it??

TIA

\--------------------------------------------------------------------------/
 \ Aaron Gee AKA Spdracer                                                 /
  \"Maseratis are more than cars, they are a passion that is understood  /
   \by some, but enjoyed by a very few"	                                /
    \URL---> http://www.italian-cars.com                               /
     \e-mail--> spdracer@america.com   Fax-->1 (904) 253 1006         /
      \--------------------------------------------------------------/
				\  |  /
				 \_|_/
				 (---)
				   0 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 18:35 ` How do I delete this file?? HELP! Speedracer
@ 1999-05-20 19:37   ` Albrecht Jacobs
  1999-05-20 20:34     ` Speedracer
  1999-05-20 21:41   ` Michal Jaegermann
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Albrecht Jacobs @ 1999-05-20 19:37 UTC (permalink / raw)
  To: axp-list

On Thu, 20 May 1999, Speedracer wrote:

> I have a file that I cannot delete, the result of a fsck on a file system
> that was messed up when somone pulled a scsi cable out of an external
> drive WHILE it was running. 
> 
> The file looks like this :
> 
> [root@sys]# ls -la factor
> b-wSr-s--T   1 16457    847        0,   3 Aug 16  1971 factor     

In which directory lives this file?

> 
> [root@sys]# stat factor
>   File: "factor"
>   Size: 1            Filetype: Block Device
>   Mode: (7250/b-wsr-s--t)         Uid: ( 8585/   aaron)  Gid: (16944/
> duh)
> Device:  8,18  Inode: 215540    Links: 1         Device type:  0,3
> Access: Tue Nov  3 03:46:56 1987(04216.09:45:29)
> Modify: Mon Aug 16 23:52:35 1971(10138.14:39:50)
> Change: Wed Dec 31 19:00:01 1969(10731.18:32:24)                           
> 
> 
> I can't rm -f, chown, Chgrp etc, etc, etc.  I guess I COULD use ext2ed
> but I am unfamilliar with it, PLUS I'd have to D/L the source and compile.
> Any ideas on getting rid of this file??  
> 
> If I could change the device type perhaps I could delete it??

What happens if you don't erase it? :-}

Albrecht

+-------------------------------------------------------------------------+
| cand. aer. Albrecht Jacobs                            CAAD-Labor des SI |
| Systembetreuung                                  Universit"at Stuttgart |
|                                                                         |
| Liegeradgruppe Stuttgart                                                | 
|  O__       http://www.architektur.uni-stuttgart.de:1200/users/aj/lieger |
|  \\_/\-o                                                                |
| (+)   O               Albrecht.Jacobs@klee.architektur.uni-stuttgart.de |
+-------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 19:37   ` Albrecht Jacobs
@ 1999-05-20 20:34     ` Speedracer
  1999-05-20 21:20       ` Albrecht Jacobs
  0 siblings, 1 reply; 12+ messages in thread
From: Speedracer @ 1999-05-20 20:34 UTC (permalink / raw)
  To: axp-list

On Thu, 20 May 1999, Albrecht Jacobs wrote:

This lives in /usr/bin, there are some OTHER files that share this same
disease.  One of them is startx.  

> In which directory lives this file?
> 
> What happens if you don't erase it? :-}
> 
> Albrecht

1. It would drive me slowly mad, and I fear I would be seen wandering the
streets screaming about big brother intel and their feared takeover of the
world (Oh yeah, I do that as it is......hmmm.........).  

2.  Uhm, I'd like X windows back, and I like a CLEAN system, I don't want
to have to resort to aliases to other functions living in other places
because of an FSCK "fubar".


\--------------------------------------------------------------------------/
 \ Aaron Gee AKA Spdracer                                                 /
  \"Maseratis are more than cars, they are a passion that is understood  /
   \by some, but enjoyed by a very few"	                                /
    \URL---> http://www.italian-cars.com                               /
     \e-mail--> spdracer@america.com   Fax-->1 (904) 253 1006         /
      \--------------------------------------------------------------/
				\  |  /
				 \_|_/
				 (---)
				   0 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 20:34     ` Speedracer
@ 1999-05-20 21:20       ` Albrecht Jacobs
  0 siblings, 0 replies; 12+ messages in thread
From: Albrecht Jacobs @ 1999-05-20 21:20 UTC (permalink / raw)
  To: axp-list

On Thu, 20 May 1999, Speedracer wrote:

> On Thu, 20 May 1999, Albrecht Jacobs wrote:
> 
> This lives in /usr/bin, there are some OTHER files that share this same
> disease.  One of them is startx.  

Does this mean that startx is now a block device :-( ?

> 
> > In which directory lives this file?
> > 
> > What happens if you don't erase it? :-}
> > 
> > Albrecht
> 
> 1. It would drive me slowly mad, and I fear I would be seen wandering the
> streets screaming about big brother intel and their feared takeover of the
> world (Oh yeah, I do that as it is......hmmm.........).  

Ok, I agree. That's a very good reason for fixing something.

> 
> 2.  Uhm, I'd like X windows back, and I like a CLEAN system, I don't want
> to have to resort to aliases to other functions living in other places
> because of an FSCK "fubar".

This one is not _so_ good. But -- I'm afraid I would see things in a
similar manner.

Sorry, no solution for your problem.

Albrecht

+-------------------------------------------------------------------------+
| cand. aer. Albrecht Jacobs                            CAAD-Labor des SI |
| Systembetreuung                                  Universit"at Stuttgart |
|                                                                         |
| Liegeradgruppe Stuttgart                                                | 
|  O__       http://www.architektur.uni-stuttgart.de:1200/users/aj/lieger |
|  \\_/\-o                                                                |
| (+)   O               Albrecht.Jacobs@klee.architektur.uni-stuttgart.de |
+-------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 18:35 ` How do I delete this file?? HELP! Speedracer
  1999-05-20 19:37   ` Albrecht Jacobs
@ 1999-05-20 21:41   ` Michal Jaegermann
  1999-05-21 19:13     ` Speedracer
  1999-05-21 19:14     ` Speedracer
  1999-05-21  4:48   ` mgraffam
  1999-05-21  7:47   ` Jurij Smakov
  3 siblings, 2 replies; 12+ messages in thread
From: Michal Jaegermann @ 1999-05-20 21:41 UTC (permalink / raw)
  To: axp-list

Speedracer wrote:
> 
> I have a file that I cannot delete,
....
> 
> [root@sys]# ls -la factor
> b-wSr-s--T   1 16457    847        0,   3 Aug 16  1971 factor     

Something got scrambled in a file system.  This is not really a file
(well, it claims to be a block device :-).

Use 'debugfs' to empty inode(s), sync, remount its file system
"read only", run fsck on it, reboot.  After that this should be
a file of length 0 which can be deleted.  If still not, then use
debugfs once again to delete its inode and repeat the procedure
above.

  Michal


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
@ 1999-05-21  2:19 designer seven
  1999-05-21  3:16 ` Larry Snyder
  0 siblings, 1 reply; 12+ messages in thread
From: designer seven @ 1999-05-21  2:19 UTC (permalink / raw)
  To: axp-list

Man,... you are plain studly! ... where do you learn
all this stuff?

D.

--- Michal Jaegermann
<michal@ellpspace.math.ualberta.ca> wrote:
> Speedracer wrote:
> > 
> > I have a file that I cannot delete,
> ....
> > 
> > [root@sys]# ls -la factor
> > b-wSr-s--T   1 16457    847        0,   3 Aug 16 
> 1971 factor     
> 
> Something got scrambled in a file system.  This is
> not really a file
> (well, it claims to be a block device :-).
> 
> Use 'debugfs' to empty inode(s), sync, remount its
> file system
> "read only", run fsck on it, reboot.  After that
> this should be
> a file of length 0 which can be deleted.  If still
> not, then use
> debugfs once again to delete its inode and repeat
> the procedure
> above.
> 
>   Michal
> 
> -- 
> To unsubscribe: send e-mail to
> axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to
> axp-list@redhat.com
> 
> 

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-21  2:19 How do I delete this file?? HELP! designer seven
@ 1999-05-21  3:16 ` Larry Snyder
  1999-05-21  6:45   ` Helge Kreutzmann
  0 siblings, 1 reply; 12+ messages in thread
From: Larry Snyder @ 1999-05-21  3:16 UTC (permalink / raw)
  To: axp-list

No question Michal's got his s* together.  He has:
1.  put me in my place (when it was deserved)
2.  bailed me out of a headache (at least once)

Additional poop can be gained by going to freshmeat and
searching on 'recover'.  This entry is primarily aimed
at recovering deleted files, but has a lot of good info
about the filesystem and how to use the utilities.
-ls-

designer seven <designer_7@yahoo.com> wrote:
> Man,... you are plain studly! ... where do you learn
> all this stuff?
> 
> D.
> 
> --- Michal Jaegermann
> <michal@ellpspace.math.ualberta.ca> wrote:
> > Speedracer wrote:
> > > 
> > > I have a file that I cannot delete,
> > ....
> > > 
> > > [root@sys]# ls -la factor
> > > b-wSr-s--T   1 16457    847        0,   3 Aug 16 
> > 1971 factor     
> > 
> > Something got scrambled in a file system.  This is
> > not really a file
> > (well, it claims to be a block device :-).
> > 
> > Use 'debugfs' to empty inode(s), sync, remount its
> > file system
> > "read only", run fsck on it, reboot.  After that
> > this should be
> > a file of length 0 which can be deleted.  If still
> > not, then use
> > debugfs once again to delete its inode and repeat
> > the procedure
> > above.
> > 
> >   Michal
> > 
> > -- 
> > To unsubscribe: send e-mail to
> > axp-list-request@redhat.com with
> > 'unsubscribe' as the subject.  Do not send it to
> > axp-list@redhat.com
> > 
> > 
> 
> _____________________________________________________________
> Do You Yahoo!?
> Free instant messaging and more at http://messenger.yahoo.com
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 18:35 ` How do I delete this file?? HELP! Speedracer
  1999-05-20 19:37   ` Albrecht Jacobs
  1999-05-20 21:41   ` Michal Jaegermann
@ 1999-05-21  4:48   ` mgraffam
  1999-05-21  7:47   ` Jurij Smakov
  3 siblings, 0 replies; 12+ messages in thread
From: mgraffam @ 1999-05-21  4:48 UTC (permalink / raw)
  To: axp-list

On Thu, 20 May 1999, Speedracer wrote:

> I have a file that I cannot delete, the result of a fsck on a file system
> that was messed up when somone pulled a scsi cable out of an external
> drive WHILE it was running. 
> 
> The file looks like this :
> 
> [root@sys]# ls -la factor
> b-wSr-s--T   1 16457    847        0,   3 Aug 16  1971 factor     

I've had this problem myself. 

man debugfs

Michael J. Graffam (mgraffam@idsi.net)
"Let your life be a counter-friction to stop the machine."
			Henry David Thoreau "Civil Disobedience"


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-21  3:16 ` Larry Snyder
@ 1999-05-21  6:45   ` Helge Kreutzmann
  0 siblings, 0 replies; 12+ messages in thread
From: Helge Kreutzmann @ 1999-05-21  6:45 UTC (permalink / raw)
  To: axp-list

Hallo !
On Thu, 20 May 1999, Larry Snyder wrote:

<snip>
>searching on 'recover'.  This entry is primarily aimed

http://members.xoom.com/comp_ai/tpycke/recover/recover.html

<snip>

     Helge


            Vote against spam: http://www.politik-digital.de/spam/

Is your penguin 64 bit ?      -->       http://www.stud.uni-hannover.de/~helgek
               Helge.Kreutzmann@stud.uni-hannover.de
                     kreutzm@itp.uni-hannover.de


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 18:35 ` How do I delete this file?? HELP! Speedracer
                     ` (2 preceding siblings ...)
  1999-05-21  4:48   ` mgraffam
@ 1999-05-21  7:47   ` Jurij Smakov
  3 siblings, 0 replies; 12+ messages in thread
From: Jurij Smakov @ 1999-05-21  7:47 UTC (permalink / raw)
  To: axp-list

On Thu, 20 May 1999, Speedracer wrote:

> I have a file that I cannot delete, the result of a fsck on a file system
> that was messed up when somone pulled a scsi cable out of an external
> drive WHILE it was running.
> 
> The file looks like this :
> 
> [root@sys]# ls -la factor
> b-wSr-s--T 1 16457  847        0,   3 Aug 16  1971 factor     

Hi!

From 'man chattr':

A file with the `i' attribute cannot be modified: it  can-
not  be deleted or renamed, no link can be created to this
file and no data can be written  to  the  file.  Only  the
superuser can set or clear this attribute.

Try 'chattr -i factor' as root. I hope, this helps.

--------------------------------------------
Jurij Smakov                                     
Doktorand                              
Theoretical Physics, Dept. of Physics                      
KTH, Stockholm
--------------------------------------------
PGP: finger -l jurijus@medea.theophys.kth.se


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 21:41   ` Michal Jaegermann
@ 1999-05-21 19:13     ` Speedracer
  1999-05-21 19:14     ` Speedracer
  1 sibling, 0 replies; 12+ messages in thread
From: Speedracer @ 1999-05-21 19:13 UTC (permalink / raw)
  To: Michal Jaegermann; +Cc: axp-list

On Thu, 20 May 1999, Michal Jaegermann wrote:

> Speedracer wrote:
> > 
> > I have a file that I cannot delete,
> ....
> > 
> > [root@sys]# ls -la factor
> > b-wSr-s--T   1 16457    847        0,   3 Aug 16  1971 factor     
> 
> Something got scrambled in a file system.  This is not really a file
> (well, it claims to be a block device :-).
> 
> Use 'debugfs' to empty inode(s), sync, remount its file system
> "read only", run fsck on it, reboot.  After that this should be
> a file of length 0 which can be deleted.  If still not, then use
> debugfs once again to delete its inode and repeat the procedure
> above.
> 
>   Michal
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 

\--------------------------------------------------------------------------/
 \ Aaron Gee AKA Spdracer                                                 /
  \"Maseratis are more than cars, they are a passion that is understood  /
   \by some, but enjoyed by a very few"	                                /
    \URL---> http://www.italian-cars.com                               /
     \e-mail--> spdracer@america.com   Fax-->1 (904) 253 1006         /
      \--------------------------------------------------------------/
				\  |  /
				 \_|_/
				 (---)
				   0 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I delete this file?? HELP!
  1999-05-20 21:41   ` Michal Jaegermann
  1999-05-21 19:13     ` Speedracer
@ 1999-05-21 19:14     ` Speedracer
  1 sibling, 0 replies; 12+ messages in thread
From: Speedracer @ 1999-05-21 19:14 UTC (permalink / raw)
  To: axp-list


Can I use rmnod?  And if yes, where is the source?

On Thu, 20 May 1999, Michal Jaegermann wrote:
> Speedracer wrote:
> > 
> > I have a file that I cannot delete,
> ....
> > 
> > [root@sys]# ls -la factor
> > b-wSr-s--T   1 16457    847        0,   3 Aug 16  1971 factor     
> 
> Use 'debugfs' to empty inode(s), sync, remount its file system
> "read only", run fsck on it, reboot.  After that this should be
> a file of length 0 which can be deleted.  If still not, then use
> debugfs once again to delete its inode and repeat the procedure
> above.

\--------------------------------------------------------------------------/
 \ Aaron Gee AKA Spdracer                                                 /
  \"Maseratis are more than cars, they are a passion that is understood  /
   \by some, but enjoyed by a very few"	                                /
    \URL---> http://www.italian-cars.com                               /
     \e-mail--> spdracer@america.com   Fax-->1 (904) 253 1006         /
      \--------------------------------------------------------------/
				\  |  /
				 \_|_/
				 (---)
				   0 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1999-05-21 19:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-21  2:19 How do I delete this file?? HELP! designer seven
1999-05-21  3:16 ` Larry Snyder
1999-05-21  6:45   ` Helge Kreutzmann
  -- strict thread matches above, loose matches on Subject: below --
1999-05-20 17:52 recompilation of kernel Stefan Schroepfer
1999-05-20 18:35 ` How do I delete this file?? HELP! Speedracer
1999-05-20 19:37   ` Albrecht Jacobs
1999-05-20 20:34     ` Speedracer
1999-05-20 21:20       ` Albrecht Jacobs
1999-05-20 21:41   ` Michal Jaegermann
1999-05-21 19:13     ` Speedracer
1999-05-21 19:14     ` Speedracer
1999-05-21  4:48   ` mgraffam
1999-05-21  7:47   ` Jurij Smakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox