gpart cannot find ada0
dave jones
s.dave.jones at gmail.com
Fri Sep 10 02:50:24 UTC 2010
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
>> => 63 126189504 ada0 MBR (60G)
>> 63 81919089 1 freebsd [active] (39G)
>> 81919152 44255358 2 !12 (21G)
>> 126174510 15057 - free - (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="YES"
geom_mbr_load="YES"
msdosfs_iconv_load="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
=> 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.
More information about the freebsd-geom
mailing list