From owner-freebsd-questions@FreeBSD.ORG Sat Jan 26 19:55:46 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 54466585 for ; Sat, 26 Jan 2013 19:55:46 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1230BD49 for ; Sat, 26 Jan 2013 19:55:45 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TzBr6-0007AR-LX for freebsd-questions@freebsd.org; Sat, 26 Jan 2013 20:56:00 +0100 Received: from cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com ([86.21.186.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jan 2013 20:56:00 +0100 Received: from walterhurry by cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jan 2013 20:56:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Walter Hurry Subject: Re: Mount Logical (ext2fs) Partitions? Date: Sat, 26 Jan 2013 19:55:30 +0000 (UTC) Lines: 60 Message-ID: References: <87fw1o5y6o.fsf@oak.localnet> <87bocb6eo9.fsf@oak.localnet> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) 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 19:55:46 -0000 On Sat, 26 Jan 2013 09:24:06 -0800, Carl Johnson wrote: > 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? Sorry, I didn't take advantage of that earlier piece of advice. Here it is: $ file -s /dev/ada0s8 /dev/ada0s8: no read permission $ ls -l /dev/ada0s8 crw-r----- 1 root operator 0, 102 26 Jan 18:09 / dev/ada0s8 $ sudo file -s /dev/ada0s8 /dev/ada0s8: Linux rev 1.0 ext4 filesystem data,UUID=d93b0074-04ca-4e5d-bee9-dfd85bce0b14, volume name "u01" (extents) (large files) (huge files) $ So it's my stupid mistake. I could have sworn it was ext2, but it was ext4. Sorry for all the noise! However, I'm glad you have helped, and that I have learned a little bit about Linux partitions as FreeeBSD slices. It was empty, so I just reformatted it as ext2, and hey presto; all is right with the world. Thanks again.