PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 10:37:26 AM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: (SOLVED)find doesn't work  (Read 774 times)
T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« on: February 24, 2011, 06:40:29 PM »

i tested to search a song in my desktop machine by using the find files/folders app

it didn't found a thing even when it should find 3 options

i tested it on my netbook, i gave it a complete name of a file and the folder it was located but failed identically

what do i need to do that i didn't do on both machines to make this work?  maybe a option on the partitions?
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
old_guy
Hero Member
*****
Offline Offline

Posts: 686



« Reply #1 on: February 24, 2011, 10:02:30 PM »

Titus T6us
I just tried the find files/folders app. I set:
Named: santana*
Look in: /
checked include subfolders
clicked Find
and got 3 hits

Also from a terminal:
[earl@new ~]$ su
Password:
[root@new earl]# find / -iname santana*     
find: `/home/earl/.gvfs': Permission denied
/mnt/music/Santana-Black_Magic_Woman.mp3
/mnt/music/Santana-Oye_Como_Va.mp3
/mnt/music/Santana-Samba_Pa_Ti.mp3

Earl
Logged

Never too old to learn.
T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #2 on: February 24, 2011, 10:18:44 PM »

ok, so it is something in my installations that i didn't do

using your command in konsole, but i use find /home -iname anameofafile  returned this

find: `/home/john/.gvfs': Permission denied

and that was as root
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
old_guy
Hero Member
*****
Offline Offline

Posts: 686



« Reply #3 on: February 24, 2011, 10:45:43 PM »

.gvfs  has been a problem that has been around for some time. As root:
umount /home/yourname/.gvfs
rm -rf /home/yourname/.gvfs

Did you find your file with the konsole command?

Earl
Logged

Never too old to learn.
T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #4 on: February 24, 2011, 11:00:24 PM »

can i unmount /home while using machine?

mine is not a partition, is a folder in /
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
Aradalf
Sr. Member
****
Offline Offline

Posts: 485


« Reply #5 on: February 25, 2011, 12:09:35 AM »

can i unmount /home while using machine?

mine is not a partition, is a folder in /

Not /home, but rather ~/.gvfs. The hidden folder in your home directory. Wink
Logged

T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #6 on: February 25, 2011, 12:25:13 AM »

ok, followed your instructions and could remove the .gvfs

will restart machine to see changes but that will have to wait until tomorrow

thank you for your help
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
tedlane
Guest
« Reply #7 on: February 25, 2011, 03:43:51 AM »

Don't know where he is on your desktop, but I do know where he is on the 17th March
http://www.santana.com/tour/

 Grin


redacted!  Sorry, I thought I was in the sandbox.  Embarrassed
Logged
T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #8 on: February 25, 2011, 10:27:06 AM »

delete it ted  Wink

just used netbook and tried to find a song, it did a search but after a couple of second didn't returned a single result

using find in konsole brings the same .gvfs error

the command i used worked last night, it deleted .gvfs folder but system recreated it Undecided
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
pags
Hero Member
*****
Offline Offline

Posts: 1951


Keep it clean.


« Reply #9 on: February 25, 2011, 12:18:13 PM »

.gvfs is part of Gnome Virtual File System ...  it uses fuse, IIRC, and does create some error when accessed by a non-owner (including root), but they are not critical.

T6, you mentioned using find at the command line...
ok, so it is something in my installations that i didn't do

using your command in konsole, but i use find /home -iname anameofafile  returned this

find: `/home/john/.gvfs': Permission denied

and that was as root

Try:
Code:
find /home -iname *anameofafile*
Instead

The wildcards help expand the search...
Logged
Aradalf
Sr. Member
****
Offline Offline

Posts: 485


« Reply #10 on: February 25, 2011, 03:48:21 PM »

Do you use a separate /Data partition for your data, T6? Do you use symbolics links from, for example, /home/T6/Documents to /Data/Documents, or from /home/T6/Music to /Data/Music? If so, you need to use the -L option to follow symbolic links into directories i.e.
Code:
find -L -iname <filename> 2>/dev/null
...when you're in your ~/ directory(home dir).

The 2>/dev/null will send all the error messages to a black hole, so you won't see the .gvfs error or any other annoying errors, just the name of the file(s) you search for.

Of course, you could also just search straight from / and have no need for the -L, but that would take more time.
Logged

T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #11 on: February 25, 2011, 04:26:02 PM »

no, i only have 1 partition containing /home and /

anyway, the konsole tool, i don't use

what i use is the find files/folders app and is not working
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
old_guy
Hero Member
*****
Offline Offline

Posts: 686



« Reply #12 on: February 25, 2011, 04:57:11 PM »

Titus T6us
Looking around online - I came across:
"
Are you searching for the complete filename including the extension?
If not kfind isn't able to find the file(s) you're looking for.

This annoyance has been in KDE for a long time, even in KDE 3.x if I'm not mistaking.
Luckily the solution is simple, just add wildcards on both sides.
"

Try your search with wildcards(*)

Earl

Logged

Never too old to learn.
T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #13 on: February 25, 2011, 05:05:47 PM »

you sir, you are a genius!

it was as simple as that!   Cheesy

all i had to do was add a * before and after the word and it gave me 4 correct solutions

why i didn't found this info is beyond me  Embarrassed

thank you!
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
old_guy
Hero Member
*****
Offline Offline

Posts: 686



« Reply #14 on: February 25, 2011, 05:33:22 PM »

Titus T6us

Glad to be of some help. Even us "old_guy's" stumble over a right answer once in awhile.

Earl
Logged

Never too old to learn.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM