Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2002 19:55:18 -0700 (PDT)
From:      "M.T." <mbsd@pacbell.net>
To:        Tobias Roth <roth@iam.unibe.ch>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: vnconfig and VNIOCATTACH
Message-ID:  <20020918195404.I306-100000@atlas.home>
In-Reply-To: <20020918163850.GD23503@lara.unibe.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Sep 2002, Tobias Roth wrote:

> I use the following commands to create a plain file, make a filesystem on it and mount it:
>    vnconfig -T -S 128m -Z -s labels -c vn0 /usr/plainfile
>    chmod 600 /usr/plainfile
>    disklabel -r -w vn0 auto
>    disklabel -e vn0
>    newfs /dev/vn0c
>    mount /dev/vn0c /mnt/targetdir
>
> For mounting the device (for instance after a reboot):
>    vnconfig -e -s labels vn0 /usr/plainfile mountro=/mnt/targetdir
>
> And for disabling:
>    vnconfig -d vn0c /usr/plainfile mount=/mnt/targetdir
>
> 1) do I use these commands correctly? I basically just copied stuff from the manpages
> 2) after disabling, when I am trying to re-enable the device, I get
>    vnconfig: VNIOCATTACH: Device busy
> What am I doing wrong?

Try "vnconfig -u vn0" to unconfigure the device.

    $.02,
    /Mikko


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020918195404.I306-100000>