* Peter Wemm <[EMAIL PROTECTED]> [010201 23:40] wrote:
> Lars Eggert wrote:
> 
> > [Repost from last week, no answer then.]
> > 
> > How do I capture an early kernel dump (before rc executes and sets
> > dumpdev)?
> > 
> > The dump partition used to be an option in the kernel config file, but that
> > seems to have changed in 3.X or 4.X.
> > 
> > Thanks,
> > Lars
> 
> How early?  We could dump if you were prepared to hardwire in the minor and
> major device numbers to get to the devsw[] vectors and manually set the
> offsets.
> 
> The biggest problem is that if it is Really Early (TM) we may not have read
> the disk label and may not be able to see what the partitions look like. It
> may need to be blindly dumped using a magic offset that you supply
> somewhere and *hope* that you get the numbers correct so you dont trash
> something.
> 
> Alternatively.. dedicate a disk for it and just start dumping to the beginning
> of the disk and work upwards...

Well, doesn't the loader understand UFS?  Why not have it pass the
major/minor to the kernel?  That way the loader can pass/set the dumpdev
pretty safely by looking in /dev.

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to