1755348 Members
4825 Online
108831 Solutions
New Discussion юеВ

Re: FORMAT

 
SOLVED
Go to solution
oprakash
Frequent Advisor

FORMAT

Hi,

Can any one tell me how to format HP UX 11.00 operating system.
5 REPLIES 5
Suraj K Sankari
Honored Contributor

Re: FORMAT

Hi,

you want to format your OS?

pvcreate -f /dev/rdsk/cXtXdX
or
mediainit -v path

Suraj
Ganesan R
Honored Contributor

Re: FORMAT

Hi Oprakash,

Do you want to destroy the data on the disk?

# dd if=/dev/zero of=/dev/rdsk/c0t0d0 bs=1024k

mediainit is the tool to low level format the disk which takes long time.

Best wishes,

Ganesh.
Taifur
Respected Contributor

Re: FORMAT

HiOprakash,

For formatting HDD you can use

#pvcreate -f /dev/rdsk/cxtxdx

Chek the below link as follows,

http://docs.hp.com/en/B2355-90692/pvcreate.1M.html

http://docs.hp.com/en/5991-6552/index.html

If helps, pls assign point.

Rgds//
Taifur
R.K. #
Honored Contributor
Solution

Re: FORMAT

Hi Prakash,

Normally, we do NOT format a disk in Unix.
May be you no longer need the data in that disk/vg.

If this is the case, use:
# vgexport vg_name
and the Vg is gone for ever. Now the disks are free to be used again by making them a part of another vg and overwriting them.

Erase the header info in the disk by:
# pvcreate -f /dev/rdsk/cxtyd0

If you still need to format and erase every single block, use:
# dd if=/dev/zero of=/dev/rdsk/cxtyd0 bs=1024k

Hope this helps.
- R.K.
Don't fix what ain't broke
oprakash
Frequent Advisor

Re: FORMAT

Hi team,

Thanks a lot for your valuable information. I format the disk successfully.