Hello,
I'm installing a new virtual server and in my /etc/mysql path is a file
my.cnf stored, which is not accessable with the root- user. A ls -l
shows
ls: cannot access /etc/mysql/my.cnf: No such file or directory
total 16
drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
-rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
-rw------- 1 root root 333 Jul 20 2010 debian.cnf
?????????? ? ? ? ? ? my.cnf
How can I remove the my.cnf ?
rm, touch shows "No such file or directory"
Thanks
Phil
|
|
0
|
|
|
|
Reply
|
philipp.kraus (153)
|
10/27/2011 2:54:53 PM |
|
On Thursday 27 October 2011 16:54, Philipp Kraus conveyed the following
to comp.os.linux.misc...
> Hello,
>
> I'm installing a new virtual server and in my /etc/mysql path is a
> file my.cnf stored, which is not accessable with the root- user. A ls
> -l shows
>
> ls: cannot access /etc/mysql/my.cnf: No such file or directory
> total 16
> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
> ?????????? ? ? ? ? ? my.cnf
>
> How can I remove the my.cnf ?
> rm, touch shows "No such file or directory"
Looks like a damaged filesystem to me, and repairing the filesystem
would probably get rid of that "ghost file". Had any power outages or
other unclean shutdowns lately? See any weird messages about the hard
disk or disk controller in the output of dmesg or in
"/var/log/messages"?
What does...
ls -li /etc/mysql/
.... say?
(Hint: The first column will show the inode number for each entry.)
--
= Aragorn =
(registered GNU/Linux user #223157)
|
|
0
|
|
|
|
Reply
|
stryder2 (284)
|
10/27/2011 3:03:40 PM
|
|
On 2011-10-27 17:03:40 +0200, Aragorn said:
> On Thursday 27 October 2011 16:54, Philipp Kraus conveyed the following
> to comp.os.linux.misc...
>
>> Hello,
>>
>> I'm installing a new virtual server and in my /etc/mysql path is a
>> file my.cnf stored, which is not accessable with the root- user. A ls
>> -l shows
>>
>> ls: cannot access /etc/mysql/my.cnf: No such file or directory
>> total 16
>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
>> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
>> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
>> ?????????? ? ? ? ? ? my.cnf
>>
>> How can I remove the my.cnf ?
>> rm, touch shows "No such file or directory"
>
> Looks like a damaged filesystem to me, and repairing the filesystem
> would probably get rid of that "ghost file". Had any power outages or
> other unclean shutdowns lately?
I Think also but this file exists after I create the virtual machine from the
images of my distributer, so the file is within the image
> See any weird messages about the hard
> disk or disk controller in the output of dmesg or in
> "/var/log/messages"?
>
> What does...
>
> ls -li /etc/mysql/
>
> ... say?
Shows the list with:
ls: cannot access my.cnf: No such file or directory
total 16
131045730 drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
131045811 -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
131045822 -rw------- 1 root root 333 Jul 20 2010 debian.cnf
131046035 ?????????? ? ? ? ? ? my.cnf
131045834 -rw-r--r-- 1 root root 3564 Feb 10 2011 my.cnf.dpkg-new
Thx
Phil
|
|
0
|
|
|
|
Reply
|
philipp.kraus (153)
|
10/27/2011 3:34:01 PM
|
|
On 2011-10-27, Philipp Kraus wrote:
> Hello,
>
> I'm installing a new virtual server and in my /etc/mysql path is a file
> my.cnf stored, which is not accessable with the root- user. A ls -l
> shows
>
> ls: cannot access /etc/mysql/my.cnf: No such file or directory
> total 16
> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
> ?????????? ? ? ? ? ? my.cnf
>
> How can I remove the my.cnf ?
> rm, touch shows "No such file or directory"
rm /etc/mysql/*my.cnf*
--
Chris F.A. Johnson, <http://cfajohnson.com>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
|
|
0
|
|
|
|
Reply
|
cfajohnson (1783)
|
10/27/2011 4:49:40 PM
|
|
Philipp Kraus wrote:
> On 2011-10-27 17:03:40 +0200, Aragorn said:
>
>> On Thursday 27 October 2011 16:54, Philipp Kraus conveyed the following
>> to comp.os.linux.misc...
>>
>>> Hello,
>>>
>>> I'm installing a new virtual server and in my /etc/mysql path is a
>>> file my.cnf stored, which is not accessable with the root- user. A ls
>>> -l shows
>>>
>>> ls: cannot access /etc/mysql/my.cnf: No such file or directory
>>> total 16
>>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
>>> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
>>> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
>>> ?????????? ? ? ? ? ? my.cnf
>>>
>>> How can I remove the my.cnf ?
>>> rm, touch shows "No such file or directory"
>>
>> Looks like a damaged filesystem to me, and repairing the filesystem
>> would probably get rid of that "ghost file". Had any power outages or
>> other unclean shutdowns lately?
>
> I Think also but this file exists after I create the virtual machine
> from the
> images of my distributer, so the file is within the image
>
>
>> See any weird messages about the hard
>> disk or disk controller in the output of dmesg or in
>> "/var/log/messages"?
>>
>> What does...
>>
>> ls -li /etc/mysql/
>>
>> ... say?
>
> Shows the list with:
> ls: cannot access my.cnf: No such file or directory
> total 16
> 131045730 drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
> 131045811 -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
> 131045822 -rw------- 1 root root 333 Jul 20 2010 debian.cnf
> 131046035 ?????????? ? ? ? ? ? my.cnf
> 131045834 -rw-r--r-- 1 root root 3564 Feb 10 2011 my.cnf.dpkg-new
>
> Thx
> Phil
>
That looks like a directory entry pointing nowhere to me.
single user and fsck it.
|
|
0
|
|
|
|
Reply
|
tnp (2255)
|
10/27/2011 5:06:05 PM
|
|
On Thursday 27 October 2011 17:34, Philipp Kraus conveyed the following
to comp.os.linux.misc...
> On 2011-10-27 17:03:40 +0200, Aragorn said:
>
>> On Thursday 27 October 2011 16:54, Philipp Kraus conveyed the
>> following to comp.os.linux.misc...
>>
>>> Hello,
>>>
>>> I'm installing a new virtual server and in my /etc/mysql path is a
>>> file my.cnf stored, which is not accessable with the root- user. A
>>> ls -l shows
>>>
>>> ls: cannot access /etc/mysql/my.cnf: No such file or directory
>>> total 16
>>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
>>> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
>>> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
>>> ?????????? ? ? ? ? ? my.cnf
>>>
>>> How can I remove the my.cnf ?
>>> rm, touch shows "No such file or directory"
>>
>> Looks like a damaged filesystem to me, and repairing the filesystem
>> would probably get rid of that "ghost file". Had any power outages
>> or other unclean shutdowns lately?
>
> I Think also but this file exists after I create the virtual machine
> from the images of my distributer, so the file is within the image
Then you must run fsck on the image file, just as if it were a block
device, and while it is _not_ mounted into the virtual machine or via
loopback.
>> What does...
>>
>> ls -li /etc/mysql/
>>
>> ... say?
>
> Shows the list with:
> ls: cannot access my.cnf: No such file or directory
> total 16
> 131045730 drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
> 131045811 -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
> 131045822 -rw------- 1 root root 333 Jul 20 2010 debian.cnf
> 131046035 ?????????? ? ? ? ? ? my.cnf
> 131045834 -rw-r--r-- 1 root root 3564 Feb 10 2011 my.cnf.dpkg-new
If the image came from your distributor, then they've probably created
it off of a corrupted filesystem. You should bring this matter to their
attention, because other people may be experiencing the same problem,
and who knows whatever else the distributor may have screwed up.
--
= Aragorn =
(registered GNU/Linux user #223157)
|
|
0
|
|
|
|
Reply
|
stryder2 (284)
|
10/27/2011 7:37:22 PM
|
|
"Chris F.A. Johnson" <cfajohnson@gmail.com> writes:
>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
>> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
>> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
>> ?????????? ? ? ? ? ? my.cnf
>>
>> How can I remove the my.cnf ?
>> rm, touch shows "No such file or directory"
>
> rm /etc/mysql/*my.cnf*
I would first run fsck on that partition. Chances are something is screwed up.
Vilmos
|
|
0
|
|
|
|
Reply
|
vilmos2 (252)
|
10/30/2011 7:40:04 AM
|
|
On Thu, 27 Oct 2011 12:49:40 -0400, Chris F.A. Johnson wrote:
> On 2011-10-27, Philipp Kraus wrote:
>> Hello,
>>
>> I'm installing a new virtual server and in my /etc/mysql path is a file
>> my.cnf stored, which is not accessable with the root- user. A ls -l
>> shows
>>
>> ls: cannot access /etc/mysql/my.cnf: No such file or directory total 16
>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d -rwxr-xr-x 1 root root
>> 1198 Jul 20 2010 debian-start -rw------- 1 root root 333 Jul 20 2010
>> debian.cnf ?????????? ? ? ? ? ? my.cnf
>>
>> How can I remove the my.cnf ?
>> rm, touch shows "No such file or directory"
>
> rm /etc/mysql/*my.cnf*
That might work. Might also cause him more problems...
Can't explain what is going on here, but I have a similar file on my
system. On Fedora 13...
Logged in as me:
$ ls -al
....
drwxr-xr-x. 11 kevin kevin 4096 Oct 25 01:18 .gnome2
drwx------. 2 kevin kevin 4096 Aug 4 2010 .gnome2_private
drwxrwxr-x. 2 kevin kevin 4096 Sep 7 16:40 .gstreamer-0.10
-rw-rw-r--. 1 kevin kevin 137 Oct 30 00:54 .gtk-bookmarks
drwxrwxr-x. 2 kevin kevin 4096 Mar 15 2011 guns
dr-x------. 2 kevin kevin 0 Oct 30 00:54 .gvfs
-rw-------. 1 kevin kevin 37836 Oct 30 00:54 .ICEauthority
....
Logged in as root:
# ls -al
....
drwxr-xr-x. 11 kevin kevin 4096 Oct 25 01:18 .gnome2
drwx------. 2 kevin kevin 4096 Aug 4 2010 .gnome2_private
drwxrwxr-x. 2 kevin kevin 4096 Sep 7 16:40 .gstreamer-0.10
-rw-rw-r--. 1 kevin kevin 137 Oct 30 00:54 .gtk-bookmarks
drwxrwxr-x. 2 kevin kevin 4096 Mar 15 2011 guns
d?????????? ? ? ? ? ? .gvfs
-rw-------. 1 kevin kevin 37836 Oct 30 00:54 .ICEauthority
....
That directory, .gvfs, exists on Fedora 15 and Ubuntu 11.04 also, but has
drwx------. permissions. Notice how when logged in as user kevin (i.e.
me), the listing shows up as "normal", but when logged in as root it
looks "wrong". Also on Fedora 15 as root, the directory entry appears
normal with ls -al. I'm confused...
According to the rpm package:
Description :
The gvfs package provides backend implementations for the gio
framework in GLib. It includes ftp, sftp, cifs.
I can't explain what is happening, nor why. Just that a directory entry
like this is NOT necessarily a sign that something is wrong. Looks like
it is NOP (Normal Operating Procedure) for some things...
|
|
0
|
|
|
|
Reply
|
kdsnodgrass (120)
|
10/30/2011 7:49:37 AM
|
|
On 10/30/2011 02:49 AM, Kevin Snodgrass wrote:
> On Thu, 27 Oct 2011 12:49:40 -0400, Chris F.A. Johnson wrote:
>
>> On 2011-10-27, Philipp Kraus wrote:
>>> Hello,
>>>
>>> I'm installing a new virtual server and in my /etc/mysql path is a file
>>> my.cnf stored, which is not accessable with the root- user. A ls -l
>>> shows
>>>
>>> ls: cannot access /etc/mysql/my.cnf: No such file or directory total 16
>>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d -rwxr-xr-x 1 root root
>>> 1198 Jul 20 2010 debian-start -rw------- 1 root root 333 Jul 20 2010
>>> debian.cnf ?????????? ? ? ? ? ? my.cnf
>>>
>>> How can I remove the my.cnf ?
>>> rm, touch shows "No such file or directory"
>>
>> rm /etc/mysql/*my.cnf*
>
> That might work. Might also cause him more problems...
>
> Can't explain what is going on here, but I have a similar file on my
> system. On Fedora 13...
>
> Logged in as me:
> $ ls -al
> ....
> drwxr-xr-x. 11 kevin kevin 4096 Oct 25 01:18 .gnome2
> drwx------. 2 kevin kevin 4096 Aug 4 2010 .gnome2_private
> drwxrwxr-x. 2 kevin kevin 4096 Sep 7 16:40 .gstreamer-0.10
> -rw-rw-r--. 1 kevin kevin 137 Oct 30 00:54 .gtk-bookmarks
> drwxrwxr-x. 2 kevin kevin 4096 Mar 15 2011 guns
> dr-x------. 2 kevin kevin 0 Oct 30 00:54 .gvfs
> -rw-------. 1 kevin kevin 37836 Oct 30 00:54 .ICEauthority
> ....
>
> Logged in as root:
> # ls -al
> ....
> drwxr-xr-x. 11 kevin kevin 4096 Oct 25 01:18 .gnome2
> drwx------. 2 kevin kevin 4096 Aug 4 2010 .gnome2_private
> drwxrwxr-x. 2 kevin kevin 4096 Sep 7 16:40 .gstreamer-0.10
> -rw-rw-r--. 1 kevin kevin 137 Oct 30 00:54 .gtk-bookmarks
> drwxrwxr-x. 2 kevin kevin 4096 Mar 15 2011 guns
> d?????????? ? ? ? ? ? .gvfs
> -rw-------. 1 kevin kevin 37836 Oct 30 00:54 .ICEauthority
> ....
>
> That directory, .gvfs, exists on Fedora 15 and Ubuntu 11.04 also, but has
> drwx------. permissions. Notice how when logged in as user kevin (i.e.
> me), the listing shows up as "normal", but when logged in as root it
> looks "wrong". Also on Fedora 15 as root, the directory entry appears
> normal with ls -al. I'm confused...
The .gvfs directory is special. If you look at the output from the
'mount' command (with no arguments), you'll see that there is a
gvfs-fuse-daemon pseudo-filesystem mounted there. That file system
can be accessed only by the owner. Even root cannot stat() the
inode. There was probably a "Permission denied" message produced
when you tried that as root.
--
Bob Nichols AT comcast.net I am "RNichols42"
|
|
0
|
|
|
|
Reply
|
SEE_SIGNATURE1 (213)
|
10/30/2011 2:06:43 PM
|
|
On Sun, 30 Oct 2011 09:06:43 -0500, Robert Nichols wrote:
> The .gvfs directory is special. If you look at the output from the
> 'mount' command (with no arguments), you'll see that there is a
> gvfs-fuse-daemon pseudo-filesystem mounted there. That file system can
> be accessed only by the owner. Even root cannot stat() the inode.
> There was probably a "Permission denied" message produced when you tried
> that as root.
All true. But I still don't understand what this does, nor what it's
purpose in life is... "vfs" is obviously "virtual file system"...
Is this something to make Linux more "winders-y" ?
|
|
0
|
|
|
|
Reply
|
kdsnodgrass (120)
|
10/30/2011 6:19:56 PM
|
|
Kevin Snodgrass <kdsnodgrass@yahoo.com> writes:
> On Sun, 30 Oct 2011 09:06:43 -0500, Robert Nichols wrote:
>> The .gvfs directory is special. If you look at the output from the
>> 'mount' command (with no arguments), you'll see that there is a
>> gvfs-fuse-daemon pseudo-filesystem mounted there. That file system
>> can be accessed only by the owner. Even root cannot stat() the
>> inode. There was probably a "Permission denied" message produced
>> when you tried that as root.
>
> All true. But I still don't understand what this does, nor what it's
> purpose in life is... "vfs" is obviously "virtual file system"...
It allows use of GVFS[1] outside of the Gnome libraries.
It's almost certainly a red herring regarding the original question,
which is most likely due to a corrupted filesystem.
[1] http://en.wikipedia.org/wiki/GVFS
> Is this something to make Linux more "winders-y" ?
No.
--
http://www.greenend.org.uk/rjk/
|
|
0
|
|
|
|
Reply
|
rjk (492)
|
10/30/2011 6:54:40 PM
|
|
"Chris F.A. Johnson" <cfajohnson@gmail.com> writes:
> On 2011-10-27, Philipp Kraus wrote:
>> I'm installing a new virtual server and in my /etc/mysql path is a file
>> my.cnf stored, which is not accessable with the root- user. A ls -l
>> shows
>>
>> ls: cannot access /etc/mysql/my.cnf: No such file or directory
>> total 16
>> drwxr-xr-x 2 root root 4096 Oct 27 15:25 conf.d
>> -rwxr-xr-x 1 root root 1198 Jul 20 2010 debian-start
>> -rw------- 1 root root 333 Jul 20 2010 debian.cnf
>> ?????????? ? ? ? ? ? my.cnf
>>
>> How can I remove the my.cnf ?
>> rm, touch shows "No such file or directory"
>
> rm /etc/mysql/*my.cnf*
Adding in pointless wildcard characters will not make it any more
deletable.
--
http://www.greenend.org.uk/rjk/
|
|
0
|
|
|
|
Reply
|
rjk (492)
|
10/30/2011 6:55:29 PM
|
|
|
11 Replies
48 Views
(page loaded in 0.136 seconds)
Similiar Articles: "df" reports wrong size of filesystem - comp.unix.solaris ...Windows file systems don't have this feature, and > files cannot be deleted or renamed while in use (which is, if I may be > so candid, a bloody nuisance). > > Take care ... Huge disk usage on /var/spool/clientmqueue - comp.unix.solaris ...A crash dump saved me 1.4 GB, but I seem to have tons of files >> in /var/spool/clientmqueue <SNIP> >> >> >> Any suggestions on what can, or can not be deleted? > > All ... File Cannot be Compressed - comp.compressionFile Cannot be Compressed - comp.compression Hello, I'm having a weird issue. I have a huge Outlook pst (6GB) file that i want to compress. I have tried WinRAR, WinZip, 7 ... Deleting files older then a certain age from a folder - comp.soft ...It this task cannot be accomplished in this way, is there another way to do it? ... files to be deleted 'newer' than a certain age as well as 'older' Allow files to be deleted ... /etc/shadow corrupted no backup can not login - comp.unix.solaris ...... etc/shadow files entries are corrupted or sombody deleted. how to login the ... restore /etc/passwd and /etc/shadow files from your recent root backup. ... and can not be ... Gimp 2.6.5: No encapsulated postscript supported? - comp.graphics ...... on a computer where no EPS resources were installed), or is EPS to be removed ... I wrote: > I noticed that EPS files cannot be opened anymore. Although there opens > a ... Installing some patches takes enormously long amount of time ...If your contents file is 20MB in size this means 20MB to write for every file to be removed. ... Install 204/398: Aug 18 16:43:03 bprd[632]: Cannot contact NetBackup bpdbm ... is closing an opened file required before unlinking it? - comp ...> I was testing in WinXp, You are correct that you cannot delete an open file on a ... 612943.295640 > > > And my view was to clarify whether the file will be deleted or ... Finding ERRORs in SASLOG - comp.soft-sys.sas... expressions I use the following when searching for errors in SAS log files on ... but is not" > > "but no" > > "by-group" > > "cannot be accessed" > > "cannot be deleted ... Deleted address still appears - comp.mail.eudora.ms-windows ...A customer record can not be deleted until all their ... MySQL will still use an index if it ... Use reply-to one !!! ... admin file (the same as above), but it was still ... Linker Can't Find Library - comp.os.ms-windows.programmer.win32 ...... popup that says "This >dependency was added by the project system and cannot be removed". ... Complicating this is that these libraries haven't had .lib files generated in ... Insert statements and foreign keys etc.. - comp.databases.mysql ...A customer record can not be deleted until all their orders are deleted. ... I don't know if I've handled Index files correctly... I hope this question ... Best way to delete old files? find & exec VS find & xargs - comp ...... since this has problems with filenames with spaces in, and also can not ... mean that any directory which was old enough to match would be removed, along with any files or ... Programming using JSP and Tomcat: cannot be resolved to a type ...... JSP: > > >> An error occurred at line: 19 in the jsp file: /sample.jsp > >> Connection.Connect cannot ... So, I changed Connect.java to DBConnection.java and removed the ... How to recover a deleted mailbox in Mail. - comp.sys.mac.apps ...Cannot send e-mail to homail account - comp.mail.misc Hi, Whenever I try to ... Can I retrieve a deleted email from three years ago?... file or message deleted three ... A File Cannot Be Deleted or Accessed on an NTFS VolumeA file or directory on an NTFS volume cannot be deleted or accessed. Windows NT returns an "Access Denied" error message when you attempt to manipulate the ... Download Can't delete a file in Windows XP? Here's the simple way ...You try to delete the file, Windows waits a few seconds before announcing that access is denied, the file is currently in use and cannot be deleted. 7/16/2012 8:56:42 AM
|