1829009 Members
2225 Online
109986 Solutions
New Discussion

rm /opt/.journal problem

 
SOLVED
Go to solution
Tammy Liang
Regular Advisor

rm /opt/.journal problem

I got Operation not permitted issue when I try to remove /opt/.journal file. Appreciate any help.

[root@aktsrh02 histlogs]# rm -f /opt/.journal
rm: cannot unlink `/opt/.journal': Operation not permitted
[root@aktsrh02 histlogs]#
[root@aktsrh02 histlogs]# ll /opt/.journal
-rw------- 1 root root 33554432 Oct 14 2003 /opt/.journal
[root@aktsrh02 histlogs]#

take easy, enjoy life
4 REPLIES 4
Vernon Brown_4
Trusted Contributor

Re: rm /opt/.journal problem

Make sure you have file permissions to write the file. Even root must have the file writable to remove it.

chmod 666 .journal

Vern
Steven E. Protter
Exalted Contributor
Solution

Re: rm /opt/.journal problem

I thought the -f option overrides permissions.

The probable cause here is is an open process on the file.

Suggestion: use fuser command to terminate the process.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeroen Peereboom
Honored Contributor

Re: rm /opt/.journal problem

L.S.

Assuming this is the journal file of an ext3 filesystem you should not delete it while the filesystem is mounted read-write.

I have no experience in this field, but it is suggested on the internet to mount the FS as ext2, delete the .journal file, and create the file again. Check for yourself before taking action.

JP.
Tammy Liang
Regular Advisor

Re: rm /opt/.journal problem

Thanks all for replying this.
I found out there are more than 1 .journal
file.
I am able to rm -f the .journal files that
are currently not used by any process.

Thanks again
take easy, enjoy life