From owner-freebsd-fs@freebsd.org Mon Nov 14 13:47:19 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 833BDC3F878 for ; Mon, 14 Nov 2016 13:47:19 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5775D144E for ; Mon, 14 Nov 2016 13:47:18 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A269A203A9 for ; Mon, 14 Nov 2016 08:47:16 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 14 Nov 2016 08:47:16 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=aXx2KZWW40kF/8j fltFOOvv2THY=; b=kwUDgaJDkXMP+9qpp6dmtX60CHixJbFCdHTCv3Qav9GAIc3 XKveUx38OSQU/4o9oulqnwGMDHsAeXf/qRZTyRXt5rK6to98c7ka7Wi1bsvjxQMW dWTdGFUVOMqEtncdd9uUnquaLtHJBoLiBiv7kKQHv//Iq2dC8RcpEFRChCY0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=aXx2KZWW40kF/8jfltFOOvv2THY=; b=b5deS2dF3jqdo7y6B84Z 1RX9+Ocwgx8PgzId90qLpORbNqOyoh+BKWuLsyxtDvflILmDEU9Tj5MYBPfjhekP 3Ux44vGhYTRsslo0JSLUh54yGPXSoUiicjRgBgoKyilyXaL6vyadzdBUm3JdZXFg CnchoYhz7G/RYLfNTLvW/pc= X-ME-Sender: X-Sasl-enc: qczems4BvnxYtU7SnEUQQCbAhlExaqr/WwuLBL+oga3D 1479131236 Received: from pumpkin.growveg.org (pumpkin.growveg.org [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E5187E077 for ; Mon, 14 Nov 2016 08:47:16 -0500 (EST) Subject: Re: mounting an ubuntu 14.04 bhyve image as a filesystem for editing References: <20161110152612.GH68652@e-new.0x20.net> <20161111160909.GA67078@in-addr.com> To: freebsd-fs@freebsd.org From: tech-lists Message-ID: <98b6d319-9e0a-568d-8d78-067b121615fa@zyxst.net> Date: Mon, 14 Nov 2016 13:47:15 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161111160909.GA67078@in-addr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 13:47:19 -0000 On 11/11/2016 16:09, Gary Palmer wrote: Hi Gary, thanks for replying > Do you have a /dev/fuse? I didn't!! but now I have. (I thought installing ext4fuse would have taken care of that but apparently not). > Try: > > file -s /dev/md2s1 > file -s /dev/md2s2 > file -s /dev/md2s5 root@host0:/# file -s /dev/md2 /dev/md2: DOS/MBR boot sector root@host0:/# file -s /dev/md2s1 /dev/md2s1: DOS/MBR boot sector root@host0:/# file -s /dev/md2s2 /dev/md2s2: DOS/MBR boot sector root@host0:/# file -s /dev/md2s5 /dev/md2s5: Linux/i386 swap file (new style), version 1 (4K pages), size 2096639 pages, no label, UUID=1d172599-0625-4906-918f-c62deb4ec497 > > If I understand correctly, the default Ubuntu partitioning is for > partition 1 (s1) to be the boot/root partition, partition 2 to be > an "extended" partition which contains partition 5, the swap partition. > > It's also possible you used LVM and that could hide the paritions inside > other ones. FreeBSD can parse LVM if you load the geom_linux_lvm > kernel module. root@host0:/# ext4fuse /dev/md2 /mnt <-- just in case Partition doesn't contain EXT4 filesystem root@host0:/# ext4fuse /dev/md2s1 /mnt <--WORKS!! but read-only root@host0:/# umount /mnt root@host0:/# ext4fuse /dev/md2s2 /mnt Partition doesn't contain EXT4 filesystem root@host0:/# ext4fuse /dev/md2s5 /mnt Partition doesn't contain EXT4 filesystem Is there a way of mounting an ext4 fs for editing (i.e RW) on freebsd? many thanks, -- J.