Operating System - Tru64 Unix
1752272 Members
5154 Online
108786 Solutions
New Discussion юеВ

Erase Harddisk in SRM

 
Marco Dubini
Occasional Advisor

Erase Harddisk in SRM

Hi folks
is there a possibility to formate or erase the harddisk in the SRM?

Greetings from Switzerland
Marco
12 REPLIES 12
Ivan Ferreira
Honored Contributor

Re: Erase Harddisk in SRM

You cannot erase the data, but you can override the data with the exer command. For example:

exer -p1 -bc 4 -a ├в w├в -d1 ├в 0x5a├в dka0

The following command writes the hex pattern 5A to every byte of blocks 1, 2, and 3 ├в using a packet size of 2048. The value of 2048 for the packet size is derived from multiplying the ├в bc value (block per I/O) of 4 by the default ├в bs value (block size) of 512.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Marco Dubini
Occasional Advisor

Re: Erase Harddisk in SRM

Hi Ivan
thanks for your tipp.

Greetings from Switzerland
Marco
Marco Dubini
Occasional Advisor

Re: Erase Harddisk in SRM

Hi Ivan
i have tried it, but it does not work on my ds20e

I tipped in the command and the SRM answers:
dka0.0.2004.1 is write protected
file open failed for DKA0


Sorry but I am a newbie on SRM :)

Greetings
Maroc
Michael Schulte zur Sur
Honored Contributor

Re: Erase Harddisk in SRM

Hi Marco,

why is it you want to delete the disk from srm? The first 16 blocks are read-only anyway. Depending on the controller you could run the setup in its bios and format the drive from there.

greetings,

Michael
Marco Dubini
Occasional Advisor

Re: Erase Harddisk in SRM

Hi Michael
I haven't thougt on this way.

So I am going try this way.
How can I access the configuration menu? (I normaly work with Intel Servers :) )

Greetings
Marco
Michael Schulte zur Sur
Honored Contributor

Re: Erase Harddisk in SRM

Please post
show dev
from the srm console.
Is the server not bootable anymore?
From the shelll you could do it with the dd command.

Michael
Ivan Ferreira
Honored Contributor

Re: Erase Harddisk in SRM

I have not done this before, so try this:

exer -p1 -sb 17 -bc 4 -a "├В ├В w"├В ├В -d1 "├В ├В 0x5a"├В ├В dka0

So you will skip the first 16 blocks.

You can also try with:

exer_write

Also, use kill_diags.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: Erase Harddisk in SRM

Sorry for the wrong characters:

exer -p1 -sb 17 -bc 4 -a "w" -d1 "0x5A" dka0

Attached is the SRM reference.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Michael Schulte zur Sur
Honored Contributor

Re: Erase Harddisk in SRM

What Ivan writes look good.
You could even start from block 10 since counting starts with 0 and is specified in hex.

Michael