How to compare two partitions?

If none of the more specific forums is the right place to ask

How to compare two partitions?

Postby hack3rcon » 2020-12-15 10:21

Hello,
In Windows OS, a tool like "WinHex" can compare two disks together? How about Linux? Any tools?

Thank you.
hack3rcon
 
Posts: 507
Joined: 2015-02-16 09:54

Re: How to compare two partitions?

Postby arochester » 2020-12-15 12:10

Did you find any useful results by searching for: linux how to compare two partitions
arochester
 
Posts: 1825
Joined: 2010-12-07 19:55

Re: How to compare two partitions?

Postby CwF » 2020-12-15 14:02

I apologize to for putting out this idea!

To cut to the end, if this is related to comparing your 'switch' OS disk to the copy attempts, then I think you will not find a difference in the user space of the disk. You'll be lucky if the difference is in the boot sector. If it's not, then screwed.

I suggested in that post, the difference does not have to be in the user space. It's called proprietary, contact the manufacturer of the 'switch'. If no love there, the manufacturer of the disk may have a utility that will help. Get ready for whatever OS usage, like bios tools, the availability is narrow and short lived.

'dhex' maybe...
CwF
 
Posts: 872
Joined: 2018-06-20 15:16

Re: How to compare two partitions?

Postby p.H » 2020-12-15 18:28

I do not know this tool "WinHex".
What do you mean exactly by "compare" .? There are many ways to compare things together.
Disks or partitions ? This is not the same at all.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to compare two partitions?

Postby CwF » 2020-12-15 20:17

p.H wrote:What do you mean exactly by "compare" .?

I didn't use WinHex either but FindandMount and HxD. With many hex editors you can open a device, I assume dhex can. So open two and page through or search, long process even when you know what you're looking for. PageUp is the first sector, PgDn to the last sector, you see it all. This all happens outside a 'mounted' filesystem and is the 'disk', including all partitions - OR just a partitions - same thing. If you know the markers, like MZ to start and the particular end of file markers - then from the hex editor you copy and paste into an empty file, name it correctly, and it opens! There is the file system stuff and meta data you can look through, but I still think the op's magic isn't to be found there...
CwF
 
Posts: 872
Joined: 2018-06-20 15:16

Re: How to compare two partitions?

Postby p.H » 2020-12-15 21:27

You are not seriously suggesting to compare the contents of two disks or partitions with a hexadecimal editor by sight, are you ?
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to compare two partitions?

Postby sunrat » 2020-12-15 21:28

I have no idea what OP's question even means.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3335
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: How to compare two partitions?

Postby p.H » 2020-12-15 21:30

Me neither, this is why I asked for clarifications.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to compare two partitions?

Postby CwF » 2020-12-15 21:57

p.H wrote:You are not seriously suggesting to compare the contents of two disks or partitions with a hexadecimal editor by sight, are you ?

Done it.
It's forensics.
Lately, data loggers that lose power and don't close a file. Scrambles things, so I know what to search and find a 2k segment that has a multi meg tail of data, I copy the data sector range to a file. The mounted filesystem shows that file, well, as 2k! So don't use the file system...I have recovered from damaged disk doing it 'by sight' yes, but only when I know what we want. I wouldn't just go fishing...But yes, that is how it can be done. You learn to read it after awhile, as good as a mime-type app at least...
CwF
 
Posts: 872
Joined: 2018-06-20 15:16

Re: How to compare two partitions?

Postby CwF » 2020-12-15 22:37

sunrat wrote:I have no idea what OP's question even means.

I may have read right through the question and inferred from hack3rcon's other thread detailing a failure to duplicate some devices OS disk...These would be the two disk to compare!

Bail me out hack3rcon!

So with that in mind, my response, and my comment that hack3rcon will not find it. I don't know what device is in question, but do know industrial like things don't follow pc standards! The magic is elsewhere.
CwF
 
Posts: 872
Joined: 2018-06-20 15:16

Re: How to compare two partitions?

Postby hack3rcon » 2020-12-16 06:37

p.H wrote:You are not seriously suggesting to compare the contents of two disks or partitions with a hexadecimal editor by sight, are you ?

Yes.
hack3rcon
 
Posts: 507
Joined: 2015-02-16 09:54

Re: How to compare two partitions?

Postby p.H » 2020-12-19 08:07

Well then go ahead.
Otherwise I would have suggested to simply use cmp to compare two files or block devices. I use it to verify a USB drive after writing an ISO-hybrid image to it.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12


Return to General Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable