Date: Fri, 10 Sep 2010 10:50:22 +0800 From: dave jones <s.dave.jones@gmail.com> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-geom@freebsd.org Subject: Re: gpart cannot find ada0 Message-ID: <AANLkTikhH83CZWMnJsU%2BwRk6FLMG-VSkjxg6A4voyxvj@mail.gmail.com> In-Reply-To: <i6aias$h9m$1@dough.gmane.org> References: <AANLkTik2GZThmVuFiaH3tMYT5r9Vr0NF37GdeTjGUYi2@mail.gmail.com> <20100909085007.00001b09@unknown> <AANLkTikUGXG%2BFKNbY2%2BdtzLQpDpXqL4-fyM=wwbiDzP0@mail.gmail.com> <i6aias$h9m$1@dough.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <ADATA XPG SSD 64GB J090310> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikhH83CZWMnJsU%2BwRk6FLMG-VSkjxg6A4voyxvj>