LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-07-2012, 02:31 AM   #1
rammohantv
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Rep: Reputation: 0
Please advice


Could some one can explain what does the following command & what will be the expected out put from a new disk?

dd if=/dev/sdX bs=1024 count=1024|od
 
Old 02-07-2012, 02:38 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
It will display the first Megabyte of the partition specified in lace of sdX, in (according to "man od") octal.

You may also be interested to know, if you want to "dry run" a dd command, you can substitute the in file, with "if=/dev/random" and the outfile with "of=/dev/null".
 
1 members found this post helpful.
Old 02-07-2012, 06:58 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,204
Blog Entries: 3

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Moderator response

Hi,

Quote:
Originally Posted by rammohantv View Post
Could some one can explain what does the following command & what will be the expected out put from a new disk?

dd if=/dev/sdX bs=1024 count=1024|od
Sure smells like homework to me.
LQ Rules;
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
 
Old 02-07-2012, 08:13 AM   #4
rammohantv
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by onebuck View Post
Hi,



Sure smells like homework to me.
LQ Rules;


Please do home work and reply to me....
 
Old 02-07-2012, 09:13 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,204
Blog Entries: 3

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Moderator response

Hi,

Quote:
Originally Posted by rammohantv View Post
Please do home work and reply to me....
May I suggest that you show what you have done then possibly we may help with the problem.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for advice about VM's hornetbzz Linux - Newbie 4 08-04-2010 02:41 PM
Need an advice Rommeo Linux - Newbie 6 10-04-2008 09:54 AM
Need some advice... ProtoformX General 59 08-13-2008 12:43 PM
New PC advice Alan Lakin Linux - Hardware 3 05-30-2005 01:58 PM
Need advice Socka Linux - Newbie 19 05-17-2003 07:08 PM


All times are GMT -5. The time now is 06:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration