Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem deleting file by conventional methods in solaris

Status
Not open for further replies.

lincoln123

IS-IT--Management
Nov 4, 2002
15
GB
Hi,
I'm new to Solaris (I am a business analyst by background and ended up with this task by default). My company is developing a Java application to run on a Weblogic server 6.1 sp2. Due to resource constraints we are actually doing the development on a Windows 2000 environment, before transferring the code via FTP to a Tadpole Ultrabook IIe running Solaris. In the absence of the developers' presence an install was attempted which ended up with putting the files into the wrong directory, and consequently the application did not work. It was decided that the the easiest thing was to delete all the files and reinstall the application. Unfortunately we have been unable to delete one file
./inner_html_experiment.jsp

I'm logged in as root
I have tried deleting the file using
#rm inner_html_experiment.jsp
and get the message
# inner_html_experiment.jsp: Invalid argument
I try
# rm -rf -- ./inner_html_experiment.jsp
I do not get any error, but the file still remains undeleted
I cannot use chmod to change the ownership, or unlink. Similarly, I cannot delete the parent directory experiment as it has a member.
The file appears to be corrupted, as it has a creation date of 1993, which is not the case and no owner.
Any ideas on deletion?
Thanks,
Jack
 
Let see what kind of file this is

try

# file inner_html_experiment.jsp

where are you when you try to deleting it

# pwd

and what are its perms, and its directory's

# ls -l inner_html_experiment.jsp
# ls -ld .

EDC
 
Unfortunately, am getting the same sort of message with
# file inner_html_experiment.jsp
Response is
inner_html_experiment.jsp: cannot open: Invalid argument
and
#pwd
/opt/bea/wlserver6.1/config/OR2QDomain/applications/OR2QAnalytics/analytic/Content_analytic/experiment
To
# ls -l inner_html_experiment.jsp
inner_html_experiment.jsp: Invalid argument
To
#ls -ld
drwxr-xr-x 2 oracle oinstall 512 Nov 4 14:03 .
So no luck as yet...
Thx,
Jack
 
cd /opt/bea/wlserver6.1/config/OR2QDomain/applications/OR2QAnalytics/analytic/Content_analytic/experiment
and tell me the results for:

# ls
# ls -lrt
# ls -1rt


EDC
 
You could always try this:

cd to the directory where this file is and do

rm -i *

This should ask if you want to delete this file then. Worth a try.
 
ecasadella, bainy
#ls
inner_html_experiment.jsp
# ls -lrt
./inner_html_experiment.jsp: Invalid argument
total 0
# ls -1rt
./inner_html_experiment.jsp: Invalid argument

Also got
#rm -i *
inner_html_experiment.jsp: Invalid argument
So no luck yet,
Jack
 
Jack, I think someone mentioned that this looks like a case for fsck to try to sort out any bad info. regarding this file. Have you tried that approach? Cheers.
 
Ken,
Just tried that with
#fsck -Y
fsck ran and made some fixes but still
# rm inner_html_experiment.jsp
inner_html_experiment.jsp: Invalid argument.
Thanks,
Jack
 
Try:

cd /opt/bea/wlserver6.1/config/OR2QDomain/applications/OR2QAnalytics/analytic/Content_analytic/experiment
rm -Rf * # please check that you are in that path "pwd", this command is extremely danerous

Or

cd /opt/bea/wlserver6.1/config/OR2QDomain/applications/OR2QAnalytics/analytic/Content_analytic
rm -Rf experiment
mkdir experiment

EDC
 
ecasadella thanks, but got following response
# pwd
/opt/bea/wlserver6.1/config/OR2QDomain/applications/OR2QAnalytics/analytic/Cont
nt_analytic/experiment
# rm -Rf *
# ls
inner_html_experiment.jsp
# cd ..
# rm -Rf experiment
rm: Unable to remove directory experiment: File exists
Frustrating. This is a demo machine, so very tempted to just wipe the hard disk.
Jack
 
Have you problems like this lately? I mean on the same disk.

There is another option besides fsck, and it's in format cmd,try:

# format
choose the disk

format> analyze
analyze> read


EDC
 
Thanks for all your help guys.
Unfortunately the computer in question (a laptop) is being taken on a business trip, and I had to stop work.
Will start again when it gets back, and try these solutions.
Cheers,
Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top