LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-13-2008, 06:33 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,463
Blog Entries: 1

Rep: Reputation: 126Reputation: 126
Lightbulb mounting a camera with no partition table


Howdy! I need a considerable amount of help here...

I have an Olympus Stylus 740 (xD picture card) that had an allergy towards a computer and wiped it clean. I know the pictures are there, I'm just hoping I can somehow recover them in Linux via free software instead of lots of money for windows programs.

My first problem is mounting it. This is the error I get:
Code:
phantomcyph@ubuntu:~$ fdisk -l

Disk /dev/sda: 1048 MB, 1048481280 bytes
33 heads, 61 sectors/track, 1017 cylinders
Units = cylinders of 2013 * 512 = 1030656 bytes
Disk identifier: 0x00000000

Disk /dev/sda doesn't contain a valid partition table
phantomcyph@ubuntu:~$ mount /dev/sda
mount: can't find /dev/sda in /etc/fstab or /etc/mtab
phantomcyph@ubuntu:~$
So, how do I mount it? (obvious next step is recovery)

Thanks!
 
Old 01-13-2008, 06:58 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,780

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
Start with testdisk - if it is merely the partition table that was trashed, that should restore it.
That's the easy option out of the way. Next is photorec from the same site.

After that you're into serious forensics - search on that ...
 
Old 01-13-2008, 10:53 PM   #3
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,463

Original Poster
Blog Entries: 1

Rep: Reputation: 126Reputation: 126
OK. I have looked up some man pages, but I'm afraid it will overwrite my drive. This is what I'm at right now, I'm just gonna leave this till I know what to do. I want to make sure I'm bringing everything back, not deleting it.

Heres the screenshot.
 
Old 01-13-2008, 11:02 PM   #4
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
In my limited recovery experience, you can still recover data as long as new data hasn't been written over it. I've been able to recover data after a drive has been formatted over.

I have zero experience recovering from memory cards. Hard drives, yes. I'm not quite sure how they would differ though. If they do, please tell.

Regards,

Brandon
 
Old 01-14-2008, 03:06 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,119

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
If using testdisk worries you, try making a copy of the card, and then pointing testdisk at that:
dd if=/dev/sda of=~/disk-image

Now run testdisk, but instead of pointing it at /dev/sda point it at ~/disk-image
photorec is another application that might help you, I have read encouraging reports about it.
 
Old 01-14-2008, 07:56 AM   #6
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
Good job pointing that out Tred. The first rule of computer forensics is ALWAYS MAKE AN IMAGE. Then you work on that. Not sure why I didn't think of that.

Brandon
 
Old 01-14-2008, 06:09 PM   #7
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,463

Original Poster
Blog Entries: 1

Rep: Reputation: 126Reputation: 126
photorec recovered everything. Thanks everyone!

(and, xD cards were not even tested with it, so I am happily surprised)
 
Old 01-14-2008, 06:53 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,780

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
Quote:
Originally Posted by phantom_cyph View Post
(and, xD cards were not even tested with it, so I am happily surprised)
Let the developer know.
For future reference, defining partition(s) doesn't affect the data. For a card (or USB key) I'd just define a partition to cover the entire thing, then see if it is mountable.

Glad you got your data back. Refer to my sig line...
 
Old 01-14-2008, 07:28 PM   #9
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
Very good to know. Out of curiosity and laziness, Photorec only recovers data from flash drives or is it for hard drives too?

Thanks,

Brandon
 
Old 01-14-2008, 08:24 PM   #10
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,463

Original Poster
Blog Entries: 1

Rep: Reputation: 126Reputation: 126
Quote:
Originally Posted by MyHeartPumpsFreon View Post
Very good to know. Out of curiosity and laziness, Photorec only recovers data from flash drives or is it for hard drives too?

Thanks,

Brandon
It appears to be mainly for removable devices, camera cards in particular.
 
Old 01-15-2008, 07:41 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
It works on hard disks, usb drives, zip drives (as long as the disk will still spin), cards, CD's, DVD's, etc. Basically any media with that had contained a supported filesystem (though I think it would work on unsupported filesystems as well since it's looking directly at raw data, not partition tables).

Typically I'll use dd to make an image file from the drive/media, then run photorec on it. But I have used it directly from hard disks when I didn't have enough storage space to make an image and recover files from a drive.

Last edited by pljvaldez; 01-15-2008 at 07:42 PM.
 
  


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
mounting digital camera, mounting in general? lugoteehalt Linux - Hardware 6 08-29-2006 12:52 PM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 12:26 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
Problem mounting SunOS disk on RedHat - unknown partition table jerrymc Linux - Software 2 12-03-2001 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:15 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