LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-02-2008, 03:42 PM   #1
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Rep: Reputation: 0
When iso image is moved to usb, checksum fails??


I have downloaded Fedora 9 live cd iso image on my hard drive.

After downloading, when I verified that using sha1sum, it was ok.
Quote:
sha1sum -c SHA1SUM
Fedora-9-i686-Live.iso: OK
sha1sum: Fedora-9-i686-Live-KDE.iso: No such file or directory
Fedora-9-i686-Live-KDE.iso: FAILED open or read
sha1sum: WARNING: 1 of 2 listed files could not be read
I used cp to copy the image to my usb.
Now when I check the image on usb, it failed.
Quote:
sha1sum -c SHA1SUM
Fedora-9-i686-Live.iso: FAILED
sha1sum: Fedora-9-i686-Live-KDE.iso: No such file or directory
Fedora-9-i686-Live-KDE.iso: FAILED open or read
sha1sum: WARNING: 1 of 2 listed files could not be read
sha1sum: WARNING: 1 of 1 computed checksum did NOT match
I tried copying to different USBs, but always got the same result.
Then I tried "mv" and then "rsync -av" but to no avail.

What's wrong? When the image is on my hard drive, there isn't any problem.
But as I copy it to some usb, I get this problem.

Here is the verification of my SHA1SUM file
Quote:
gpg --verify SHA1SUM
gpg: Signature made Thu 08 May 2008 07:27:03 AM PKT using DSA key ID 4F2A6FD2
gpg: Good signature from "Fedora Project <fedora@redhat.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: CAB4 4B99 6F27 744E 8612 7CDF B442 69D0 4F2A 6FD2
I faced the same problem with schools-wikipedia-full-20080229.tar.gz.
I can untar it, if it is on my hard drive.
But whenever, I copy this archive to any usb or other computer and then untar it. It stops before completing giving some error that archive is not ok. Same problem of checksum here too.

Now what should I do to move the iso images and tar archive to my usb or other computers without corrupting the checksum.
 
Old 12-03-2008, 07:54 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch
Posts: 1,593

Rep: Reputation: 97
Hya,

Could your problem be file system related?

Happy Penguins!
 
Old 12-04-2008, 01:28 PM   #3
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kaz2100 View Post
Hya,

Could your problem be file system related?
I have tried on ext3 and ntfs both.
I have got same result.

Any idea whats going on?
 
Old 12-04-2008, 01:48 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
did you try the command sync after copying the file but before checking the md5 sum ?

USB devices have a habit of storing data in cache and not writing it all out to the flash drive until it is unmounted. a sync should force this to occur.

man sync

Quote:
sync -- force completion of pending disk writes (flush cache)
 
Old 12-05-2008, 01:33 AM   #5
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
did you try the command sync after copying the file but before checking the md5 sum ?

USB devices have a habit of storing data in cache and not writing it all out to the flash drive until it is unmounted. a sync should force this to occur.

man sync
I tried but it failed again.

Quote:
[User@dhcppc0]$ cp -r Fedora-9-i686-Live/ /media/usb/
[User@dhcppc0]$ cd /media/usb/Fedora-9-i686-Live
[User@dhcppc0 Fedora-9-i686-Live]$ sync
[User@dhcppc0 Fedora-9-i686-Live]$ sha1sum -c SHA1SUM
Fedora-9-i686-Live.iso: FAILED
sha1sum: Fedora-9-i686-Live-KDE.iso: No such file or directory
Fedora-9-i686-Live-KDE.iso: FAILED open or read
sha1sum: WARNING: 1 of 2 listed files could not be read
sha1sum: WARNING: 1 of 1 computed checksum did NOT match
[User@dhcppc0 Fedora-9-i686-Live]$
I think running sync for once was enough but I did it thrice and then checksum the file but again FAILED.

Any other idea?
Is there any other command (other than cp,mv,rsync) which can be used for moving files?
May be a new command to move the file will help.
 
Old 12-05-2008, 03:45 AM   #6
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Original Poster
Rep: Reputation: 0
I have observed that this thing only happens when I move image to usb.

I tried moving image to other partition (my home folder is on other partition) and it worked, I didn't get any fail there.

But as I tried it moving it to usb, I got failed on checksum.

Any idea?
 
Old 12-05-2008, 07:38 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Do you use any options with the 'cp' command? What about the flash, the state or condition? Have you checked the device?
 
Old 12-06-2008, 02:16 AM   #8
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by onebuck View Post
Hi,
Do you use any options with the 'cp' command?
I used cp -rv as I am moving a folder.
I also tried copying or moving the iso image only.
But all failed.


Quote:
Originally Posted by onebuck View Post
Hi,
What about the flash, the state or condition? Have you checked the device?
I have tried this on 3 usbs. All are working otherwise fine.
This only happens with iso images and wikipedia tar files.

May be it is because of size.
Because I have tried moving small iso images and tar files. They work fine. No problem with them.
While the iso of fedora live is about 700 Mb and wikipedia is 2GB.
What do you think?
 
Old 12-06-2008, 08:08 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

You should be copying or moving the iso image to the usb or any other device.

To copy a iso;

Code:
~# cp -p myiso.iso /mnt/usb/mynewiso.iso
This would preserve and copy the 'myiso.iso' to the file 'mynewiso.iso' on the mounted 'mnt/usb/'.

If you want to move the iso then;

Code:
~#mv myiso.iso /mnt/usb/mynewios.iso
You should 'man cp' and 'man mv'.
 
  


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
Writing slackware iso image to USB pendrive jayakrishnan Linux - General 5 06-22-2009 10:05 PM
burning image to USB disk. SEX.iso byteframe Linux - Hardware 2 12-30-2006 02:51 PM
Should the iso section for LinuxFromScratch be moved to ... ? t3gah LQ Suggestions & Feedback 17 06-13-2005 07:45 AM
image checksum error, sorry.... zout Linux - Laptop and Netbook 2 11-24-2004 09:39 AM
Trouble Burning ISO image to USB pen drive madh@ter Linux - Hardware 1 08-30-2004 11:29 AM


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