tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Disk Device Driver Semantics Question
@ 1997-02-06 19:35 em
  0 siblings, 0 replies; only message in thread
From: em @ 1997-02-06 19:35 UTC (permalink / raw)
  To: tru64-unix-managers

Apparently, the driver protects the first block of the 'c' partition so
that the disk label won't get blown away accidentally.  However, the
usual disk label that one would do when installing a new drive followed
by a "disklabel -z" allows dd(1) to write over the entire drive.  For
example, I was able to successfully restore my advfs file system on
three drives with the following script:

    :
    for i in 11 13 14; do
	disklabel -wr /dev/rrz${i}c XXX
	disklabel -z /dev/rrz${i}c
	rsh -n -l root tapehost mt -f /dev/nrmt1h rew
	sleep 10
	rsh -n -l root tapehost dd if=/dev/rmt1h bs=1024k | dd of=/dev/rrz${i}c bs=1024k
	sleep 10
	rsh -n -l root tapehost mt -f /dev/nrmt1h offline # stacker loads next tape
	sleep 10
    done

To the following people from whom I received replies:

    Gyula Szokoly
    Jon Craig
    Alan
    Sam Sarasin
    Dave Golden

and to the list maintainers,

THANKS!

-- Ed

----------
Ken Thompson has an automobile which he helped design.  Unlike most
automobiles, it has neither speedometer, nor gas gage, nor any of the
numerous idiot lights which plague the modern driver.  Rather, if the
driver makes any mistake, a giant "?" lights up in the center of the
dashboard.  "The experienced driver", he says, "will usually know
what's wrong."

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-06 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-06 19:35 SUMMARY: Disk Device Driver Semantics Question em

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