From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 27 10:06:56 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6ADE106566B for ; Fri, 27 Aug 2010 10:06:56 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A7F08FC0C for ; Fri, 27 Aug 2010 10:06:55 +0000 (UTC) Received: by bwz20 with SMTP id 20so2136372bwz.13 for ; Fri, 27 Aug 2010 03:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=HnjPOXtRBGIc3GyayY5lsWND1VUqTRU8zBjpi7Ep49Y=; b=PtZJzDZi6oGYgELorFZKpU3puR48oevPU0MGxeGmtB1fIz1a5avMsI6WMTs2GsBNT/ 9lEW16I3J74zoe+th8lV15gS0Q2RCsSjwNiPvdOTRHy6BmjrkXK4VAM3c0qzWB2TN036 VNK9m8p1JSTSWVx/iqcIXPf8UNu9ukU/U0iSk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=KDrMinKGoIFvfpNuE0hnI6Sah9OgtSLtURn+tX2JUE/ThZ/lBq/IdyxCUhIThQZjwv IbZ83G3rvdqbW5iQKGXXEq+oSsBp7sP+wzkV5Hx3sifkmW9/irwNl+mtupAikNIzhGcE 9uqDXPo7KmsUs7RoRXHnvu2/ZkNmw5W9LrxKA= Received: by 10.204.153.10 with SMTP id i10mr324611bkw.1.1282901818361; Fri, 27 Aug 2010 02:36:58 -0700 (PDT) Received: from ernst.jennejohn.org (p578E1FD9.dip.t-dialin.net [87.142.31.217]) by mx.google.com with ESMTPS id 24sm2427583bkr.19.2010.08.27.02.36.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 02:36:57 -0700 (PDT) Date: Fri, 27 Aug 2010 11:36:55 +0200 From: Gary Jennejohn To: Aryeh Friedman Message-ID: <20100827113655.78d8973b@ernst.jennejohn.org> In-Reply-To: References: <4C7726F0.10001@erdgeist.org> <4C776025.8000609@gmail.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: disassembler X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 10:06:57 -0000 On Fri, 27 Aug 2010 02:53:53 -0400 Aryeh Friedman wrote: > No the issue is a drive that has roughly 10 years of work on it died > and I was asked to see if it is readable/reviable... I already know > the format of the MBR but I need to also read the code to see if > something is wakey (I have written MBR's {with inline assemble in GCC) > for an OS I am working on but never disambled one) > > On Fri, Aug 27, 2010 at 2:50 AM, Jim Bryant wrote: > > umm, dude.... > > > > you writing a boot sector virus or something? > > > > funny though.... > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/boot-boot0.html > > > > given your skill and goals are questionable, you can find it in the source > > tree yourself. > > > > Aryeh Friedman wrote: > >> > >> On Thu, Aug 26, 2010 at 11:36 PM, Aryeh Friedman > >> wrote: > >> > >>> > >>> On Thu, Aug 26, 2010 at 10:46 PM, Dirk Engling > >>> wrote: > >>> > >>>> > >>>> On 27.08.10 04:17, Aryeh Friedman wrote: > >>>> > >>>> > >>>>> > >>>>> Is there a disassembler in the base system if not what is a good > >>>>> option from ports? > >>>>> > >>>> > >>>> Try objdump -d, > >>>> > >>>> __erdgeist > >>>> > >>>> > >>> > >>> flosoft# objdump -d /dev/da0 > >>> objdump: Warning: '/dev/da0' is not an ordinary file There are quite a few diassemblers under ports but I doubt they're designed to work on raw disks. If you just want to save the data then why not plug the disk into a different box and save them? -- Gary Jennejohn