LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Closed Thread
  Search this Thread
Old 02-08-2006, 08:44 PM   #1
KitKat08
LQ Newbie
 
Registered: Feb 2006
Posts: 14

Rep: Reputation: 0
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?
 
Old 02-09-2006, 05:27 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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
 
Old 02-09-2006, 08:57 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
Core file creation problem on ramdisk system hasse69 Linux - General 1 05-12-2005 03:06 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
Can't boot Ramdisk problem ? JohnLon Linux - Newbie 0 03-04-2002 06:42 PM
bootnet install of RH7.1 ramdisk problem silverflash Linux - Software 0 09-27-2001 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration