Re: Undeletable file
On Wed, Dec 20, 2000 at 10:09:58PM +0100, Cajus Pollmeier wrote: > > Only a diskeditor helps here. I had this problem some months ago after a > complete disk crash. > > Try "lsattr". I bet the immutable flag is set, but an appropriate ioctl for > an chattr for this block device is not defined. So you are out of luck. I had > to reformat the partition. Or you ignore your lostnfound directory ;-) debugfs can help here. -- Ethan Benson http://www.alaska.net/~erbenson/ pgp6rNpfkECqy.pgp Description: PGP signature
Re: Undeletable file
Am Mittwoch, 20. Dezember 2000 20:41 schrieb [EMAIL PROTECTED]: > After running e2fsck on a data partition which had become corrupt > I have the following problem. There is a file which I cannot get rid > of. I tried rm, chmod, chown on this file as root: all returned > "permission denied". > > ls -l shows > > total 729822653 > drwxr-xr-x2 chrischris4096 Dec 20 13:19 002_std.d# > br-xwx1 282708308 114, 114 Dec 9 2023 991203.c > ^ > > What does the b indicate, and how do I get rid of this file? Only a diskeditor helps here. I had this problem some months ago after a complete disk crash. Try "lsattr". I bet the immutable flag is set, but an appropriate ioctl for an chattr for this block device is not defined. So you are out of luck. I had to reformat the partition. Or you ignore your lostnfound directory ;-) -Cajus
Re: Undeletable file
On Wed, 20 Dec 2000 14:41:01 -0500 (EST), [EMAIL PROTECTED] said: > After running e2fsck on a data partition which had become corrupt > I have the following problem. There is a file which I cannot get rid > of. I tried rm, chmod, chown on this file as root: all returned > "permission denied". > > ls -l shows > >total 729822653 >drwxr-xr-x2 chrischris4096 Dec 20 13:19 002_std.d# >br-xwx1 282708308 114, 114 Dec 9 2023 991203.c ^What is this? Is it a space? -- Andrew
Re: Undeletable file
On Wed, 20 Dec 2000 [EMAIL PROTECTED] wrote: > of. I tried rm, chmod, chown on this file as root: all returned > "permission denied". It's possible that the file has got the immutable flag set, somehow. Try chattr -i > br-xwx1 282708308 114, 114 Dec 9 2023 991203.c > ^ > > What does the b indicate, and how do I get rid of this file? b indicates a block device file, which shouldn't affect the ability to delete it. What happened to this drive? Are you sure the hardware is in good working order?
Undeletable file
After running e2fsck on a data partition which had become corrupt I have the following problem. There is a file which I cannot get rid of. I tried rm, chmod, chown on this file as root: all returned "permission denied". ls -l shows total 729822653 drwxr-xr-x2 chrischris4096 Dec 20 13:19 002_std.d# br-xwx1 282708308 114, 114 Dec 9 2023 991203.c ^ What does the b indicate, and how do I get rid of this file? -Chris | Christopher Judd, Ph. D. | | Research Scientist | | NYS Dept. of Health [EMAIL PROTECTED] | | Wadsworth Center - ESP | | P. O. Box 509518 486-7829 | | Albany, NY 12201-0509 |
Re: Undeletable File Causing Massive Headaches
On 26/12/99 Eliot Landrum wrote: Strangely enough though, lsattr is just sitting here ... I'm not sure if this is normal or not. I'll let it sit for >30 min to make sure it has enough time to do whatever it is it is doing. lsattr should not take that long, its just as fast as ls, sounds like something is really wrong there... Ethan
Re: Undeletable File Causing Massive Headaches
Eliot Landrum <[EMAIL PROTECTED]> wrote: EL> Finally! Some real assistance! :) EL> EL> Strangely enough though, lsattr is just sitting here ... I'm not sure if EL> this is normal or not. I'll let it sit for >30 min to make sure it has EL> enough time to do whatever it is it is doing. EL> EL> What exactly is an immutable file though? >From the changelog of linux's ext2 fs source: - New file attributes: - Immutable files cannot be modified. Data cannot be written to these files. They cannot be removed, renamed and new links cannot be created. Even root cannot modify the files. He has to remove the immutable attribute first. - Append-only files: can only be written in append-mode when writing. They cannot be removed, renamed and new links cannot be created. Note: files may only be added to an append-only directory. - No-dump files: the attribute is not used by the kernel. My port of dump uses it to avoid backing up files which are not important. -- Anthony Wong.
Re: Undeletable File Causing Massive Headaches
Finally! Some real assistance! :) Strangely enough though, lsattr is just sitting here ... I'm not sure if this is normal or not. I'll let it sit for >30 min to make sure it has enough time to do whatever it is it is doing. What exactly is an immutable file though? Thanks for the replies! Like I said, this is pretty much driving me insane. Eliot Landrum [EMAIL PROTECTED] On Sat, 25 Dec 1999, Ethan Benson wrote: > On 25/12/99 Eliot Landrum wrote: > > >root (superuser) is unable to delete, chmod, modify, move or do ANYTHING to > >this file. I've done gazillions of things to try and correct it. > >I've booted up > >with tomsrtbt, fsck'ed the disk many times, run badblocks on it, > >tried deleting > >it when the drive was not mounted as / and many many other things that people > >have suggested. Here is what i get when root does "rm -Rf > >/lib/libext2fs.so.2.4": > > sounds like a immutable file, even though those permissions are > totally wrong that is irrelevant to root, if you are getting > operation not permitted for every action on it i would suspect > immutability, try > > lsattr /lib/libext2fs.so.2.4 > > if you see sometihng like this: > > ---i--- /lib/libext2fs.so.2.4 > > then its immutable, run > > chattr -i /lib/libext2fs.so.2.4 > > then try and remove it. > > how it got that way i would sure like to know though... > > > -- > Ethan Benson > To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/ >
Re: Undeletable File Causing Massive Headaches
On 25/12/99 Eliot Landrum wrote: root (superuser) is unable to delete, chmod, modify, move or do ANYTHING to this file. I've done gazillions of things to try and correct it. I've booted up with tomsrtbt, fsck'ed the disk many times, run badblocks on it, tried deleting it when the drive was not mounted as / and many many other things that people have suggested. Here is what i get when root does "rm -Rf /lib/libext2fs.so.2.4": sounds like a immutable file, even though those permissions are totally wrong that is irrelevant to root, if you are getting operation not permitted for every action on it i would suspect immutability, try lsattr /lib/libext2fs.so.2.4 if you see sometihng like this: ---i--- /lib/libext2fs.so.2.4 then its immutable, run chattr -i /lib/libext2fs.so.2.4 then try and remove it. how it got that way i would sure like to know though... -- Ethan Benson To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/
Re: Undeletable File Causing Massive Headaches
On 12/25/99, Eliot Landrum addressed "Undeletable File Causing Massive Headaches": > This one file is causing me terrible grief and I need to get it fixed. The > file > is /lib/libext2fs.so.2.4 and the permissions are as follows: > > p---rw--w-1 root 28531 0 Dec 21 20:04 /lib/libext2fs.so.2.4 > Looks to me like your group doesn't exist in /etc/group, and that's the only thing with write access to the file. You could try doing a chgrp root /lib/libext2fs.so.2.4 or a chmod 666 /lib/libext2fs.so.2.4 and then try to delete it. Hope this works. Jesse -- Jesse Jacobsen, Pastor [EMAIL PROTECTED] Grace Lutheran Church (ELS) http://www.jvlnet.com/~jjacobsen/ Madison, Wisconsin GnuPG public key ID: 2E3EBF13
Re: Undeletable File Causing Massive Headaches
On 12/25/99, Eliot Landrum addressed "Undeletable File Causing Massive Headaches": > > is /lib/libext2fs.so.2.4 and the permissions are as follows: > > p---rw--w-1 root 28531 0 Dec 21 20:04 /lib/libext2fs.so.2.4 Apparently your group ^ doesn't really exist in /etc/group. You could chgrp root /lib/libext... and then try deleting it. You could also chmod 666 /lib/libext... and then try deleting it. Hope this works for you. Jesse -- Jesse Jacobsen, Pastor [EMAIL PROTECTED] Grace Lutheran Church (ELS) http://www.jvlnet.com/~jjacobsen/ Madison, Wisconsin GnuPG public key ID: 2E3EBF13
Undeletable File Causing Massive Headaches
Hello! First, please let me put a note that I am not subscribed to this list. Please CC all responses to my address ([EMAIL PROTECTED]). Thanks! This one file is causing me terrible grief and I need to get it fixed. The file is /lib/libext2fs.so.2.4 and the permissions are as follows: p---rw--w-1 root 28531 0 Dec 21 20:04 /lib/libext2fs.so.2.4 root (superuser) is unable to delete, chmod, modify, move or do ANYTHING to this file. I've done gazillions of things to try and correct it. I've booted up with tomsrtbt, fsck'ed the disk many times, run badblocks on it, tried deleting it when the drive was not mounted as / and many many other things that people have suggested. Here is what i get when root does "rm -Rf /lib/libext2fs.so.2.4": rm: cannot unlink `/lib/libext2fs.so.2.4': Operation not permitted and mv reports: mv: cannot unlink `/lib/libext2fs.so.2.4': Operation not permitted mv: cannot remove `/lib/libext2fs.so.2.4': Operation not permitted This is driving me insane because I can't install new packages or correct the ones I have because when dpkg calls ldconfig, it gets stuck on this file. And most of the packages I want rely on libstdc++2.10, yet that package isn't properly installed because it can't process ldconfig. This is creating lots of problems and annoyances. If anyone can assist me or suggest anything, please don't hesitate to e-mail me. Thanks! BTW, I'm running debian potato, which was completely up-to-date until Dec 21. If you need any more info about my system, I'd be happy to help. -- Eliot Landrum [EMAIL PROTECTED]
Re: undeletable file (RESOLVED)
Thanks to all who responded to my question. I was able to delete the file last night by resetting attribute flags using chattr. The attribute flags on that file were ALL set! (Actually, this seems somewhat consistent with the group ID getting mysteriously changed to 65535). No other files were affected. --ken __ Ken Lauffenburger / /__ __ [EMAIL PROTECTED] / / D e b i a n G N U \ \/ / / / __ __ __ \ / / / / / / _ \ / / / / / \ ...Look out Bill, / /___ / / / / ) // (_/ / / /\ \ here comes... (__)(_/ (_/ (_/ \/ (_/ \_) http://www.debian.org -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: undeletable file
On Wed, Dec 03, 1997 at 10:41:09AM -0600, Ken Lauffenburger wrote: > Hello, > > I remember seeing something about this on the list awhile back, > but I haven't been able to find it in the archives. > > I have a file that has somehow been commandeered by an undefined > group, and I can't seem to remove, move, or change its ownership: > > leisure# ls -l fstobdf > -rwxr-xr-x 1 root 65535 29640 Oct 17 23:58 fstobdf > rm: remove `fstobdf', overriding mode 0755? y > rm: fstobdf: Operation not permitted > leisure# chown root.root fstobdf > chown: fstobdf: Operation not permitted > leisure# rm fstobdf > leisure# mv fstobdf fstobdf.1 > mv: cannot move `fstobdf' to `fstobdf.1': Operation not permitted > > I have no idea how the file's ownership got this way, or how to > remove it. I haven't tried going to single-user mode yet; I'm on > a remote connection to this box. > > Any suggestions? > > Thanks. > > --ken This is probably a problem with the ext2fs attributes. Take a look at lsattr(1) and chattr(1). Hope this helps. Adam Klein -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: undeletable file
You can also try lsattr and see if the file has been made immutable. chattr -i will take off this flag. Allen Allen Smith, [EMAIL PROTECTED] IP Multicast. Turn it on and tune-in to the future. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: undeletable file
On Wed, 3 Dec 1997, Ken Lauffenburger wrote: > Hello, > > I remember seeing something about this on the list awhile back, > but I haven't been able to find it in the archives. > > I have a file that has somehow been commandeered by an undefined > group, and I can't seem to remove, move, or change its ownership: > > leisure# ls -l fstobdf > -rwxr-xr-x 1 root 65535 29640 Oct 17 23:58 fstobdf > rm: remove `fstobdf', overriding mode 0755? y > rm: fstobdf: Operation not permitted > leisure# chown root.root fstobdf > chown: fstobdf: Operation not permitted > leisure# rm fstobdf > leisure# mv fstobdf fstobdf.1 > mv: cannot move `fstobdf' to `fstobdf.1': Operation not permitted > > I have no idea how the file's ownership got this way, or how to > remove it. I haven't tried going to single-user mode yet; I'm on > a remote connection to this box. If it's an ext2 filesystem, you could check out the commands chattr and lsattr. -- David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA U.K. email: [EMAIL PROTECTED] tel: +44 1908 653 739 fax: +44 1908 655 151 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: undeletable file
Someone wrote (sorry, I get digest format and forgot to paste the name): >leisure# ls -l fstobdf >-rwxr-xr-x 1 root 65535 29640 Oct 17 23:58 fstobdf >rm: remove `fstobdf', overriding mode 0755? y >rm: fstobdf: Operation not permitted >leisure# chown root.root fstobdf >chown: fstobdf: Operation not permitted >leisure# rm fstobdf >leisure# mv fstobdf fstobdf.1 >mv: cannot move `fstobdf' to `fstobdf.1': Operation not permitted Possible others: # chattr -i fstodbdf # chmod 777 fstodbdf # rm -f fstodbdf >I have no idea how the file's ownership got this way, or how to >remove it. I haven't tried going to single-user mode yet; I'm on >a remote connection to this box. I had a similar predicament when fdisk changed some files to bizarre character devices. Even '?' showed up in the permissions as well as the huge group number. I posted a question on comp.os.linux.setup and got an answer that worked. What has happened is that the inode for that file (and probably others) has become hopelessly corrupted. Thankfully, you can delete this. Boot into single user mode so the fs with this file on it is unmounted (boot to a root disk if it's on the root partition to make it easier). # debugfs -w /dev/hda# # check man page to be sure; my notes # aren't here. debugfs prompt> clri /path/fstodbdf #clear inode entry for this file debugfs prompt> rm /path/fstodbdf #remove this offending file # e2fdsk /dev/hda# # make sure everything's hunky dorry. :) Ta da! As always, check over the above with the man pages to be sure I'm not accidentally giving you the secret to trashing your system beyond repair. ;) Devin -- Reply to [EMAIL PROTECTED] http://www.engr.csulb.edu/~dbwong -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: undeletable file
On Wed, Dec 03, 1997 at 04:45:39PM +, G. Kapetanios wrote: > I had an examople of such behaviour a while back. It occured for some > files in a mounted dos filesystem. If it is not a ext2 filesystem could > you be mounting it read only ? (come to think of it maybe it is ext2 and > mounted read only as well ) Just a thought I forgot to mention, the undeletable file is on an ext2 filesystem (in /usr/X11R6/bin). --ken __ Ken Lauffenburger / /__ __ [EMAIL PROTECTED] / / D e b i a n G N U \ \/ / / / __ __ __ \ / / / / / / _ \ / / / / / \ ...Look out Bill, / /___ / / / / ) // (_/ / / /\ \ here comes... (__)(_/ (_/ (_/ \/ (_/ \_) http://www.debian.org -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: undeletable file
I had an examople of such behaviour a while back. It occured for some files in a mounted dos filesystem. If it is not a ext2 filesystem could you be mounting it read only ? (come to think of it maybe it is ext2 and mounted read only as well ) Just a thought On Wed, 3 Dec 1997, Ken Lauffenburger wrote: > Hello, > > I remember seeing something about this on the list awhile back, > but I haven't been able to find it in the archives. > > I have a file that has somehow been commandeered by an undefined > group, and I can't seem to remove, move, or change its ownership: > > leisure# ls -l fstobdf > -rwxr-xr-x 1 root 65535 29640 Oct 17 23:58 fstobdf > rm: remove `fstobdf', overriding mode 0755? y > rm: fstobdf: Operation not permitted > leisure# chown root.root fstobdf > chown: fstobdf: Operation not permitted > leisure# rm fstobdf > leisure# mv fstobdf fstobdf.1 > mv: cannot move `fstobdf' to `fstobdf.1': Operation not permitted > > I have no idea how the file's ownership got this way, or how to > remove it. I haven't tried going to single-user mode yet; I'm on > a remote connection to this box. > > Any suggestions? > > Thanks. > > --ken > > > __ > Ken Lauffenburger / /__ __ > [EMAIL PROTECTED] / / D e b i a n G N U \ \/ / >/ / __ __ __ \ / > / / / / / _ \ / / / / / \ > ...Look out Bill, / /___ / / / / ) // (_/ / / /\ \ > here comes... (__)(_/ (_/ (_/ \/ (_/ \_) >http://www.debian.org > > > > -- > TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to > [EMAIL PROTECTED] . > Trouble? e-mail to [EMAIL PROTECTED] . > > --- George Kapetanios Churchill College Cambridge, CB3 0DSE-Mail: [EMAIL PROTECTED] U.K. WWW: http://garfield.chu.cam.ac.uk/~gk205/work_info.html --- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
undeletable file
Hello, I remember seeing something about this on the list awhile back, but I haven't been able to find it in the archives. I have a file that has somehow been commandeered by an undefined group, and I can't seem to remove, move, or change its ownership: leisure# ls -l fstobdf -rwxr-xr-x 1 root 65535 29640 Oct 17 23:58 fstobdf rm: remove `fstobdf', overriding mode 0755? y rm: fstobdf: Operation not permitted leisure# chown root.root fstobdf chown: fstobdf: Operation not permitted leisure# rm fstobdf leisure# mv fstobdf fstobdf.1 mv: cannot move `fstobdf' to `fstobdf.1': Operation not permitted I have no idea how the file's ownership got this way, or how to remove it. I haven't tried going to single-user mode yet; I'm on a remote connection to this box. Any suggestions? Thanks. --ken __ Ken Lauffenburger / /__ __ [EMAIL PROTECTED] / / D e b i a n G N U \ \/ / / / __ __ __ \ / / / / / / _ \ / / / / / \ ...Look out Bill, / /___ / / / / ) // (_/ / / /\ \ here comes... (__)(_/ (_/ (_/ \/ (_/ \_) http://www.debian.org -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .