From owner-freebsd-geom@FreeBSD.ORG Fri Sep 10 02:50:24 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE2321065670 for ; Fri, 10 Sep 2010 02:50:23 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9DA5F8FC0A for ; Fri, 10 Sep 2010 02:50:23 +0000 (UTC) Received: by vws7 with SMTP id 7so2348700vws.13 for ; Thu, 09 Sep 2010 19:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Xk0aaY/KQX6GGZ8T0fawGnv3y33m0/zCtEqkQRW+svI=; b=ARVtzCYoGqTi+0kCiHO3GvfUTGAFZfLpp7FCYCPlHyFB3YPa4Zbfrz/+Nj9yXK0pxC fZ8n4PGCCnCvXhb3tGWTVBrVkj1TCLerV+rciVEMqLBmJBiSZJT5sa7iMvhK5dSj2gOo Y5mAC9EPi60oeKoaDD4576bZBqxlAQtsrTgBo= 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:content-transfer-encoding; b=KI/Jdipa1aymxOaTD0KRXwfO3nzjuAJKkJ5rsIpXm4V3TBBU+7a8y97nMhL49C2uZ2 KiY+gABOzn1LCbeSOSK2gs1An+XtjXIawmGu9VH4qScw52kQLm8z07dRxYPpa8z6MpCE jzr9ZlLAUEVFNU0t+lFggXiZ74WY/uIh8SoV8= MIME-Version: 1.0 Received: by 10.220.49.16 with SMTP id t16mr82534vcf.199.1284087022602; Thu, 09 Sep 2010 19:50:22 -0700 (PDT) Received: by 10.220.202.138 with HTTP; Thu, 9 Sep 2010 19:50:22 -0700 (PDT) In-Reply-To: References: <20100909085007.00001b09@unknown> Date: Fri, 10 Sep 2010 10:50:22 +0800 Message-ID: From: dave jones To: Ivan Voras Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@freebsd.org Subject: Re: gpart cannot find ada0 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 02:50:24 -0000 On Thu, Sep 9, 2010 at 8:01 PM, Ivan Voras wrote: > On 09/09/10 11:23, dave jones wrote: >> >> Hi Bruce, >> >> Thanks for the reply. I tried to run gpart create -s mbr ada0, I got: >> gpart: geom 'ada0': Operation not permitted > > hmmm.... > >> Then I umount some partitions which are mounted on ada0, gpart shows >> partitions: > > HMMMMMM..... > > You did just try to erase your existing partitions on ada0 with "gpart > create", did you? :) > >> # gpart show ada0 >> =3D> =A0 =A0 =A0 =A063 =A0126189504 =A0ada0 =A0MBR =A0(60G) >> =A0 =A0 =A0 =A0 =A063 =A0 81919089 =A0 =A0 1 =A0freebsd =A0[active] =A0(= 39G) >> =A0 =A081919152 =A0 44255358 =A0 =A0 2 =A0!12 =A0(21G) >> =A0 126174510 =A0 =A0 =A015057 =A0 =A0 =A0 =A0- free - =A0(7.4M) >> >> >> I don't know why? Did I miss something? Would you tell me, thanks. > > I think you should first send a list of changes to the kernel and loaded > kernel modules, as it looks like you changed something. Then, send the > output of "mount" command with the partitions mounted. Ok, in /boot/loader.conf, I have added the following: ahci_load=3D"YES" geom_mbr_load=3D"YES" msdosfs_iconv_load=3D"YES" # dmesg | grep ada0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 512bytes) ada0: 61616MB (126189568 512 byte sectors: 16H 63S/T 16383C) # mount /dev/ad0s1a on / (ufs, NFS exported, local) devfs on /dev (devfs, local, multilabel) procfs on /proc (procfs, local) tmpfs on /tmp (tmpfs, local) devfs on /var/named/dev (devfs, local, multilabel) /dev/ada0s1 on /test1 (ufs, local, soft-updates) /dev/ada0s2 on /test2 (msdosfs, NFS exported, local) # gpart show ada0 gpart: No such geom: ada0. # umount /test1 && umount /test2 # gpart show ada0 =3D> 63 126189504 ada0 MBR (60G) 63 81919089 1 freebsd [active] (39G) 81919152 44255358 2 !12 (21G) 126174510 15057 - free - (7.4M) My question is why should I umount /test1 and /test2 then gpart can show ada0 partition. Any idea? Thank you very much! Regards, Dave.