Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70643 - new ebuild for disktype
Summary: new ebuild for disktype
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Low enhancement (vote)
Assignee: Forensics Herd [disbanded]
URL: http://disktype.sourceforge.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-10 01:47 UTC by Daniel Evers
Modified: 2004-12-18 16:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for version 7 (disktype-7.ebuild,557 bytes, text/plain)
2004-11-10 01:49 UTC, Daniel Evers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Evers 2004-11-10 01:47:13 UTC
"The purpose of disktype is to detect the content format of a disk or disk image. It knows about common file systems, partition tables, and boot codes."

We use it at our university for forensics. It's very usefull and I was wondering if it was in portage ... sadly it's not. So I wrote a very minimalistic ebuild (just do make + copy the files).
Comment 1 Daniel Evers 2004-11-10 01:49:33 UTC
Created attachment 43646 [details]
ebuild for version 7

I placed it in app-forensics/
Comment 2 solar (RETIRED) gentoo-dev 2004-11-22 15:00:17 UTC
Daniel, what does disktpe do that 'file' does not?
Comment 3 Daniel Evers 2004-11-22 23:55:29 UTC
Right, the man page for "file" tells me it knows about file system types.
But I don't think it supports partition types, boot codes and as much file system types as disktype does (see disktype.sf.net for a list of supported formats).

I think "file" is very good for files, but "disktype" is the best I know for partitions and stuff.

Hope that helps :)
Comment 4 solar (RETIRED) gentoo-dev 2004-11-23 08:15:02 UTC
I can add this to the tree if somebody else comments here as this being a valuable 
addition to the tree.  Community support for the tool is next step as we need make
sure it's more than 1 person that will use and that wants to see this tool in the 
tree.
Comment 5 solar (RETIRED) gentoo-dev 2004-11-24 09:39:54 UTC
I've tested this. It does indeed seem like a very usefull util for the toolbox. 
I'm not sure about under app-forensics/disktype however.
Comment 6 solar (RETIRED) gentoo-dev 2004-11-24 17:10:17 UTC
few notes..

livecd src # dd if=/dev/loop0 of=dev_loop_0
livecd src # disktype dev_loop_0dis

--- dev_loop_0
Regular file, size 69.38 MiB (72753152 bytes)
Linux squashfs, version 2.0, little-endian
  Compressed size 69.38 MiB (72749467 bytes)
  Block size 5.352 KiB (5480 bytes)

livecd src # file dev_loop_0 
dev_loop_0: data

I wish this thing had more docs (manpage would be nice)

disktype hangs with -> disktype /dev/psaux||/dev/random
while file gets it right.

livecd src # file /dev/psaux 
/dev/psaux: character special (10/1)
Comment 7 Daniel Evers 2004-11-25 02:33:20 UTC
app-forensics was just an idea because I used it for forensics :)
ATM I can't think of any other kind of usage...

I don't know how disktype works, but maybe it tries to read the while file at once or to the end, so it gets stuck with special devices (they have kind of infinite data, images and discs are finite).

>I wish this thing had more docs (manpage would be nice)
disktype? --> http://disktype.sourceforge.net/doc/
Comment 8 solar (RETIRED) gentoo-dev 2004-12-12 12:50:55 UTC
Reassigning bug to bug-wranglers. disktype is a handy util but I don't think I want to add any new ebuilds myself at this time. Reason being that I'm looking for less to maintain right now.
Comment 9 Daniel Black (RETIRED) gentoo-dev 2004-12-18 16:24:51 UTC
added to sys-apps/disktype

Thanks for the ebuild.
Comment 10 Daniel Black (RETIRED) gentoo-dev 2004-12-18 16:28:13 UTC
Ned fyi - I added this - sys-apps/disktype.