1850763 Members
3160 Online
104055 Solutions
New Discussion

mediainit

 
SOLVED
Go to solution
ikbea
Frequent Advisor

mediainit

Hi all,

when I run
# mediainit /dev/dsk/c4t1d0
mediainit: character(raw) device special file required

The volume group and logical volume were already removed

Thanks a lot
6 REPLIES 6
Devender Khatana
Honored Contributor
Solution

Re: mediainit

Hi,

As it is indicating use

#mediainit /dev/rdsk/c4t1d0

HTH,
Devender
Impossible itself mentions "I m possible"
ikbea
Frequent Advisor

Re: mediainit

Moreover, I changed all file to mode 777 under /dev/dsk/*
Devender Khatana
Honored Contributor

Re: mediainit

Hi,

The problem reported in not due to perms. It seems you are not aware that in unix we have two sort of device files for disks one is block & the other is character or raw. The block device files are indicated by /dev/dsk/cxtydz & the character or raw device files are indicated by /dev/rdsk/cxtydz. You defined block device file for a command that expects character device file & it indicated you for the same.

So repeat the command with /dev/rdsk/cxtydz & it should be fine. I also assume you are aware of the other implications of the mediainit which may lead your disks to unusable.

HTH,
Devender
Impossible itself mentions "I m possible"
ikbea
Frequent Advisor

Re: mediainit

I run /dev/rdsk, and no error returned immidately.

At the same time, I run "dd" command to erase another disk, do it has any impact on mediainit?

Thanks again
Devender Khatana
Honored Contributor

Re: mediainit

Hi,

No if you have dd running on another disk it should not cause any problems. Morover if both disk belongs to the same controller then obviously the resluts will be quite slow, so if you have multiple disks to be erased then you two disks of seperate controllers simultaneously for best results.

HTH,
Devender
Impossible itself mentions "I m possible"
ikbea
Frequent Advisor

Re: mediainit

Thanks.