Strange problem: can not delete file as root ??
Hi,
I have a very strange problem. I have phpMyAdmin 2.5.7-pl1 installed on my SuSE 9.1 system and 2 file seem to be damaged (config.inc.php and config.default) The strange part is that i can not delete those file or read them. I even get a error message when i use a ls command in the folder ! In MC (midnight commander) i see them in red like this : ?config.inc.php ?config.default and they are both dated Jan 1 1970 and their size are 0. Does any one have any idea how i can remove these files from my system ? Thanks Jimmy..... |
Try:
rm "?config.inc.php" "?config.default" |
Hi serz,
I tried your suggestion and i get the following error message : Code:
rm: cannot lstat `?config.inc.php': Onbekend bestand of map I also tried [b]rm "config.inc.php"[\b] and then i get the following error message : Code:
rm: cannot lstat `config.inc.php': Toegang geweigerd Do you have any idea's what this could be ? Thanks Jimmy... |
You're getting an Access Denied error.. are you doing that as root?
|
Yes, i am logged in as Root.
I also tried to login as normal user and then as "su" user. All with the same result .... Very strange. |
Try
Code:
|
type lsattr and see if there are any extra attributes on the file. If so, use chattr -i or whatever the attribute is.
It may not be your problem, but it is a start. |
I have found that there are a number of files that cannot be deleted from the command line - or at least they can't be deleted with any easy method from the command line. I have mainly had problems with files begining with a hyphen (-), although I can quite see that files beginning with either a ? or a * would also cause problems since they have special meaning.
The most reliable method I have found is to open a graphical file manager (if you can) such as Konqueror (my choice) and remove it or rename it from there. Hope this helps. |
ok then do either
rm \?config......etc the \ will tell the system to take the next char literally for what is typed. Else it thinks the ? mark stands for any single charactor The other way is with rm -- before the file name. |
Hi all,
Quote:
Code:
fsck 1.34 (25-Jul-2003) Code:
./config.inc.php: Toegang geweigerd But i can't even SEE the files anymore ! This is starting to drive me crazy ! Any suggestions are welcome ! Thanks for you patience so far ... Jimmy.... |
Argh ;). Forgot that, sorry. Two ways to circumnavigate this:
1. If your /dev/hda6 doesn't contain system ressources just umount it and run fsck. 2. Get a live / rescue CD and start from there, they should leave your harddisks alone and if not you can then umount /dev/hda6. See you :). |
Hi,
i tried to umount my /dev/hda6 but i get the following error mesage : Code:
umount: /: device is busy I am using my Linux as a router/firewall and have Samba running (and other services as well) Unfortunately i don't have a live/rescue CD, so i can't start from there. Jimmy... |
Great little tool is the lsof command
run lsof on the mount point your /dev/hda6 is mounted on and it will tell who is on the device and what files are being used on it. The device is obviously being used if it says t is busy. We will assume the basics such as you are "root" and that /dev/hda6 is not the / filesystem. It verywell may be tmp or var if you have those as separate file systems. Pretty tough to unmount something that is always busy. If you are unmounting it to run something like fsck, you are best off booting into single user mode, or even better, using an emergency boot floppy or cd with the fsck utility on it |
you can't unmount your / while it's being used -
you may try "shutdown -F" from the manpage: SYNOPSIS /sbin/shutdown [-t sec] [-arkhncfF] time [warning-message] -F Force fsck on reboot. |
Hmmm You are running SuSE You can repair using the install dvd or disks.
|
All times are GMT -5. The time now is 07:42 AM. |