LinuxQuestions.org
Visit Jeremy's Blog.
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 05-05-2009, 01:33 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
deciphering dd output


hi, i have a bunch of output like this after running this command:

Code:
[schneidz@hyper schneidz]$ ll fc9-live-usb.iso.bz2
-rw-rw-r--    1 schneidz schneidz 2119848361 Mar  2 21:34 fc9-live-usb.iso.bz2

[schneidz@hyper schneidz]$ bunzip2 -c fc9-live-usb.iso.bz2 | dd bs=16K of=/dev/sdb & pid=$!
[schneidz@hyper schneidz]$ while [ 1 ]
> do
> kill -USR1 $pid
> sleep 5
> done

210+719388 records out
210+725564 records in
210+725563 records out
210+731282 records in
210+731281 records out
1335+733472 records in
1335+733471 records out
3526+734906 records in
3526+734906 records out
4514+737367 records in
4514+737366 records out
4560+741806 records in
4560+741806 records out
4560+749750 records in
4560+749749 records out
4560+756515 records in
4560+756515 records out
4560+763826 records in
4560+763826 records out
4560+771637 records in
4560+771636 records out
4812+774508 records in
4812+774508 records out
what does all this stuff mean ?
thx
 
Old 05-05-2009, 03:31 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
Looks like you're writing a bootable disk image to a usb flash drive. The "records in/out" is just dd's output when it is interupted - telling you how much data was read/written.
 
Old 05-05-2009, 10:46 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ thx, but does this number indicate number of bits, number of bytes, number of blocks, ...

why would they write it like 210+719388 (does this mean that 719598 bits have been written so far ?)

is 210 some starting memory address and 719388 is the offset from that address ?

this info is not in the man page.

Last edited by schneidz; 05-05-2009 at 10:47 AM.
 
Old 05-05-2009, 09:07 PM   #4
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
Quote:
DIAGNOSTICS

Upon completion, dd reports the number of input and output records:

f+p records in

Number of full and partial blocks read.
f+p records out

Number of full and partial blocks written.

When conv=block is specified and there is at least one truncated block, the number of truncated records is also reported:

n truncated records
Block size in this case was 16k.
 
1 members found this post helpful.
Old 05-06-2009, 02:21 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
almost there.
in the above example the total size is 2119848361 (2 gigabytes) and each block is 16k.

should that mean i can predict that the total amount of records would be 2 gb / 16 kb = 131072

why does it indicate its already past 700,000 records ?
 
Old 05-06-2009, 04:28 PM   #6
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
The file (*.bz2) is a compressed version of the disk image (think zip archive). The amount of data written to the disk is going to be greater than then amount of data in the .bz2 file.
 
1 members found this post helpful.
Old 05-06-2009, 11:34 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ oh yeah, good catch.
 
Old 06-03-2009, 12:39 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
this is interesting:
Code:
[schneidz@hyper schneidz]$ sudo dd if=/dev/mem | wc -c
1047456+0 records in
1047456+0 records out
536297472
[schneidz@hyper schneidz]$ expr 1047456 \* 512
536297472
[schneidz@hyper schneidz]$
 
  


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
ps -eH | grep java output in a active passive clustered output johnkalikavunkal Linux - Server 2 01-30-2009 11:21 PM
Need help on deciphering my IPTABLES jun_tuko Linux - Security 2 11-24-2005 12:02 PM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM
Help deciphering this log entry Scruff Linux - Security 6 11-24-2003 07:15 PM
Help in deciphering a msg during install? kkathman Linux - Newbie 2 10-05-2003 11:08 PM

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

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