Re: disassembler

2010-08-27 Thread Jim Bryant
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 a

Re: Is there a boot manager that can handle this?

2010-08-27 Thread Thomas Schmitt
Hi, > Primary partitions: > Windows XP, FreeBSD 9-current, FreeBSD 7-stable > Extended partition: > FAT32 data volume, Ubuntu Linux > menuentry "FreeBSD 9-Current amd64" { > set root=(hd0,3) > chainloader +1 > } Did you already try : set root=(hd0,3,a) freebsd /boot/loader

Re: disassembler

2010-08-27 Thread Jim Bryant
ah, ok. if it's a flash drive, the data may be toast. depends on how many dead cells there are. best of luck to you. 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 t

Re: disassembler

2010-08-27 Thread Aryeh Friedman
I should of said USB drive I just think of all USB drives as "flash" drives... it is a Lacie external drive On Fri, Aug 27, 2010 at 4:27 AM, Jim Bryant wrote: > ah, ok. > > if it's a flash drive, the data may be toast.  depends on how many dead > cells there are. > > best of luck to you. > > Arye

Re: disassembler

2010-08-27 Thread Hans Petter Selasky
On Friday 27 August 2010 10:27:38 Jim Bryant wrote: > ah, ok. > > if it's a flash drive, the data may be toast. depends on how many dead > cells there are. > Hi, dd if=/dev/da0 of=/root/temp.mbr bs=512 count=1 Then use objcopy to convert /root/temp.mbr into something that objdump can read, a

Re: disassembler

2010-08-27 Thread Gary Jennejohn
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 wri

Re: Is there a boot manager that can handle this?

2010-08-27 Thread Michel Talon
Doug Barton wrote: > On 8/26/2010 5:13 PM, Alex Goncharov wrote: > > ,--- You/Doug (Thu, 26 Aug 2010 16:47:39 -0700) * > > | Windows and the *1st* FreeBSD partition just fine, but if I try to > > boot > > | the 2nd FreeBSD partition grub just boots the first one again. > > > > Are you using a c

Re: Is there a boot manager that can handle this?

2010-08-27 Thread Thomas Schmitt
Hi, Michel Talon wrote: > menuentry "FreeBSD (on /dev/sda4)" { >insmod ufs2 >set root='(hd0,4,a)' >kfreebsd /boot/loader > } wheras i wrote: > Booting is done by the GRUB2 1.98 > menuentry "FreeBSD-8.0 STABLE on Partition 1" { >set root=(hd0,1,a) >freebsd

Re: disassembler

2010-08-27 Thread John Baldwin
On Thursday, August 26, 2010 11:42:25 pm 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

Re: Is there a boot manager that can handle this?

2010-08-27 Thread Doug Barton
On 08/27/2010 01:58 AM, Michel Talon wrote: menuentry "FreeBSD (on /dev/sda4)" { insmod ufs2 set root='(hd0,4,a)' kfreebsd /boot/loader } We have a winner! Using 2 of these entries and switching the 4 to a 3 for the 1st one I can now boot both of my FreeBSD partitions

Re: disassembler

2010-08-27 Thread Rink Springer
On Fri, Aug 27, 2010 at 11:36:55AM +0200, Gary Jennejohn wrote: > There are quite a few diassemblers under ports but I doubt they're > designed to work on raw disks. ndisasm should work nicely; it's in the devel/nasm port. Regards, -- Rink P.W. Springer- http://r

Debugging Loadable Modules Using GDB

2010-08-27 Thread Alexander Fiveg
Hi, from "FreeBSD Developers' Handbook, 10.7 Debugging Loadable Modules Using GDB": "... (kgdb) add-symbol-file /sys/modules/linux/linux.ko 0xc0ae22d0 ... " Actually I couldn't debug my modules using .ko-file. Moreover, I've find out that .ko files do not contain sections with debugging info. With

Re: Debugging Loadable Modules Using GDB

2010-08-27 Thread Andriy Gapon
on 27/08/2010 23:11 Alexander Fiveg said the following: > Hi, > from "FreeBSD Developers' Handbook, 10.7 Debugging Loadable Modules Using > GDB": > "... > (kgdb) add-symbol-file /sys/modules/linux/linux.ko 0xc0ae22d0 > ... > " > Actually I couldn't debug my modules using .ko-file. Moreover, I've fi

Re: uma: zone fragmentation

2010-08-27 Thread Artem Belevich
On Sun, Aug 22, 2010 at 1:45 PM, Andriy Gapon wrote: > Unfortunately I don't have any conclusive results to report. > The numbers seem to be better with the patch, but they are changing all the > time > depending on system usage. > I couldn't think of any good test that would reflect real-world u