LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problem with ramdisk (https://www.linuxquestions.org/questions/debian-26/problem-with-ramdisk-413228/)

KitKat08 02-08-2006 08:44 PM

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?

nx5000 02-09-2006 05:27 AM

Quote:

Originally Posted by KitKat08
dd if=/dev/zero of=/dev/ram0 bs=1k count=4096
ramdisk_size to 40 MB in GRUB

Erm 1k*4096 doesn't make 40MB ;)

XavierP 02-09-2006 08:57 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


All times are GMT -5. The time now is 06:46 PM.