From owner-freebsd-current Sun Mar 26 10:58:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from 1Cust32.tnt3.waldorf.md.da.uu.net (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 51F5637B865; Sun, 26 Mar 2000 10:58:21 -0800 (PST) (envelope-from green@FreeBSD.org) Date: Sun, 26 Mar 2000 13:58:18 -0500 (EST) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Jeroen Ruigrok/Asmodai Cc: current@freebsd.org Subject: Re: DDB and dumping disk In-Reply-To: <20000326161615.A5886@daemon.ninth-circle.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 26 Mar 2000, Jeroen Ruigrok/Asmodai wrote: > Ok, > > so thanks to Brian I can at least get a good value for my swap slice by > using show disk/ad0s1b. > > It returns that the dev_t is 0xc0b65800 > > Ok, so I then proceed to look at dumpdev > > A p dumpdev shows me that it is set to a weird value not matching my > dev_t above. Right, that's the address of "dev_t dumpdev". > A p *dumpdev returns ffffffff That's the value of dumpdev itself. The -1 is the value for NODEV, which is right as you haven't set it :) > When I want to set dumpdev to the dev_t by using w ffffffff > dumpdev=c0b65800 or w dumpdev=c0b65800 or whatever combination will > either result in `nothing written' or `symbol not found'. > > I am obviously doing something wrong. Help appreciated. Just do a "w dumpdev 0xc0b65800". You do need the 0x prefix, something I tried to hint at with the printout of show disk ;) > -- > Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] > Documentation nutter/C-rated Coder BSD: Technical excellence at its best > The BSD Programmer's Documentation Project > The descent to hell is easy... > -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message