NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Disk label problem?



As long as it's the only disk attached this boots up and works fine:

unit2$ doas gpt show wd0
gpt: /dev/rwd0: bogus map current=mbr partition new=secondary gpt header
unit2$ doas fdisk wd0
Disk: /dev/rwd0
NetBSD disklabel disk geometry:
cylinders: 465141, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 468862128, bytes/sector: 512

BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 468862128

Partitions aligned to 2048 sector boundaries, offset 2048

Partition table:
0: EFI system partition (sysid 239)
    start 2048, size 262144 (128 MB, Cyls 0-16/113/33)
1: NetBSD (sysid 169)
    bootmenu: NetBSD
    start 266240, size 468595888 (228807 MB, Cyls 16/146/3-29185/80/63), Active
        PBR is not bootable: All bytes are identical (0x00)
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
First active partition: 1
Drive serial number: 0 (0x00000000)
unit2$ 

But if there is any other drive attached, that other drive gets mounted as root (apparently).

I changed all the occurrences of '/dev/wd0' in /etc/fstab to 'ROOT.' thinking that would fix it, but it doesn't. I tried "gpt recover" but that didn't change the result of "gpt show".

Any suggestions how to fix in place? Or should I just wipe it and start over (not much worth saving on it, just rc.conf and my $HOME dot files and a few pkg's).

-- 
Ted Spradley <tsprad%talent-free-studios.com@localhost>


Home | Main Index | Thread Index | Old Index