Subject: Re: broke bootblocks
To: None <netbsd-users@netbsd.org>
From: Matt Egger <matt.egger@gmail.com>
List: netbsd-users
Date: 11/02/2005 22:01:34
------=_Part_7407_10702046.1130986894644
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'm sure there's a NetBSD solution, but not being too familar with the
bootloader (or BSD...still learning) I would go with a knoppix cd.

Install GRUB to the hard disk, boot NetBSD and reinstall the bootloader fro=
m
there.

Good luck,

-ME

On 11/2/05, George Georgalis <george@galis.org> wrote:
>
> 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@galis.org
>
>

------=_Part_7407_10702046.1130986894644
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'm sure there's a NetBSD solution, but not being too familar with the
bootloader (or BSD...still learning) I would go with a knoppix cd.<br>
<br>
Install GRUB to the hard disk, boot NetBSD and reinstall the bootloader fro=
m there.<br><br><div><span class=3D"gmail_quote">Good luck,<br>
<br>
-ME<br>
<br>
On 11/2/05, <b class=3D"gmail_sendername">George Georgalis</b> &lt;<a href=
=3D"mailto:george@galis.org">george@galis.org</a>&gt; wrote:</span><blockqu=
ote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204=
); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a hosed system.<br><br>It has FreeBSD, WinXP and NetBSD on slice 1, =
2 and 3; plus<br>Linux on some extended partitions. The last OS I installed=
<br>was WinXP. I don't really care about the Linux install,<br>but I'd like=
 to get this thing booting slice 1, 2 or 3.
<br><br>I tried &quot;fdisk -B wd0&quot; so I could boot into the other non=
 XP<br>slices, but it only sees Linux as bootable, and that doesn't<br>work=
.<br><br>Below is the output of netbsd &quot;fdisk wd0 ; disklabel wd0&quot=
;
<br>from the netbsd 2.0.2 cd.<br><br>How do I boot this thing?<br><br>// Ge=
orge<br><br><br>Disk: /dev/rwd0d<br>NetBSD disklabel disk geometry:<br>cyli=
nders: 158816, heads: 16, sectors/track: 63 (1008 sectors/cylinder)<br>
total sectors: 160086528<br><br>BIOS disk geometry:<br>cylinders: 1023, hea=
ds: 255, sectors/track: 63 (16065 sectors/cylinder)<br>total sectors: 16008=
6528<br><br>Partition table:<br>0: FreeBSD or 386BSD or old NetBSD (sysid 1=
65)
<br>&nbsp;&nbsp;&nbsp;&nbsp;start 63, size 41929587 (20473 MB, Cyls 0-2610)=
<br>1: Primary DOS with 32 bit FAT - LBA (sysid 12)<br>&nbsp;&nbsp;&nbsp;&n=
bsp;start 41929650, size 41929650 (20473 MB, Cyls 2610-5220)<br>2: NetBSD (=
sysid 169)<br>&nbsp;&nbsp;&nbsp;&nbsp;start 83859300, size 41929650 (20473 =
MB, Cyls 5220-7830), Active
<br>3: Extended partition (sysid 5)<br>&nbsp;&nbsp;&nbsp;&nbsp;start 125788=
950, size 34282710 (16740 MB, Cyls 7830-9964)<br>Extended partition table:<=
br>E0: Linux native (sysid 131)<br>&nbsp;&nbsp;&nbsp;&nbsp;bootmenu: Linux<=
br>&nbsp;&nbsp;&nbsp;&nbsp;start 125789013, size 546147 (267 MB, Cyls 7830-=
7864), Active
<br>E1: Linux native (sysid 131)<br>&nbsp;&nbsp;&nbsp;&nbsp;start 126335223=
, size 9767457 (4769 MB, Cyls 7864-8472)<br>E2: Linux native (sysid 131)<br=
>&nbsp;&nbsp;&nbsp;&nbsp;start 136102743, size 5863662 (2863 MB, Cyls 8472-=
8837)<br>E3: Linux swap or Prime or Solaris (sysid 130)
<br>&nbsp;&nbsp;&nbsp;&nbsp;start 141966468, size 2200842 (1075 MB, Cyls 88=
37-8974)<br>E4: Linux native (sysid 131)<br>&nbsp;&nbsp;&nbsp;&nbsp;start 1=
44167373, size 787122 (384 MB, Cyls 8974-9023)<br>E5: Linux native (sysid 1=
31)<br>&nbsp;&nbsp;&nbsp;&nbsp;start 144954558, size 15117102 (7381 MB, Cyl=
s 9023-9964)
<br>Bootselector enabled, timeout 4 seconds.<br># /dev/rwd0d:<br>type: unkn=
own<br>disk: Max 80G 9/19/05<br>label:<br>flags:<br>bytes/sector: 512<br>se=
ctors/track: 63<br>tracks/cylinder: 16<br>sectors/cylinder: 1008<br>cylinde=
rs: 158816
<br>total sectors: 160086528<br>rpm: 3600<br>interleave: 1<br>trackskew: 0<=
br>cylinderskew: 0<br>headswitch: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; # microseconds<br>track-to-track seek: 0&nbsp;&nbsp;# =
microseconds<br>drivedata: 0<br><br>16 partitions:<br>#&nbsp;&nbsp;&nbs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nbsp;&nbsp;&nbsp;
4.2BSD&nbsp;&nbsp; 1024&nbsp;&nbsp;8192&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;# (Cyl.&nbsp;&nbsp;87746*- 123244*)<br>
f:&nbsp;&nbsp;41929650&nbsp;&nbsp;41929650&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;MSDOS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# (Cyl.&nbsp;&nbsp;41596*-&nbsp;&nbsp;83193*)<br> g:&nbsp;&nbsp;
1558242 124230708&nbsp;&nbsp;&nbsp;&nbsp; 4.2BSD&nbsp;&nbsp;
1024&nbsp;&nbsp;8192&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;# (Cyl.
123244*- 124790*)<br> i:&nbsp;&nbsp;&nbsp;&nbsp;546147 125789013 Linux
Ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# (Cyl. 124790*-
125332*)<br> j:&nbsp;&nbsp; 9767457 126335223 Linux
Ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# (Cyl. 125332*-
135022*)<br> k:&nbsp;&nbsp; 5863662 136102743 Linux
Ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# (Cyl. 135022*-
140839*)<br> l:&nbsp;&nbsp; 2200842
141966468&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# (Cyl. 140839*- 143023*)<br> m:&nbsp;&nbsp;&nbsp;&nbsp;787122
144167373 Linux
Ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# (Cyl. 143023*-
143804*)<br> n:&nbsp;&nbsp;15117102 144954558 Linux
Ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# (Cyl. 143804*-
158801*)<br><br><br><br><br>--<br>George Georgalis, systems architect, admi=
nistrator &lt;IXOYE&gt;&lt;<br><a href=3D"http://galis.org/">http://galis.o=
rg/</a> cell:646-331-2027 mailto:<a href=3D"mailto:george@galis.org">george=
@galis.org
</a><br><br></blockquote></div><br>

------=_Part_7407_10702046.1130986894644--