Operating System - Tru64 Unix
1827962 Members
2836 Online
109973 Solutions
New Discussion

Re: Format/Verify Disk

 
SOLVED
Go to solution
TYP3R
Frequent Advisor

Format/Verify Disk

Hi Guys

I've got a machine with Tru64 installed. All i need to do is format/verify those disk that in the server. It's the fist time that i've used Tru64 but so far i got to this point: But dont know if i'm right or not

hwmgr scan scsi
hwmgr show scsi

Here on i get a list of scsi device

dsk0...........
dsk1............
dsk2............

dd if=/dev/disk/dsk1 of=/dev/null bs=256k
dd if=/dev/zero of=/devices/dsk/dsk1 bs=256k

i keep getting an error with /dev/disk/dsk1: No such file or directory and /devices/dsk/dsk1: No such file directory

Can any1 tell me what am i doing wrong ? and what is the correct procedure to test these disk..

Thanks in Advance

will
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Format/Verify Disk

To "format" a disk, you should use the mkfdmn and mkfset commands, like this:

mkfdmn /dev/disk/dsk1c dsk1c_domain
mkfset dsk1c_domain dsk1c
mount dsk1c_domain#dsk1c /mnt/disk

To test a disk you can use the diskx command.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Hein van den Heuvel
Honored Contributor
Solution

Re: Format/Verify Disk

Will,
Welcome to the Tru64 Forum.
Be sure to use 'google' to find earlier relevant posts. For example:
google: +tru64 +dd +site:itrc.hp.com +disk

For dd from zero or to null you want to use the RAW device file. (rdisk)

And under TRu64 disks are presented with 8 partitions: You need to pick one, and in this case you probably want "c" being "the whole disk"
Check ls /dev/rdisk/dsk1*

Use 'disklabel dsk1' to verify.

The commend you want to issue to clear the disk is probably (currently no access to test system):

dd if=/dev/zero of=/dev/rdisk/dsk1c bs=256k

Mind you, some folks argue that this is only good enough to clear data away from non-devious folks and that one really needs to shake the buits or physically damage the disk to make it completely unrecoverable.
Using multiple passes with 'erase patterns', perhpas from /dev/random is desired according to those folks.
google: +tru64 +dd +site:itrc.hp.com +erase
TYP3R
Frequent Advisor

Re: Format/Verify Disk

I did look at some early theard but its the "dsk1c" that got me.. None of them mention that c is for the whole disk.. Any way Hein van den Heuvel thanks for the help
10 points
TYP3R
Frequent Advisor

Re: Format/Verify Disk

seee above posts but Hein van den Heuvel
Michael Schulte zur Sur
Honored Contributor

Re: Format/Verify Disk

Hi Will,

the command Hein posted will reult in an error because the first 16 sectors are read-only. They should be skipped with the oseek option.
dd if=/dev/zero of=/devices/dsk/dsk1c bs=16 oseek=1


greetings,

Michael