tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Zapping the MBR (Master Boot Record), PC164LX, Tru64 UNIX V5.1A
@ 2002-08-29 16:56 Peter Sherwood
  2002-08-30 16:50 ` SUMMARY: " Peter Sherwood
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Sherwood @ 2002-08-29 16:56 UTC (permalink / raw)


Greetings,

I have the (*)pleasure of supporting Alpha PC164LX (21164 CPU) 
computers. They come in various hardware configurations and primarily 
have the following OS installed:

Microsoft Windows NT 4
Linux versions 6.x and 7.x
Tru64 UNIX version 4.x & 5.x

Customers want to migrate from one OS version to another from 
time-to-time. Primarily we see Windows NT to Linux migrations the other 
times it is UNIX to Linux (so far). In my effort to support these OS 
configurations it has been necessary to switch back and forth between 
SRM and AlphaBIOS consoles as well as re-image the hard drives with the 
various OS's.

When migrating from NT or UNIX to Linux it is necessary at times to run 
the MBR zapping command:

dd if=/dev/zero of=/tmp/BOOT-DISK bs=512 count=1

BOOT-DISK is most often "sda" or "hda"

We expect this!

The other day when migrating from Linux (Red Hat 7.2 Alpha) to UNIX 
V5.1A I hit the same impasse on the SCSI disk drive as is hit when doing 
a Linux install: To wit; you are not allowed to write over the MBR.

I didn't expect this.

To get past this point I was forced to boot the Linux CD to reach the 
root Shell prompt to run the "dd ..." command noted above.
It worked!
(NOTE: there is a trick to it if you need to know. Timing is everything.)

I asked Compaq/HP tech support and the canned answer was (as documented):

**********

http://www.tru64unix.compaq.com/docs/base_doc/DOCUMENTATION/V51A_HTML/ARH8WDTE/TITLE.HTM

3.1.3    Install Hangs If Disk Has Disk Label Generated by Linux

Do not attempt to install Tru64 UNIX Version 5.1A onto a disk that has a 
disk label written by a Linux system.

**********

I was then directed to this mailing list :)
(so don't throw stones ! - )

Long Story Shortened:

what I am looking for is the equivalent "dd ..." command
(or ability to zap the MBR)
during a Tru64 UNIX installation
(if necessary).

PS: SRM is/was at 5.8-1 and I am well prepared to switch the console to 
whatever SRM version is best (sometimes less it more).

Config:

PC164LX, 512 Meg memory on two sticks, Oxygen VX1 video card (or was it 
the ELSA... it shouldn't matter), ITI SCSI card, Seagate ST318203LW HD, 
Toshiba CD.


TIA,
-- 
Peter Sherwood  <petersherwood@microway.com>  Technical Support
Direct: 508-732-5542    Main: 508-746-7341    Fax: 508-746-4678
Microway, Inc. - "Technology You Can Count On"  http://www.microway.com/



^ permalink raw reply	[flat|nested] 2+ messages in thread

* SUMMARY: Zapping the MBR (Master Boot Record), PC164LX, Tru64 UNIX V5.1A
  2002-08-29 16:56 Zapping the MBR (Master Boot Record), PC164LX, Tru64 UNIX V5.1A Peter Sherwood
@ 2002-08-30 16:50 ` Peter Sherwood
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Sherwood @ 2002-08-30 16:50 UTC (permalink / raw)


Thanks go to the following people for providing me with potential solutions:

jb@jbacher
alan@cpqcorp
iglesias@uci
tom@kednos
jay.vlack@hp (solution I used, Thanks again Jay!)

domains were nixed for obvious reasons (.com, .net & .edu were snipped 
if you want to reach these people ;-)


Not too long ago nor far away Peter Sherwood wrote:

> Greetings,
> 
> I have the (*)pleasure of supporting Alpha PC164LX (21164 CPU) 
> computers. 

[snip]

> Customers want to migrate from one OS version to another from 

[snip]

> When migrating [snip] it is necessary at times to run 
> the MBR zapping command:

[snip]

> Long Story Shortened:
> 
> what I am looking for is the equivalent "dd ..." command
> (or ability to zap the MBR)
> during a Tru64 UNIX installation

Thank you to all who dug deep within the recesses of grey matter to pull 
out possible solutions.

Here, IMHO, is the quickest and easiest solution:

Jay Vlack of HP wins the KISS approach and the one I used and passed 
along to a customer (who succeeded rather nicely):

On alpha systems one must begin the OS installation at the SRM and 
therefore it makes the best sense to zap the MBR at this point.

Four commands accomplished this quite nicely:

 >>>chmod +w dka0.0.0.5.0     <-- make the drive writable)
 >>>exer -a w dka0.0.0.5.0 &  <-- run in background or you can't ... )
 >>>show_status               <-- repeatedly)
 >>>init                      <-- to reboot)

NOTES:

1) ensure you add the "&" on the end of the "exer" command to send it 
into the background or else you cannot run the "show_status" command 
repeatedly to check bytes written. (Ctrl C breaks out if you forget the &)

2) BYTE WRITTEN needs to be greater than or equalt to 8 megabytes

3) show_status will need to be re-run several times (the easiest 
approach is to type it once and then do the <up arrow> <Enter/Return> 
keys repeatedly).

4) some SRM versions will allow you to use the ALIAS name (i.e. dka0) 
instead of the full name (i.e. dka0.0.0.5.0) on the "exer ..." command 
line. SRM 5.8-1 is one such SRM. I haven't tested any others, yet.

PS: I tried to ignore these older Alpha PC164 computer systems but it 
wasn't possible. "If you can't fight 'em, join 'em" is what I've had to 
adopt. So, if I have erred miserably, please go easy on me. I've only 
started supporting them in the last few months.

Sample (wrap-line mangeled) "show_status":

ID Program Device Pass Hard/Soft Bytes Written Bytes Read
-------- ------------ ------------ ------ --------- ------------- 
-----------
00000001 idle system 0 0 0 0 0
000003c exer_kid dka0.0.0.17.0 0 0 0 8087040 0

(Jay's sample not mine ;-)

-- 
Peter Sherwood  <petersherwood@microway.com>  Technical Support
Direct: 508-732-5542    Main: 508-746-7341    Fax: 508-746-4678
Microway, Inc. - "Technology You Can Count On"  http://www.microway.com/




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-30 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-29 16:56 Zapping the MBR (Master Boot Record), PC164LX, Tru64 UNIX V5.1A Peter Sherwood
2002-08-30 16:50 ` SUMMARY: " Peter Sherwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox