Disk HOTPLUGGING VM automate mounting?

We attached raw Volatile Disk in VM.After attachment we need to manually create partition table format to ext4 and mount it. Is it possible to automate the mounting process?