LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2004, 01:07 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
find


I plugged an old hardrive into my comp. It has Win95 on it. I was looking for an old .wav file of my boy when he was very young. find can't find anything, no matter what I ask it to find
I set
find /mnt/win_c2 *.wav -depth
But even if I ask it to find a directory, it can't
no such file or directory, even though it whizzes by on the terminal.

What might be the problem??
 
Old 07-10-2004, 01:42 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
Try find /mnt/win_c2 | grep -i .wav

it's possible that file you are searching doesn't have wav extension, but for example Wav.

grep -i will ignore case sensitive.
 
Old 07-10-2004, 05:30 PM   #3
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
You could also try:
locate -i wav
 
Old 07-10-2004, 06:57 PM   #4
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Do you have access to any parts of that drive, did you mount the drive first before performing the search ?
 
Old 07-11-2004, 03:59 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Locate won't work, as it doesn't search hdb6. Don't know enough to make it do that at present.
Do I have to set up a separate db?
And yes the drive is automounted under /mnt/win_c2 . I can browse it, but find can't find even say, the directory Users, although it is plain to see in Konquerer
 
Old 07-11-2004, 09:44 AM   #6
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
If you mount, at redhat, device hdb6 with option vfat or ntfs (not auto), you can run updatedb to update your database.

see at /etc/updatedb.conf for paths and filesystems which will be excluded.

more at info updatedb
 
Old 07-12-2004, 09:46 AM   #7
miss crump
LQ Newbie
 
Registered: May 2004
Location: Oklahoma City, OK
Distribution: Debian
Posts: 17

Rep: Reputation: 0
Try:

find /mnt/win_c2 -name *wav -print

This is a more formal find command.
 
Old 07-12-2004, 12:05 PM   #8
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
but this will find only lower case extension "wav"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 12:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 08:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 07:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration