problem with ramdisk
Hi, I'm a new Linux user. now I'm having problem with copying data to the ramdisk that i have created as follow.
dd if=/dev/zero of=/dev/ram0 bs=1k count=4096
mke2fs /dev/ram0
mount -t ext2 /dev/ram0 /mnt/ramdisk
cp -a . /mnt/ramdisk
umount /mnt/ramdisk
when i do the copying 'cp -a . /mnt/ramdisk' there is a message 'No space left on device.' After i tried to increase the ramdisk_size to 40 MB in GRUB, when i do the above command, it seems ok. But later i found out that i have make some mistakes and wanted to re-copy the data to the ramdisk by performing the above command, the message 'No space left on device' come again. Is there anyway to clear the data inside my ramdisk or ram0? so that i will have enough space for me to work on?
|