LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2009, 07:41 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Rep: Reputation: 69
Locating a certain file from the Console


Hey guys,

I am trying to recover a certain file from a Windows partition which has become inaccessible owing to the fact that I've accidentally wiped the boot sector and the first two Linux partitions. Don't you just hate it when THAT happens? Anyway, I am going to reformat the HDD and meant to save this file before wiping it, but now I have to recover it from a Linux live CD (Knoppix in this instance).

So I've got to the root of the Windows ntfs system in the console and can see the file system fine. Now I need to locate this very large (movie) file (>5Gb). What's the best command to use from the console to locate in which directory this file is? Something based on its huge size would be just the job, I guess. Thanks, CC.
 
Old 04-05-2009, 08:26 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 88
Hi CC,

find has many, many options. You could try (from the root of the Windows partition):
Code:
find . -size +5G
This should find all files larger than 5 gigs.
 
Old 04-05-2009, 03:36 PM   #3
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by Robhogg View Post
Hi CC,

find has many, many options. You could try (from the root of the Windows partition):
Code:
find . -size +5G
This should find all files larger than 5 gigs.
Hey, thanks, man. You've saved my scrawny ass. It was the ONLY file on the system that big and your command found it immediately!

I had already checked out the man page for "find" but those man pages are SO indecypherable for us mere mortals as to be totally unintelligible; they seldom if ever provide useful example commands and as such are only suitable for nerds suffering from Asberger's Syndrome. Thanks again, buddy.
 
Old 04-05-2009, 05:01 PM   #4
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 88
Quote:
Originally Posted by Completely Clueless View Post
... those man pages are SO indecypherable for us mere mortals as to be totally unintelligible; they seldom if ever provide useful example commands and as such are only suitable for nerds suffering from Asberger's Syndrome.
De rien (or graag gedaan)!

One day, you too will finally be able to understand the man pages. On that day, you will realise you are no longer able to have a conversation with an ordinary mortal...

Rather nicely, though, O'Reilly have made the command reference from "Linux in a Nutshell" available online. Much more readable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Locating Files and File Sizes on Servers? carlosinfl Linux - Server 5 04-23-2007 05:22 PM
k3b-trouble locating iso file to copy from hdc to hdd handydan Linux - Software 1 02-25-2007 01:11 PM
Console unreadable file name UltraSoul Linux - Software 0 10-28-2006 12:31 PM
Having trouble locating a deleted file with autopsy abefroman Linux - Security 1 08-08-2005 04:36 AM
extract and locating tar.gz file... zagreb Linux - Newbie 2 03-02-2003 03:23 AM


All times are GMT -5. The time now is 07:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration