LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2010, 01:22 PM   #1
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Rep: Reputation: 31
Question retrieving jpeg files from BkUp copy yields:ERR INTERPRETING JPEG; file not jpeg,


I
Hi,
I wanted to bring some jpeg picture files from a BkUp copy on a dvd to my desktop and got this Msg.
"Error interpreting jpeg file! (not a jpeg file, starts with 0x20 0x20.)

Of the hundreds of pictures only about 10 are displayed.
Any Ideas?

Thanks in advance for your thoughts.
Matthew
 
Old 10-02-2010, 02:12 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Is the DVD scratched ?
 
1 members found this post helpful.
Old 10-02-2010, 02:17 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
how did you make that back up in the first place ?

there are many ways to mess it up
one that i can think of is that you saved a LINK to the photo and not the photo

was the back up made from a Microsoft windows box
if so then links are a big problem

Last edited by John VV; 10-02-2010 at 02:19 PM.
 
1 members found this post helpful.
Old 10-02-2010, 04:01 PM   #4
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
There is not a hint of a scratch.

The BkUp was made with a bash script
Code:
growisofs -Z /dev/dvd -dvd-compat -r -v /home
 
Old 10-02-2010, 05:50 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a question
will the entire /home partition fit on a dvd ? ( 4.377 Gig)
mine is 25 Gig's with 8.3 Gig used .
and using the "-dvd-compat" was this dvd a dvd-+r or a rw
 
1 members found this post helpful.
Old 10-02-2010, 06:19 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by drmjh View Post
I
Hi,
I wanted to bring some jpeg picture files from a BkUp copy on a dvd to my desktop and got this Msg.
"Error interpreting jpeg file! (not a jpeg file, starts with 0x20 0x20.)
Hi there you guys.. I read this thread earlier today but hadn't anything to add, but now I have a question or two, or a comment or two:

1) You're restoring a backup. So, it shouldn't matter what kind of files are being (backed up or) restored. Therefore, I'm curious why the backup-restoring-command you're using, whatever it is, is complaining that the file(s) are "not a jpeg file"? How or why would the backup-restoration command know or care what exactly was being copied?

Or, have I misunderstood, and what's really happening is that the files have been restored, and now, some jpeg viewing program is doing the complaining about the file types?

Nobody asked what command(s) or tools you're using to restore the backup - so what are you using?

2) Admittedly I'm not familiar with every possible permutation of the `growisofs` command, and I haven't ever used it to backup an entire folder or partition, such as /home. However, one thing I don't see in your backup command is a -speed= setting. Therefore, your backup was probably made at a high speed. This might be a contributing factor in why you have corrupted images.

Was the backup media checksummed or otherwise verified to be accurate, after it was made?

Here's an interesting excerpt from the `growisofs` manpage:
Quote:
-speed=N
An option to control recording velocity. Most commonly you'll use -speed=1 with "no-name" media, if default speed setting messes up the media. Keep in mind that N essentially denotes speed closest to N*1385KBps in DVD ...
So with that, what brand of discs did you use for the backup? Nice ones, or cheapo ones?

3) In searching a little bit earlier today, I came across a whack of google results talking about the same error message you are getting, about the 0x20 file header and filetype being wrong. One thing that was common among many of these google results I looked at, was the claim that backed up images (and probably files of any type) can degrade or deteriorate over time. Since it's already known that optical media doesn't last indefinitely, it's possible that your corruption is being contributed to by the age or quality of the media, combined with storage conditions (very warm or cold, direct sunlight, etc..) and as mentioned earlier, burn speed of the backup.


Anyways.. Some stuff to think about.
Cheers!
 
1 members found this post helpful.
Old 10-03-2010, 06:52 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
When you burned it, did you make sure the disk was burned properly ? Did the images open ?

Well, there's not much to do after the fact, I suppose you could try photorec or:
http://www.rfc1149.net/devel/recoverjpeg

but, they may not work.

If the disk was not burned properly or the medium is not of good quality, like rewritable, then there's not much to do.

Last edited by H_TeXMeX_H; 10-03-2010 at 06:53 AM.
 
Old 10-03-2010, 08:13 AM   #8
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
Thumbs up

Thanks everybody!
I think Celine came up with the probable answer to this dilemma. The age and perhaps numbers of times copied-of the jpeg files in question.
But first, Yes, my entire /Home fits on one 700mb disk. I don't use a specific restore command, preferring to select individual directories and cp them over.
The disk was burned properly and from time to time I copied a file or two from the disk to my hard.
I addition, I had a number of vacation pictures in another directory and all copied from disk to hard intact. The only difference I note was cited by Celine. Without exception, all of the Err. jpeg files were old-=very old!.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how should I get jpeg file header using C language? urvesh Programming 7 10-11-2009 05:03 PM
Cannot attach/upload JPEG files through any website. Other file formats are fine. yamel Linux - Newbie 11 07-02-2009 01:18 PM
How to print a jpeg file AbrahamJose AIX 8 03-03-2008 06:58 PM
error converting jpeg to ai file aeshj Linux - General 3 10-16-2007 10:28 AM
Why can't imlib fing the jpeg header files? Bert Linux From Scratch 6 05-06-2005 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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