From owner-freebsd-questions@FreeBSD.ORG Tue May 17 15:46:22 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7057106566C for ; Tue, 17 May 2011 15:46:22 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 702EC8FC0C for ; Tue, 17 May 2011 15:46:22 +0000 (UTC) Received: by yxl31 with SMTP id 31so255588yxl.13 for ; Tue, 17 May 2011 08:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PFUtiPjaH0cOfkk8rYxIuifjEAUx13Jed9DZdUOmx6A=; b=ffAMv8DkhOGULstziRyjNJNGkDLTnVR86Ibo01+8zGMlH9XCmb+OFZAqMYmNmvCJEa A72gIoajKl1//7ACzh1Jz7cwZRoCZSgfpwQEpspDM7S1gCzDQqmqUQhHH4uQ/N2lKiUp 4O1MOogvI4nTCsybc4c9QNetA+Rd+JOuJ8/50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xKYTj5TRakRozFW8eBkmLPBUJAuauUzglZF1GC+IYOdDQhs9wIQNjjNq9pkLLRjUcm nzlPrlQjfoEVLC3AYdklWoxqTLwAQHjzh31mIlBuvA3QdNsh/d6qsWnfKFgzQdjV/LjQ m9HcUdmQkzT018s2zj6A32oaV7njC6wWo5TGM= MIME-Version: 1.0 Received: by 10.236.17.208 with SMTP id j56mr716592yhj.458.1305647181337; Tue, 17 May 2011 08:46:21 -0700 (PDT) Received: by 10.236.103.52 with HTTP; Tue, 17 May 2011 08:46:21 -0700 (PDT) In-Reply-To: <201105171540.36757.milu@dat.pl> References: <201105171540.36757.milu@dat.pl> Date: Tue, 17 May 2011 16:46:21 +0100 Message-ID: From: krad To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: n dhert , freebsd-questions@freebsd.org Subject: Re: adding new disk >2TB, gpt? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 15:46:22 -0000 On 17 May 2011 14:40, Maciej Milewski wrote: > On Tuesday 17 of May 2011 15:19:40, n dhert wrote: > > Thanks for your answer! > > I am trying out gpart. > > On an old PC with 38 GB disk, I have triple boot Windows, OpenSuSE and > > FreeBSD-8.2. > > I created an unalloated space of 973 MB at the end. > > To see the actuel disk geometry, I used FreeBSDs sysinstall > > # sysinstall > > Disk name: ad0 FDISK Partition > > Editor > > DISK Geometry: 79780 cyls/16 heads/63 sectors = 80418240 sectors > (39266MB) > > Offset Size(ST) End Name PType Desc Subtype > > Flags > > 0 63 62 - 12 unused 0 > > 63 22233897 22233959 ad0s1 4 NTFS/HPFS/QNX 7 > > 22233960 29639736 51873695 ad0s3 8 freebsd 165 > > 51873696 189 51873884 - 12 unused 0 > > 51873885 26539380 78413264 ad0s2 4 extended DOS, LBA > 15 > > 78413265 1992060 80405324 ad0s4 4 ext2fs 131 > > 80405325 12915 80418239 - 12 unused 0 > > > > ad0s1 is my Windows, > > ad0s2 is the extended partition where SuSE resides (swap and / partition) > > ad0s3 is my FreeBSD-8.2 (with sections a, e, f, d for /, /tmp, /usr, > /var) > > and ad0s4 is the new freed space of 1992060 sectors = 973 MB > > > > I tried > > # gpart create -s gpt ad0s4 > > gpart: provider: Device not configured > > ( gpart create -s gtp /dev/ad0s4 : same error) > > > > # gpart show > > => 63 80418177 ad0 MBR (38G) > > 63 22233897 1 ntfs (11G) > > 22233960 29639736 3 freebsd [active] (14G) > > 51873696 189 - free - (95K) > > 51873885 26539380 2 !15 (13G) > > 78413265 1992060 4 !131 (973M) > > 80405325 12915 - free - (6.3M) > > > > => 0 26539380 ad0s2 EBR (13G) > > 0 2072385 1 !130 (1.0G) > > 2072385 18249840 32896 !131 (8.7G) > > 20322225 6152895 322576 !131 (2.9G) > > 26475120 64260 - free - (31M) > > > > => 0 29639736 ad0s3 BSD (14G) > > 0 1048576 1 freebsd-ufs (512M) > > 1048576 1994384 2 freebsd-swap (974M) > > 3042960 3092480 4 freebsd-ufs (1.5G) > > 6135440 1048576 5 freebsd-ufs (512M) > > 7184016 22455720 6 freebsd-ufs (11G) > > # gpart create -s gpt ad4 > > gpart: provider 'ad4': Invalid argument > > > > how do I address the 974 MB partition ??? > You can't create gpt table on top of existing MBR table. > If you want to use gpt you need to have clean hard drive for that(removed > all > partitions and destroy current table) > If you just want to add ad0s4 you should do gpart add ... > > Maciej > _______________________________________________ > 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" > sounds like you maybe using some kind of LUN to generate a 9 TB disk. If I have misunderstood this though and you are using the advanced format drives (generally satas above 1.5tb) then make sure you 4k align any partitions you create