Operating System - HP-UX
1834789 Members
2687 Online
110070 Solutions
New Discussion

file systems on raw & block devices

 
amit mehta_2
Regular Advisor

file systems on raw & block devices

Why do we fire mkfs on a raw device for creating a file system and then mount the block device?

Why do we perform the above operations on different device interfaces?

mkfs -F vxfs /dev/vx/rdsk/mydg/myvol
version 7 layout
6291456 sectors, 3145728 blocks of size 1024, log size 16384 blocks
largefiles supported
mount -F vxfs /dev/vx/dsk/mydg/myvol /testfs
1 REPLY 1
Pete Randall
Outstanding Contributor

Re: file systems on raw & block devices

The process of creating a file system needs to access the disk directly, not through the buffer cache. When you mount it, nowever, you want to use the buffer cache. It's that simple.


Pete

Pete