From owner-freebsd-questions Fri Mar 19 11:54:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id AD7E81503D for ; Fri, 19 Mar 1999 11:54:15 -0800 (PST) (envelope-from roelof@eboa.com) Received: from charon.eboa.com (n669.telekabel.euronet.nl [194.134.130.170]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id UAA07611; Fri, 19 Mar 1999 20:53:53 +0100 (MET) Received: from eboa.com (roelof [10.0.0.2]) by charon.eboa.com (8.8.8/8.8.8) with ESMTP id UAA23525; Fri, 19 Mar 1999 20:53:02 +0100 Message-ID: <36F2ABBF.9B789EDB@eboa.com> Date: Fri, 19 Mar 1999 20:55:43 +0100 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Greg Lehey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Have crashed, won't travel References: <19990304095813.I441@lemis.com> <36DDEFFD.A4DB4978@eboa.com> <19990304130126.B441@lemis.com> <36DE0352.E99BCB70@eboa.com> <19990316174710.H429@lemis.com> <36EE54A4.8DC53017@eboa.com> <19990317093436.G429@lemis.com> <36EFC56A.ACBFB0A7@eboa.com> <19990318100818.L429@lemis.com> <36F1BDBB.E9E4F323@eboa.com> <19990319150941.U429@lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > > They're not superfluous. You're manipulating the structure of a block > device, and you should use the character device for that. Could you run that by me again. If /dev/wd0s1g is the device holding the structure I need to manipulate then what is the device I should give as parameter to fsdb? > > The man page doesn't mention it. > > I read: > > Fsdb opens fsname (usually a raw disk partition) and runs a > command loop allowing manipulation of the file system's inode > data. > > In case it's not clear, a raw partition and a character device mean > this same thing in this context. It wasn't and still isn't. A TTY device is a character device and a disk driver a block device. And if it is the same then why give that error message/warning? I'm probably grossly oversimplifying things but I'm using my unix systems to do work for me. Not vice versa . > > This message sounds like a warning that you're about to do something > > quite foolish. > > It is :-) Should then the man page not clarify such a folly? > Because it's a symlink: > > $ ls -l /etc/termcap > lrwxrwxrwx 1 root wheel 23 Sep 28 1996 /etc/termcap -> /usr/share/misc/termcap Should've looked better. Still, is not fsdb intended for or primarily used in single user mode. I.e. with most fs's unmounted? > I suppose you could argue that; if you want to, send-pr is your > friend. I'm not feeling that argumentative yet . As well as not too sure of myself. After all, my simplistic outlook on devices has just received an earth shattering blow. A simple programmer can only know so much, you know. Roelof -- Home is where the (@) http://eboa.com/ is. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message