Question:
What is the big difference between /dev/dsk and /dev/rdsk
Answer:
In Solaris whenever you create a new slice using format command a raw physical slice or a Raw Device will be created which is addressed as /dev/rdsk/c#d#s# where # is the number for slice.
After formatting it with newfs command the slice will be addressed as /dev/dsk/c#d#s# which can now be used for mounting.
eg. newfs /dev/rdsk/c0d0s4
mkdir /oracle
mount /dev/dsk/c0d0s4 /oracle
After mounting /dev/dsk/c#d#s# is called as Block Device
/dev actually contains logical device names which are links (Shortcuts in windows terminology) to actual physical devices in /devices directory. Source: CoolInterview.com
when we performing i/o operation on secter of disk the use the /dev/rdsk/c#t#d#s# #number e.g this will use when creating the file system, repairing the file system & while retriving the some informatuion form the file system /dev/dsk its is a block device,when we perform the i/o operation on the block of disk, e.g During mounting & unmounting Source: CoolInterview.com
Answered by: Sameer Patil | Date: 9/25/2009
| Contact Sameer Patil
dsk:(block device) resides in /dev/dsk
-->The File System Which is formated and mounted that device is called as block device.
rdsk:(raw or character device)resides in /dev/rdsk -->The Filesystem which is not formated and not mounted that device is called as raw device
-->In general, /dev/dsk BLOCK DEVICES are refered as COOKED FOOD and /dev/rdsk RAW DEVICES are refered as UNCOOKED FOOD. Source: CoolInterview.com
Answered by: khamruddin | Date: 8/12/2010
| Contact khamruddin
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|