From owner-freebsd-questions@FreeBSD.ORG Fri Jan 25 23:45:06 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 BAAC157E for ; Fri, 25 Jan 2013 23:45:06 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ia0-x235.google.com (ia-in-x0235.1e100.net [IPv6:2607:f8b0:4001:c02::235]) by mx1.freebsd.org (Postfix) with ESMTP id 737B2129 for ; Fri, 25 Jan 2013 23:45:06 +0000 (UTC) Received: by mail-ia0-f181.google.com with SMTP id k25so1486481iah.26 for ; Fri, 25 Jan 2013 15:45:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2o/Zv746vNDKvfjKIK9tnuo+7t2hO1VKMdnxNOxJekY=; b=Bl+ica7G7yPdPhzADDiPvgfrcTqlJIlhghSWBUcjvmpG9g6gVW4+nexBnoi2OXNOd0 L0UHQB/hxBM4rvm9FdfsVF5WH4HOHc2+672IvbXfOwncfdylb08vQUvpV/QLIseHBgUp RYN/eK6Uy1GzuHF8x8P+R0wrv2NOoM654okEOrmCBcHXFHvQ3YwQWxnURM83N3ZWE9Wk 9A0Y+8I2SZMmvgKTHGKeHcV51YX+zx9d/iFwfIFIRI/zxplasR3wvvN0KiJeqLCMbcH9 ayS+5Ru31zjdZodNVg5mnchMj16bla/FLfYDMWQmE8zcHJQU5QiUuYRd7a+9NG+P/V6t HIkg== X-Received: by 10.50.100.170 with SMTP id ez10mr151012igb.16.1359157506084; Fri, 25 Jan 2013 15:45:06 -0800 (PST) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id ez8sm184282igb.17.2013.01.25.15.45.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 15:45:05 -0800 (PST) Message-ID: <510318FD.5070303@gmail.com> Date: Fri, 25 Jan 2013 17:45:01 -0600 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Mount Logical (ext2fs) Partitions? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 25 Jan 2013 23:45:06 -0000 On 1/25/2013 5:36 PM, Walter Hurry wrote: > 9.1 on x86_64. > > No doubt this question has been asked before, but how do I mount logical > partitions (e2fs) under FreeBSD? I have checked the handbook, and > DuckDuckGo'ed, but without finding anything useful. > > The third slice on my first disk is a physical one, and will mount > happily under FreeBSD. > > From /etc/fstab: > > /dev/ada0s3 /Mail ext2fs rw 0 0 > > But I have a couple of logical partitions (also ext2fs) in the fourth > slice, which I have been trying, unsuccessfully, to mount. > > For information, here is the BSD view of the disk: > > $ sudo fdisk > ******* Working on device /dev/ada0 ******* > parameters extracted from in-core disklabel are: > cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 131 (0x83),(Linux native) > start 2048, size 24576000 (12000 Meg), flag 0 > beg: cyl 0/ head 32/ sector 33; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 24578064, size 44040150 (21503 Meg), flag 80 (active) > beg: cyl 1023/ head 255/ sector 63; > end: cyl 1023/ head 255/ sector 63 > The data for partition 3 is: > sysid 131 (0x83),(Linux native) > start 68618240, size 958464 (468 Meg), flag 0 > beg: cyl 1023/ head 254/ sector 63; > end: cyl 1023/ head 254/ sector 63 > The data for partition 4 is: > sysid 5 (0x05),(Extended DOS) > start 69577576, size 243002520 (118653 Meg), flag 0 > beg: cyl 1023/ head 254/ sector 63; > end: cyl 1023/ head 254/ sector 63 > $ > > Now here's how Linux sees it: > > $ sudo fdisk -l /dev/sda > > Disk /dev/sda: 160.0 GB, 160041885696 bytes, 312581808 sectors > Units = sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x38d5b517 > > Device Boot Start End Blocks Id System > /dev/sda1 2048 24578047 12288000 83 Linux > /dev/sda2 * 24578064 68618213 22020075 a5 FreeBSD > /dev/sda3 68618240 69576703 479232 83 Linux > /dev/sda4 69577576 312580095 121501260 5 Extended > /dev/sda5 94158848 112590847 9216000 83 Linux > /dev/sda6 112592896 118736895 3072000 82 Linux swap / > Solaris > /dev/sda7 118738944 159698943 20480000 83 Linux > /dev/sda8 159700992 241620991 40960000 83 Linux > /dev/sda9 241623040 270299135 14338048 83 Linux > /dev/sda10 270301184 312580095 21139456 83 Linux > /dev/sda11 69580800 94156799 12288000 83 Linux > > Partition table entries are not in disk order > $ > > Can anyone provide a pointer please? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > What do /dev and the output of dmesg look like? It looks like linux fdisk is hiding the fact that you have to cheat the bios to get more than four partitions with MBR partitioning.