Re: DiskEdit

From: Jules (julesrichardsonuk_at_remove.this.yahoo.co.uk)
Date: 02/03/05


Date: Thu, 03 Feb 2005 14:39:14 +0000

On Wed, 02 Feb 2005 23:01:34 -0600, PhWashington wrote:

> Is there a tool that is equivalent to DiskEdit or WinHex for Linux?
>
> I've recently gotten interested in looking at raw data on harddrives and
> trying to understand what it all means. Where would I go to look for
> information that explains the equivalent of FAT on Linux partitions or
> the various formats.

I'd use dd to create a copy of the relevant disk blocks to a file, then
I've been using ghex2 for editing, and then dd to copy the data back to
the raw disk if needs be. I don't like editing on the raw disk just in
case if disaster :-)

eg. dd if=/dev/sda of=/tmp/output.bin count=10

... to read ten disk blocks from /dev/sda (first SCSI disk) to a file
/tmp/output.bin (look at the skip parameter too)

ghex2 is pretty good for editing binary files, displaying current byte /
short / word in decimal at the bottom of the screen, plus allowing you to
toggle between little endian and big endian modes. The only infuriating
thing about it (at least the verion I have) is that there's no way of
controlling how many columns it displays - I'd like it to do 16 and it
insists on giving me 18 on this machine (I think it works it out via
preferred font size)

Oh, I'm running KDE so I use KCalc quite a bit too as it allows
calculations and conversions in/between hex, decimal, octal etc. (I expect
there's a Gnome equivalent)

'hexdump -C' is quite useful for looking at binary data.

> Where would I go to look for
> information that explains the equivalent of FAT on Linux partitions or
> the various formats.

kernel source - as it'll contain declarations (and helpful hints) for all
sorts of disk-based structures:

/usr/src/linux/fs/...
/usr/src/linux/Documentation/filesystems/...

Have fun, and don't break anything ;)

cheers

Jules



Relevant Pages

  • Re: Penguin help please. Testdisk.
    ... Don't forget that you can make dd copy from raw blocks on a device into ... Usually what you qb is get a disk with enough free space to store the ... drive dying meantime, or hootering up your data. ... Yer, rule of thumb, don't use NTFS unless you have a windows box around to ...
    (uk.rec.sheds)
  • RE: Raw device VS cooked file - any benchmark recently done?
    ... have a number of systems that are running with acceptable performance on raw ... But from almost 20 years of working with this disk architecture and with ... But will that continue when the UNIX file system gets more ... recent advances in I/O caching for cooked writes can provide ...
    (comp.databases.informix)
  • RE: Raw device VS cooked file - any benchmark recently done?
    ... Subject: Re: Raw device VS cooked file - any benchmark recently done? ... it might be actually true that there are disk devices able to achieve "I/O ... The IBM IDS 10 Server Administrator ...
    (comp.databases.informix)
  • Re: Calling all Canon DSLR photographers that use a Mac...
    ... I'm using windows (waitng for the new 27''quad core imac and ... then migrating to mac), and with a codec, windows gives a small thumbnail of ... Do macs also show RAWs as small thumbnails for Canon's Cr2 RAW format? ... plus plan on lots of disk and processor grunt. ...
    (uk.comp.sys.mac)
  • Re: Viewscan: now this is a weird one...
    ... image editing has absolutely nothing to do with scanning and is there ... because the main purpose of scanning software is to scan, ... "raw file" (in the language of Vuescan) is done well by that software. ...
    (comp.periphs.scanners)