Originally Posted by blackhole54
I think you want you final statement to be:
dd if=/dev/ram bs=1k count=2048 | gzip -v9 > ramdisk.gz
It was (I believe) interpreting your file name as the file that it should zip. (I am trusting that the rest of your commands make sense. I have never done things that way before.)
Exactly, the thing i was missing was that arrow, actually i had try with that, but i have specified the wrong filenames and it leads to problems, then i have tried with
dd if=/dev/ram bs=1k count=2048 | gzip -v9 > /mnt/ramdisk.gz, where my file lies in the Linux and that works for me, thanks anyways for the wonderful support.