From owner-freebsd-questions@FreeBSD.ORG Sat Jan 26 17:24:31 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9C1375DA for ; Sat, 26 Jan 2013 17:24:31 +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 4B8C489C for ; Sat, 26 Jan 2013 17:24:30 +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 20130126172408229 for ; Sat, 26 Jan 2013 17:24:08 +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 D095D491EC8 for ; Sat, 26 Jan 2013 09:24:07 -0800 (PST) Received: from oak.localnet (oak.localnet [192.168.193.34]) by bonsai.localnet (Postfix) with ESMTP id 27FBE3DB60 for ; Sat, 26 Jan 2013 09:24:07 -0800 (PST) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id EBFE7BC86 for ; Sat, 26 Jan 2013 09:24:06 -0800 (PST) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id r0QHO6S8095376; Sat, 26 Jan 2013 09:24:06 -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: Mount Logical (ext2fs) Partitions? References: <87fw1o5y6o.fsf@oak.localnet> Mail-Followup-To: freebsd-questions@freebsd.org Date: Sat, 26 Jan 2013 09:24:06 -0800 In-Reply-To: (Walter Hurry's message of "Sat, 26 Jan 2013 12:01:45 +0000 (UTC)") Message-ID: <87bocb6eo9.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: Sat, 26 Jan 2013 17:24:31 -0000 Walter Hurry writes: > On Fri, 25 Jan 2013 21:07:59 -0800, Carl Johnson wrote: > >> There is a package called 'linuxfdisk' that is just a FreeBSD >> implementation of the linux fdisk and will show you what the FreeBSD >> partitions/slices are. You can also use gpart in the base system to get >> the same information. The command 'gpart list ada0' will show the >> primary partitions, and the command 'gpart list ada0s4' should show the >> logical partitions inside of the extended partition. You can also use >> 'file -s' and possibly do read-only mounts to see exactly what they >> contain. The names will probably map out like linux, but the 'sda*' >> will be changed to 'ada0s*'. > > Thanks for the pointers. Here is the relevant part of the output from > 'gpart list ada0s4': > > 4. Name: ada0s8 > Mediasize: 41943040000 (39G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 162529280 > Mode: r0w0e0 > rawtype: 131 > length: 41943040000 > offset: 46143188992 > type: linux-data > index: 1430498 > end: 172043415 > start: 90121368 > > So I put into my /etc/fstab: > > /dev/ada0s8 /u01 ext2fs ro,noauto 0 0 > > But when I issue 'sudo mount /u01' I get: > > mount: /dev/ada0s8: Invalid argument > > > What am I doing wrong? I don't see anything wrong there. I use labels when possible, but that doesn't really change anything. Have you tried using 'file -s /dev/ada0s8' to see what the kernel thinks it is? -- Carl Johnson carlj@peak.org