System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Formating a root drive in digital unix.

Formating a root drive in digital unix.

Dear all,

I wanted to format a 36GB (OSF1 V4.0 APLHA)drive used as root disk, It has three partitions and i tried my best to follow the documentation to format it using the disklabel command. I am not able to wibe out this drive.
Can any one help me with a step by step instructions on how to clean this disk. I am booting now from CD.

This is un urgent task please help.
10 REPLIES
Venkatesh BL
Honored Contributor

Re: Formating a root drive in digital unix.

What command did you try for this? May be you can just 'dd' zeros to wipe out the disk contents.

Re: Formating a root drive in digital unix.

I used (diklabel) command.I didnt use dd

Re: Formating a root drive in digital unix.

I hope system run on other drive, than you try to wipe.
What's about disklabel -z ?

Re: Formating a root drive in digital unix.

Its done . I just used the newfs command.
Venkatesh BL
Honored Contributor

Re: Formating a root drive in digital unix.

'newfs' is to create ufs filesystem. It doesn't neccessarily wipeout the old contents from the disk. It is just not visible to naked eyes anymore.

If you wanted to 'wipeout' stuff, you could use 'dd' command and fill the drive contents with 0's.
Kapil Jha
Honored Contributor

Re: Formating a root drive in digital unix.

you will have to use dd command to wipe the data.
with disklabel you would alter the label but still data would be there.

why exactly you want to wipe out the data.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Rob Leadbeater
Honored Contributor

Re: Formating a root drive in digital unix.

Hi,

If you do really want to wipe the disk, then the zeero command is probably easiest.

Boot from CD, and drop to a Unix shell.
Create the relevant device files:

# cd /dev
# ./MAKEDEV rz0
# /usr/lbin/zeero -d -f /dev/rrz0c

This assumes of course that the drive you want to clean is rz0.

Cheers,

Rob

Nick Bishop (Kiwi)
Frequent Advisor

Re: Formating a root drive in digital unix.

Recommended you disconnect any other disk from the system that has valuable data, while you do this.

It can be a bit confusing, the devices might change names when you boot from CD.

You do want to wipe THE WHOLE DISK?

The /usr/lbin/zeero command certainly works, and as far as I can see (Tru64 5.1B-4) doesn't require a disklabel (which I suspect the "dd" command might sqark if there's no disklabel).

And once it's finished, the disklabel will be gone (zeroed out, like the rest of the disk).

ps. It's polite to give error messages if you do get errors (yes, write it down and type it into this forum, word-for-word). And it's also polite to assign points (I'd say Rob should get the lions share here).

Nick.

Re: Formating a root drive in digital unix.

Hi , Nick

I dont know what is the un polite thing I did, seeing you using the word polite.Can I know why u used this word "polite" and what you mean behind it?
Nick Bishop (Kiwi)
Frequent Advisor

Re: Formating a root drive in digital unix.

The point system is explained http://forums13.itrc.hp.com/service/forums/helptips.do?admit=109447627+1260851206997+28353475#28 . You assign points to other people's replies to your questions. I see that some people don't reply if you have large numbers of unassigned replies, so it pays to keep up.

Now, the error messages - a system can fail in many different ways, so copying the error message into the forum message helps to make sure we're not assuming the wrong thing. I just felt that "I am not able to [wipe] out this drive" was unclear.

Of course, if it's a question asking advice as to the best way of doing something, then no error message is required ...

I use "polite" because it is polite to say thankyou (using points), and to be honest to say if one of our answers doesn't work (again: error messages). Being polite enables other people to answer questions more accurately/quickly.

N.