[comp.unix.admin] How can I dump the contents of a crash/dump part'n onto floppy?

aland@infmx.informix.com (Colonel Panic) (12/29/90)

System:  386 running AT&T System V/386 Release 3.2.2
         Dedicated crash/dump partition on disk 0

This system is configured with a dedicated crash/dump slice, which is
used to store the dump file in the event of a panic.  Works just fine
with crash(1).

If I *didn't* have a dedicated slice and a panic occured, I guess I
would be prompted upon next boot if I wanted to save the dump file
onto floppy or tape.  I'm assuming that the routine is smart enough
to split the dump over multiple floppies and reassemble it later somehow?

Anyway, my problem: I need to give a dump to the network vendor to help
diagnose the network problem causing the panic.  How do I copy the
contents of that slice onto floppies in such a way that they can turn
around and upload it at their end?  dd(1) doesn't do multi-volume.
cpio doesn't copy the contents character special devices (right?).
So, how do I unload it to floppy????  Am I missing something simple?
I guess I could write something in C to do it, but it seems that there
should be an easier way.  I RTFM'd all through the sections on panics
and crash(1) and such.

Any help appreciated.  Followups to comp.unix.admin.

--
Alan Denney  #  aland@informix.com  #  {pyramid|uunet}!infmx!aland

 "Out on the highway doing 98... radio's blastin', and he's tempting fate
  He swears he saw an angel in a black Corvette
  She was blowing him kisses through her cigarette
  Boy's gone crazy;  it's not just a phase, he's one step over the line..."
                                "Boy's Gone Crazy", Was (Not Was)

emanuele@overlf.UUCP (Mark A. Emanuele) (12/30/90)

In article <1990Dec29.010247.22411@informix.com>, aland@infmx.informix.com (Colonel Panic) writes:
> Anyway, my problem: I need to give a dump to the network vendor to help
> diagnose the network problem causing the panic.  How do I copy the
> contents of that slice onto floppies in such a way that they can turn
> around and upload it at their end?  dd(1) doesn't do multi-volume.
> cpio doesn't copy the contents character special devices (right?).
> So, how do I unload it to floppy????  Am I missing something simple?
> I guess I could write something in C to do it, but it seems that there
> should be an easier way.  I RTFM'd all through the sections on panics
> and crash(1) and such.



I THINK this will work for you



dd if=(name_of_crash/dump_raw_device) of=/tmp/crashfile
tar cvf /dev/(name_of_floppy_device) /tmp/crashfile

note:
make sure you specify the proper option in tar for the size of the floppy.



of course this assumes you have a system that will reboot.

-- 
Mark A. Emanuele
V.P. Engineering  Overleaf, Inc.
500 Route 10 Ledgewood, NJ 07852-9639         attmail!overlf!emanuele
(201) 927-3785 Voice   (201) 927-5781 fax     emanuele@overlf.UUCP

ashutosh@ashutosh.ingr.com (ashutosh) (01/01/91)

In article <1990Dec29.010247.22411@informix.com>,
aland@infmx.informix.com (Colonel Panic) writes:
|> System:  386 running AT&T System V/386 Release 3.2.2
|>          Dedicated crash/dump partition on disk 0
|> 
|> This system is configured with a dedicated crash/dump slice, which is
|> used to store the dump file in the event of a panic.  Works just fine
|> with crash(1).
|> 
|> If I *didn't* have a dedicated slice and a panic occured, I guess I
|> would be prompted upon next boot if I wanted to save the dump file
|> onto floppy or tape.  I'm assuming that the routine is smart enough
|> to split the dump over multiple floppies and reassemble it later somehow?
|> 
|> Anyway, my problem: I need to give a dump to the network vendor to help
|> diagnose the network problem causing the panic.  How do I copy the
|> contents of that slice onto floppies in such a way that they can turn
|> around and upload it at their end?  dd(1) doesn't do multi-volume.
|> cpio doesn't copy the contents character special devices (right?).
|> So, how do I unload it to floppy????  Am I missing something simple?
|> I guess I could write something in C to do it, but it seems that there
|> should be an easier way.  I RTFM'd all through the sections on panics
|> and crash(1) and such.
|> 
|> Any help appreciated.  Followups to comp.unix.admin.
|> 
|> --
|> Alan Denney  #  aland@informix.com  #  {pyramid|uunet}!infmx!aland
|> 
|>  "Out on the highway doing 98... radio's blastin', and he's tempting fate
|>   He swears he saw an angel in a black Corvette
|>   She was blowing him kisses through her cigarette
|>   Boy's gone crazy;  it's not just a phase, he's one step over the line..."
|>                                 "Boy's Gone Crazy", Was (Not Was)

 How about this :

	1. Use dd(1) to copy from the device file ( the swap partition ) to a 
           regular file. Use the 'bs' and 'count' parameters of the
dd(1) to  copy
 	   the size equal to your memory dump size. For example, for a 16 meg
	   machine you would have something like :

	   dd if=/dev/swap of=tmp/foo bs=200b count=164


	   This would copy a little more than 16 meg from the swap space to a 
	    regular file.


	2. Now use your favourite utility to copy this regular file to a floppy.

------------------------------------------------------------------------
---------
Ashutosh
uunet!ingr!b11!ashutosh!ashutosh