From owner-freebsd-questions@FreeBSD.ORG Fri May 9 18:05:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25BA2106564A for ; Fri, 9 May 2008 18:05:26 +0000 (UTC) (envelope-from itz@mushinsky.net) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id 49C338FC0C for ; Fri, 9 May 2008 18:05:25 +0000 (UTC) (envelope-from itz@mushinsky.net) Received: by fk-out-0910.google.com with SMTP id k31so1603232fkk.11 for ; Fri, 09 May 2008 11:05:24 -0700 (PDT) Received: by 10.78.173.5 with SMTP id v5mr1273388hue.119.1210354806945; Fri, 09 May 2008 10:40:06 -0700 (PDT) Received: by 10.78.135.2 with HTTP; Fri, 9 May 2008 10:40:06 -0700 (PDT) Message-ID: Date: Fri, 9 May 2008 13:40:06 -0400 From: "Isaac Mushinsky" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mounting linux partitions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2008 18:05:26 -0000 I have installed a linux distro on a partition of my machine (latest Mandriva i686, default installation). I only need it to use a piece of software for Nikon Coolscan IV film scanner (yes, sane works, but a cheap commercial package called vuescan has better interface and uses some hardware features like infrared channel that sane does not support, at least in current stable version). Now I would like to mount ext3 partition from FreeBSD at least for reading, or vice versa, UFS2 from linux for writing. With kernel option EXT2FS, I can $ mount -t etx2fs /dev/ad12s7 /linux but then if I do $ ls /linux I get a 'Bad file descriptor' for directory /linux. e2fsprogs are installed, and fsck.ext2 or fsck.ext3 think well of the partition. Also, df seems to show it correctly, with size and free space. I have FreeBSD 7.0 for amd64, Linux is 32-bit version. Also the partition is 'extended', i.e. fdisk on FreeBSD shows a DOS partition, but linux's fdisk shows a couple of ext3 partitions. However, /dev/ad12s7 does correspond to the correct linux partition and, when mounted, df shows the right size and utilization. Any advice how to share a partition between these 2 systems? I only want to use linux to scan the film and store the pictures on disk, then boot into FreeBSD where I spend most of my life as a user. I feel more comfortable pulling from FreeBSD rather than pushing to it because (1) it is easier for me to recompile FreeBSD kernel or install packages if necessary, and (2) I would mind much less a corruption on the linux partition than on UFS; I can simply reinstall the default installation for Linux, but FreeBSD has important data and is finely tuned for me over the years.