Re: kern.geom.debugflags changes?

From: Emanuel Strobl <Emanuel.strobl_at_gmx.net>
Date: Fri, 12 Aug 2005 22:38:45 +0200
Am Freitag, 12. August 2005 22:34 CEST schrieb Scot Hetzel:
> On 8/12/05, Emanuel Strobl <Emanuel.strobl_at_gmx.net> wrote:
> > Hello,
> >
> > I tried to add a gpt partition to my system drive, but even after
> > setting kern.geom.debugflags to 16 it tells me:
> > cale:/home/harry#89: gpt add -i 9 -s 768000 -t ufs ad0s2
> > gpt add: unable to open device 'ad0s2': Operation not permitted
> >
> > Arrrghhh, gpt is so nice, I want to make use of it! Especially on
> > running systems!
>
> The  problem is that you are using ad0s2 when you should be using ad0.

No, I have only one disk inside my i386 box. So I need gpt inside a slice 
to boot from that disk.
Layout:

The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 1703457 (831 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 665/ head 15/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 1703520, size 82155024 (40114 Meg), flag 0
        beg: cyl 666/ head 0/ sector 1;
        end: cyl 248/ head 15/ sector 63
The data for partition 3 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
    start 83859300, size 41929650 (20473 Meg), flag 0
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 125788950, size 30507435 (14896 Meg), flag 0
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63

cale:/home/harry#96: bsdlabel ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   200000       16    4.2BSD     1024  8192 25008
  b:  1503441   200016      swap
  c:  1703457        0    unused        0     0         # "raw" part, don't 
edit

cale:/home/harry#97: gpt -r show ad0s2
     start      size  index  contents
         0         1         PMBR
         1         1         Pri GPT header
         2        32         Pri GPT table
        34   1572864      1  GPT part - FreeBSD UFS/UFS2
   1572898   3145728      2  GPT part - FreeBSD UFS/UFS2
   4718626  20971520      3  GPT part - FreeBSD UFS/UFS2
  25690146   2097152      4  GPT part - FreeBSD UFS/UFS2
  27787298    524288      5  GPT part - FreeBSD UFS/UFS2
  28311586  20971520      6  GPT part - FreeBSD UFS/UFS2
  49283106    524288      7  GPT part - FreeBSD UFS/UFS2
  49807394  32347597
  82154991        32         Sec GPT table
  82155023         1         Sec GPT header

Thanks,

-Harry

Received on Fri Aug 12 2005 - 18:39:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:41 UTC