LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2010, 09:27 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
dd is hard to use.


Hi:
I issue the command 'dd if=/dev/hdc|head -c 4294607004|m5sum'. But the checksum I get is not the correct one. Its not the checksum of the first 4294607004 bytes in /dev/hdc. And the message dd outputs is
8387904 records in
8387904 records out

Then I find 8387904 * 512 (512 because 4294607004 / 8387904 = 512.0000186) = 4294606848, which falls short of 4294607004 by a few bytes. But 8387905 * 512 > 4294607004. So I issue 'dd if=/dev/hdc ibs=512 count=8387905|head -c 4294607004|md5sum'. However, the message is still the same:
8387904 records in
8387904 records out

How can this be?
Enrique.
 
Old 03-09-2010, 09:44 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
Code:
# dd if=/dev/zero ibs=512 count=8387905 |head -c 4294607004 | md5sum
8387905+0 records in
8387905+0 records out
4294607360 bytes (4.3 GB) copied, 12.5838 s, 341 MB/s
5f1de147c8b8761c67bf99d53fa85a53  -
Is it possible that the size of /dev/hdc is 4294606848 bytes ?

Last edited by troop; 03-09-2010 at 09:45 AM.
 
Old 03-09-2010, 05:54 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Just for grins then test it to a file and then chksum it.
 
Old 03-09-2010, 09:13 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
troop: in /dev/hdc I've burned the iso image Image1.nrg.

-rwxr-xr-x 1 root root 4294607004 2010-03-09 07:46 Image1.nrg

The burner program didd not complain and I ask him for verification. He verified and said data verified OK. I strongly suspect the drive itself
has messed up things. The media was fine, although verbatim is no longer for me a good brand and is marketing other factories brands.

Only thing I could do now is to check media block size.
 
Old 03-10-2010, 02:48 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by ENRIQUESTEFANINI View Post
troop: in /dev/hdc I've burned the iso image Image1.nrg.

-rwxr-xr-x 1 root root 4294607004 2010-03-09 07:46 Image1.nrg

The burner program didd not complain and I ask him for verification. He verified and said data verified OK. I strongly suspect the drive itself
has messed up things. The media was fine, although verbatim is no longer for me a good brand and is marketing other factories brands.

Only thing I could do now is to check media block size.
.nrg files are not iso images. They are a proprietary thing invented by the Nero guys which most times contains an iso image amongst many other things probably.

There's no problem in the fact that the contents of the disk and the nrg file are not the same, at all. There are ways to convert nrg files in iso files, then you could burn the iso and compare it with the disk afterwards.
 
Old 03-10-2010, 08:26 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
i92guboj: as is usually the case, yours is a useful post. Or more properly, if I may be allowed the expression, da en el clavo [literally, hit the nail]. May you stay in this site for several years. Adios.

Enrique.
 
  


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
Formated hard drive, runing ubuntu cd cant install, get fedora 11 to boot from hard d IanHarper Linux - Desktop 9 08-10-2009 10:09 PM
Having a hard time making linux recognizing my new external hard drive jared nelson Linux - Hardware 19 03-24-2009 03:39 PM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 06:44 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
manual mandrake shut down hard on hard drive randrake Mandriva 2 03-15-2004 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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