LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 06:41 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Rep: Reputation: 70
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, 07:26 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
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, 02:36 PM   #3
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
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, 04:01 PM   #4
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 PM.

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