1848812 Members
8885 Online
104037 Solutions
New Discussion

Mediainit

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

Mediainit

Hi,
How do you run mediainit on your disk, if that disk has vg00 on it? Wouldnt that end up going 'loopy'?
We run ux11.00.
Maria - curiouser and curiouser.
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: Mediainit

You have a chicken and egg problem there.

If you run it on the boot disk, the system does go loopy and hangs up. The you have no idea how far it got.

Question for you: What proprietary company data is actually on your boot disk? Maybe some scripts in /usr/contrib/bin? Some optional software in /opt.

I'd have to say its perfectly acceptable to do a generic OS install, wiping out everything and doing no customization. This is not a license violation. A right to use license for the basic OS goes witht he machine.

If you really want to go down this track, you'll never be sure whats left on the boot disk because the system is going to halt while you are running the mediainit.

Good Luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rajeev  Shukla
Honored Contributor

Re: Mediainit

Hi Maria,

Mediainit is just like formating the entire disk. And you run mediainit on a raw device from
/usr/bin/mediainit /dev/rdsk/

This disk should not belong to any volume group. If its attached to any volume group, reduce the volume group and detach this disk.

Cheers
Rajeev
T G Manikandan
Honored Contributor

Re: Mediainit

Make sure that the disk on which you are running mediainit does not have mountable partitions or no file systems mounted.


Peter Gillis
Super Advisor

Re: Mediainit

Thanks for your replies. I wanted to make sure I wasn't getting the wrong idea, and wow...!! I wasnt!
Thanks.
Maria
T G Manikandan
Honored Contributor

Re: Mediainit

twang
Honored Contributor

Re: Mediainit

If you want to erase the content of a disk, i would suggest you use "dd if=/dev/null of=/dev/dsk/cytydy bs=1024k".
Or if you must use mediainit, my tips is:
let /dev/dsk/c2t2d0 will be the disk we want to
mediainit inside the same vg, if c2t2d0 already belongs to vg00, pls do a
vgreduce to free this disk first:
# vgreduce /dev/vg00 /dev/dsk/c2t2d0
yogesh_4
Regular Advisor

Re: Mediainit

Hi Maria,
Why you are using #mediainit command? If you will use that then it will lower the performance of your disk. If you want to erase the data on your disk then use #dd if=/dev/zero of=/dev/rdsk/yourdisk . If /dev//zero is not there then you can create it by #mknod /dev/zero c 3 0x000004

Hope this will help.