Subject: [Q] Toasted disklabel on sd(0,a) - Fix?
To: None <netbsd-help@NetBSD.ORG>
From: Colin BRADLEY <fox@cs.mcgill.ca>
List: netbsd-users
Date: 06/11/1995 11:37:08
arooo.

   os-bsBETA has confused either

      a) the boot blocks
      b) the disklabel

   on my /dev/sd0a. I have a system where DOS resides on an IDE
   drive, and NetBSD-1.0 on the SCSI (seagate 3600N 500 MB, controlled
   by an Ultrastor 34f VLB affair, plugged into a Micronics carrying
   16 meg and a 486/66). 

   I installed os-bsBETA on recommendation to be able to boot off
   either drive.

   Now when NetBSD boots, it seems to think that it is booting off
   sd(1,a) instead of sd(0,a). At kernel load time, I guess it doesn't
   know any better, and proceeds. When it tries to mount /dev/sd1a as
   the root partition, of course, it panics, as the prescribed
   partition does not exist.

   I tried telling it explicity at the boot prompt to go to
   sd(0,a)/netbsd, but it replies something to the effect of "bad
   disklabel". So I think it's a bad disklabel (obviously) or 
   corrupted boot blocks, or whatever.

   I don't know very much about this stuff. Can I 

    a) uninstall os-bs? Nope - backups got screwed the other day. 
       hehehhehe.

    b) redisklabel the drive? without trashing existing data?
    c) manually edit the boot blocks or disklabel somehow so 
       that NetBSD attempts to boot off the correct drive?
       ie sd(0,a) instead of sd(1,a)?
    d) reinstall NetBSD on JUST the root partition of the drive,
       so as to rewrite the disklabel, boot blocks, and root
       partition, so as to leave other NetBSD partitions intact?
    e) forget the whole thing and install Solaris? HAHAHAHA.

    f) am I gonna have to reinstall the whole drive?


  Thanks for any pointers or assistance here. I'd really appreciate
  hearing any ideas or recommendations.

  Regards, Colin.


-- 
                                   Colin Bradley
                                   fox@cs.mcgill.ca
                                   http://www.cs.mcgill.ca/~fox