From owner-freebsd-questions@FreeBSD.ORG Sat May 10 11:06:17 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 917A6106567A for ; Sat, 10 May 2008 11:06:17 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 3F21C8FC26 for ; Sat, 10 May 2008 11:06:16 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so933114ywe.13 for ; Sat, 10 May 2008 04:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=9zYtrDIlrjQgjx2mnZvW/weJJNBIMbw+EH6Qxx5sSPk=; b=lXa6AepuEBTN3vaGUnCWXVKzj1+FVjiEwHfn3q9dEa8FKMzLXebjX0vOwfKFtk7fkaLdGm0+bAmifqyNV4KjfSZaj3pTLC4A29YmJ/wdDy8ljcvKJJmkeSkHcX9I4zLmizYTvavuizhhdd7ESAp9radaQPvwkntiv3ZulhR0qt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=prqbs1s9Cd6Doc535Imj/6SrxunF40eJT2PoU83IGpfE8LdtrC7OZTNBX/eTyCIbwkqqNs+wFVQsLRSsdsvFOItOEzj98lhy+jf6jaX5dULJWiB3jz2FhKmof9OUeHTzqsC+9KQ6DD0CFfARrwSpUmQx9MLwsmRzKrOgfaQd1DY= Received: by 10.150.146.19 with SMTP id t19mr1928802ybd.226.1210417571989; Sat, 10 May 2008 04:06:11 -0700 (PDT) Received: from 143-115-18-190.fibertel.com.ar ( [190.18.115.143]) by mx.google.com with ESMTPS id 6sm10209071ywn.0.2008.05.10.04.06.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 May 2008 04:06:10 -0700 (PDT) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Sat, 10 May 2008 08:06:06 -0300 User-Agent: KMail/1.9.9 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805100806.06105.gnemmi@gmail.com> Subject: Re: 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: Sat, 10 May 2008 11:06:17 -0000 On Friday 09 May 2008 14:40:06 Isaac Mushinsky wrote: > 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 I mounted UFS2 paritions under Linux like this: [gonzalo@inferna ~]$ grep fbsd7 /etc/fstab /dev/sda9 /mnt/fbsd7 ufs ufstype=ufs2,user,auto,ro, 1 2 /dev/sda11 /mnt/fbsd7/var ufs ufstype=ufs2,user,auto,ro, 1 2 /dev/sda12 /mnt/fbsd7/tmp ufs ufstype=ufs2,user,auto,ro, 1 2 /dev/sda13 /mnt/fbsd7/usr ufs ufstype=ufs2,user,auto,ro, 1 2 [gonzalo@inferna ~]$ > $ 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. Same problem in here .. Same FS ... Using the same line ... I couldn't figure out a solution .. I either get a 'Bad file descriptor' for directory /linux' or $ ls /linux No such file or directory > 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. FreeBSD 7.0 i386 and Linux i386 in here > 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. Same in here .. I've got all of my music on a ext3 partition and pdfs and pictures on another ext3 partition .. I only need to mount those two in order to get FreeBSD's Amarok access to my music collection. Any help will be greatly apprecciated .. Really -- Blessings Gonzalo Nemmi