You cannot do so. The basic reason is Ram acts as a temporary storage device to store your operating system and other essentials. Where as hard disk is slower and cannot be used for same to process.
It is possible to use a computer without an operating system, in the early days of personal computers they were often used this way, but any software will need to talk directly to the hardware for...