It can be done with Linux or any OS that has a RAM-based file system. And with machines coming with gigabytes of memory, the installation supported by a RAM FS can be very complete indeed. See Puppy Linux as an example of a distro that can run from RAM.