From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 7 21:22:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71B0116A4CE for ; Thu, 7 Apr 2005 21:22:03 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id F40D543D41 for ; Thu, 7 Apr 2005 21:22:02 +0000 (GMT) (envelope-from opensource.enthousiat@gmail.com) Received: by wproxy.gmail.com with SMTP id 37so844352wra for ; Thu, 07 Apr 2005 14:22:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=MHLZ9ytBVkaQgv992NSHNFMCflzqwZ535SPZKU5jnTVRkLwZoy9q2LLsz7oKQjbkynFkCKfMcfNpmzrEGhBfKshQGZaAmP2ISNXfczzPLINBe3FjSysRi6bC+sBiZ8UTmvQhOEqgDtVUlCUtqs3WasPxB3AUfp384UJhUvPG42Q= Received: by 10.54.95.8 with SMTP id s8mr270895wrb; Thu, 07 Apr 2005 14:22:02 -0700 (PDT) Received: by 10.54.49.28 with HTTP; Thu, 7 Apr 2005 14:22:02 -0700 (PDT) Message-ID: <37e13166050407142224e5057e@mail.gmail.com> Date: Thu, 7 Apr 2005 17:22:02 -0400 From: Aziz KEZZOU To: Kip Macy In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <4244A32C.4090603@elischer.org> cc: freebsd-hackers@freebsd.org cc: Julian Elischer Subject: Re: running freebsd in qemu using the "-nographic" option ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aziz KEZZOU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 21:22:03 -0000 > > >So basically what I want to do now is mount the freeBSD image in a > > >loopback and modify the boot.conf file directly. Anyone knows how to > > >do this under linux (2.6 if relevant) ? BSD seems to have a "weird" > > >way of organizing the disk. Which file system shoud I support ? > > I would just do it on FreeBSD - man mdconfig. Last I looked (years ago) the UFS > support on linux was not actively maintained and I would be very surprised if > they have UFS2 support. I've had to create my own root images for doing work on > xen so I know it works just fine. If you insist on doing it on Linux, the > command is losetup. > to bind: > > losetup /dev/loop0 > to unbind: > > losetup -d /dev/loop0 Hi, I am now trying to do it now on a FreeBSD machine so I did : su-2.05b#mdconfig -a -t vnode -f freebsd.img => response : "md0" Then I mounted successfully : /dev/md0s1d (/var), /dev/md0s1e(/tmp) and /dev/md0s1f (/usr). But I can not mount /dev/md0s1a which is the root directory where "/boot/boot.conf" is located : su-2.05b# mount /dev/md0s1a /mnt/a mount: /dev/md0s1a: Operation not permitted Any hint ? -aziz