[nycbug-talk] broke bootblocks

George Georgalis george
Wed Nov 2 21:28:32 EST 2005


I have a hosed system.

It has FreeBSD, WinXP and NetBSD on slice 1, 2 and 3; plus
Linux on some extended partitions. The last OS I installed
was WinXP. I don't really care about the Linux install,
but I'd like to get this thing booting slice 1, 2 or 3.

I tried "fdisk -B wd0" so I could boot into the other non XP
slices, but it only sees Linux as bootable, and that doesn't
work.

Below is the output of netbsd "fdisk wd0 ; disklabel wd0"
from the netbsd 2.0.2 cd.

How do I boot this thing?

// George


Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 158816, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 160086528

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

Partition table:
0: FreeBSD or 386BSD or old NetBSD (sysid 165)
    start 63, size 41929587 (20473 MB, Cyls 0-2610)
1: Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 41929650, size 41929650 (20473 MB, Cyls 2610-5220)
2: NetBSD (sysid 169)
    start 83859300, size 41929650 (20473 MB, Cyls 5220-7830), Active
3: Extended partition (sysid 5)
    start 125788950, size 34282710 (16740 MB, Cyls 7830-9964)
Extended partition table:
E0: Linux native (sysid 131)
    bootmenu: Linux
    start 125789013, size 546147 (267 MB, Cyls 7830-7864), Active
E1: Linux native (sysid 131)
    start 126335223, size 9767457 (4769 MB, Cyls 7864-8472)
E2: Linux native (sysid 131)
    start 136102743, size 5863662 (2863 MB, Cyls 8472-8837)
E3: Linux swap or Prime or Solaris (sysid 130)
    start 141966468, size 2200842 (1075 MB, Cyls 8837-8974)
E4: Linux native (sysid 131)
    start 144167373, size 787122 (384 MB, Cyls 8974-9023)
E5: Linux native (sysid 131)
    start 144954558, size 15117102 (7381 MB, Cyls 9023-9964)
Bootselector enabled, timeout 4 seconds.
# /dev/rwd0d:
type: unknown
disk: Max 80G 9/19/05
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 158816
total sectors: 160086528
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    390096  83859300     4.2BSD   1024  8192     0  # (Cyl.  83193*-  83580*)
 b:   4199328  84249396       swap                     # (Cyl.  83580*-  87746*)
 c:  41929650  83859300     unused      0     0        # (Cyl.  83193*- 124790*)
 d: 160086528         0     unused      0     0        # (Cyl.      0 - 158815)
 e:  35781984  88448724     4.2BSD   1024  8192     0  # (Cyl.  87746*- 123244*)
 f:  41929650  41929650      MSDOS                     # (Cyl.  41596*-  83193*)
 g:   1558242 124230708     4.2BSD   1024  8192     0  # (Cyl. 123244*- 124790*)
 i:    546147 125789013 Linux Ext2      0     0        # (Cyl. 124790*- 125332*)
 j:   9767457 126335223 Linux Ext2      0     0        # (Cyl. 125332*- 135022*)
 k:   5863662 136102743 Linux Ext2      0     0        # (Cyl. 135022*- 140839*)
 l:   2200842 141966468       swap                     # (Cyl. 140839*- 143023*)
 m:    787122 144167373 Linux Ext2      0     0        # (Cyl. 143023*- 143804*)
 n:  15117102 144954558 Linux Ext2      0     0        # (Cyl. 143804*- 158801*)




-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george at galis.org




More information about the talk mailing list