From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 21:27:55 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 9A0C519B for ; Sun, 20 Jan 2013 21:27:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 5349D690 for ; Sun, 20 Jan 2013 21:27:55 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r0KLRk0Z045150; Sun, 20 Jan 2013 14:27:46 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r0KLRjss045147; Sun, 20 Jan 2013 14:27:46 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 20 Jan 2013 14:27:45 -0700 (MST) From: Warren Block To: Ralf Mardorf Subject: Re: ext3 file system In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sun, 20 Jan 2013 14:27:46 -0700 (MST) Cc: FreeBSD quest 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 21:27:55 -0000 On Sun, 20 Jan 2013, Ralf Mardorf wrote: > 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. 'gpart show -l' shows GPT labels, but that only works on a GPT disk. This disk is clearly MBR. If ext3 filesystem labels show up, they would be under /dev/ext2fs. See glabel(8).