From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 23:41:43 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 26754DE1 for ; Sun, 20 Jan 2013 23:41:43 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor1.peak.org (redcondor1.peak.org [69.59.192.54]) by mx1.freebsd.org (Postfix) with ESMTP id 027F7B75 for ; Sun, 20 Jan 2013 23:41:42 +0000 (UTC) Received: from zmail-mta01.peak.org ([207.55.16.111]) by redcondor1.peak.org ({34b3fc79-8c76-4cfb-a4c0-c941747cf3b5}) via TCP (outbound) with ESMTP id 20130120233800193 for ; Sun, 20 Jan 2013 23:38:00 +0000 X-RC-FROM: X-RC-RCPT: Received: from bonsai.localnet (rad0.peak.org [69.59.192.40]) by zmail-mta01.peak.org (Postfix) with ESMTPSA id ADD8B491318 for ; Sun, 20 Jan 2013 15:37:59 -0800 (PST) Received: from oak.localnet (oak.localnet [192.168.193.34]) by bonsai.localnet (Postfix) with ESMTP id 6EABF3D5B4 for ; Sun, 20 Jan 2013 15:37:58 -0800 (PST) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 2F754C593 for ; Sun, 20 Jan 2013 15:37:58 -0800 (PST) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id r0KNbwDa005384; Sun, 20 Jan 2013 15:37:58 -0800 (PST) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: ext3 file system References: Mail-Followup-To: freebsd-questions@freebsd.org Date: Sun, 20 Jan 2013 15:37:57 -0800 In-Reply-To: (Ralf Mardorf's message of "Sun, 20 Jan 2013 21:48:29 +0100") Message-ID: <87622rfmsq.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2013 23:41:43 -0000 "Ralf Mardorf" writes: > Hi :) > > is it possible to mount Linux ext3 file systems with fstab by label? > Before I run mount -a /mnt/dump had the same permissions, owner and > group as /mnt/archlinux has got. Is it possible to keep this? Both are > Linux ext3 fs. Mounting without a label does work. > > root@freebsd:/usr/home/rocketmouse # cat /etc/fstab > # Device Mountpoint FStype Options Dump Pass > /dev/ad4s1b none swap sw 0 0 > /dev/ad4s1a / ufs rw 1 1 > /dev/ad4s1e /tmp ufs rw 2 2 > /dev/ad4s1f /usr ufs rw 2 2 > /dev/ad4s1d /var ufs rw 2 2 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > #proc /proc procfs rw 0 0 > /dev/ada0s8 /mnt/dump ext2fs rw 0 0 > #/dev/label/dump /mnt/dump ext2fs rw 0 0 > #/dev/label/archlinux /mnt/archlinux ext2fs rw 0 0 > > root@freebsd:/usr/home/rocketmouse # ls -l /mnt > total 6 > drwxr-xr-x 2 rocketmouse wheel 512 Jan 20 20:51 archlinux > drwxrwxrwx 2 root wheel 4096 Jan 20 20:09 dump > root@freebsd:/usr/home/rocketmouse # ls -l / | grep mnt > drwxr-xr-x 4 root wheel 512 Jan 20 20:51 mnt > > I still search the Internet, but had bad luck until now. > > If I run 'gpart show -l' I can't see what /dev archlinux is, it > doesn't show Linux labels, so I need to restart and boot Linux to see > at what position it is, to figure out what /dev/ada*s* archlinux is. You should be able to see any labels the kernel knows about with 'glabel status', but my experience is that not all labels show up. You can check ext2/3 labels with e2label from the e2fsprogs port/package. My experience is that labels in /etc/fstab work fine, but they may or may not be visible in /dev or with glabel if they are not in fstab. -- Carl Johnson carlj@peak.org