As I think that b comes reserved, I would play around g eventually.

Starting by an other system is undubtly more easy and without using g you can 
fix the broken system by paxing a by pax -w, fixing the disklabel, then newfs 
a, and paxing back by pax -r -pe to a.

If you have only that system, more or less (at your own risk only after dbl 
checked the suggested list):

1. I would pax -w all the content of a to /home/mya.pax;
2. I would umount /usr/X11R6
3. I would copy content of g to /usr/X11R6/;
4. I would free g;
5. I would pax -r -pe content of mya.pax into g;
6. I would edit /etc/fstab: mounting g to /, commenting the mount of a;
7. I would restart the system;
8. I would fix the label of a and free a;
9. I would pax -r -pe content of /home/mya.pax into a;
10. I would edit /etc/fstab: uncommenting the mount of a to /, commenting the 
mount of g;
11. I would restart the system;
12. I would free g;
13. I would move content of f/X11R6 back to g.

Pls dbl check to work on the correct partitions in both the cases.

Hope is helpful.

--
dan
pls connect by [email protected]
or surf my bsd blog at bsd.numode.eu

From: Zeljko Jovanovic <[email protected]>
To: dan <[email protected]>; [email protected]
Date: Jun 15, 2026 19:09:13
Subject: Re: Sysupgrade failing on a system without MBR/GPT (disklabel directly 
on disk)

> Here is the file containing the first 2048 bytes of the disk,
> attached to this message.
> 
> This is the output of "disklabel sd0" command:
> 
> # /dev/rsd0c:
> type: SCSI
> disk: SCSI disk
> label: Virtual disk
> duid: f5c72aedee148bac
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 7832
> total sectors: 125829120
> boundstart: 0
> boundend: 125829120
> 
> 16 partitions:
> #                size           offset  fstype [fsize bsize   cpg]
>    a:          2097152                0  4.2BSD   2048 16384 12960 # /
>    b:          8388608          2097152    swap                    # none
>    c:        125829120                0  unused
>    d:          2097152         10485760  4.2BSD   2048 16384 12960 # /tmp
>    e:         69206016         12582912  4.2BSD   2048 16384 12960 # /var
>    f:         10485760         81788928  4.2BSD   2048 16384 12960 # /usr
>    g:          2097152         92274688  4.2BSD   2048 16384 12960 # 
> /usr/X11R6
>    h:         20971520         94371840  4.2BSD   2048 16384 12960 # 
> /usr/local
>    k:         10485760        115343360  4.2BSD   2048 16384 12960 # /home

Reply via email to