"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).
Created attachment 43646 [details] ebuild for version 7 I placed it in app-forensics/
Daniel, what does disktpe do that 'file' does not?
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 :)
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.
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.
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)
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/
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.
added to sys-apps/disktype Thanks for the ebuild.
Ned fyi - I added this - sys-apps/disktype.