LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-04-2010, 09:34 AM   #1
tirengarfio
Member
 
Registered: Nov 2006
Posts: 47

Rep: Reputation: 15
Using dd and shasum: how can i know the two partitions are the same?


Hi,

im using this command to duplicate a partition:

Code:
$ dd if=/dev/hda bs=4k | tee hda.img | shasum
After executing it, a long number is showed.


Now, how can i know the two partitions are the same?



Regards

Javi
 
Old 02-04-2010, 10:31 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 681

Rep: Reputation: 95
first you are not dublicating a partiton, you ure dublicating whole disk.

secondly, run it agaist another partition which will give you a long number.
compare two numbers, using tests in (shell scripting), or even using simple diff
to compare numbers.
 
  


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
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 09:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 06:02 PM
e2fsck: root partitions and ro mounted partitions Clemente Linux - General 4 11-06-2006 10:32 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 07:15 PM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 02:11 PM

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

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