The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
14 views

Can you write your whole existing filesystem to an image?

I'm reading about filesystems for embedded linux. If you're using a ramdisk, how its supposed to work is a compressed image of the filesystem is kept in the boot partition, and is copied into the root ...
5
votes
0answers
38 views

How to specify memory region for ramdrive

We are setting up a Linux based benchmarking cluster. Each node is going to be a headless, diskless machine, booted via tftp, the OS copied to a local ramdrive, and the same ramdrive is used as local ...
1
vote
0answers
15 views

Tmpfs with overflow on disk?

I'm looking for a way to have a tmpfs-like file system that can be unlimited in size, but will use a specified amount of RAM after which the "oversize" data will be stored on another disk-backed ...
0
votes
1answer
67 views

Under guest virtual machine, Debian hangs when loading initial ramdisk

I am new to Linux, and recently installed Debian 8 to a guest virtual machine running under Virtual Box on a Windows 8 laptop (Asus x552cl). When I try boot up the Debian system, the virtual machine ...
5
votes
1answer
95 views

Regarding the creation and destruction of sensitive data on linux/unix systems

In modern file systems (and on modern SSDs) there is no guarantee that if you write over a file using a traditional utility (such as dd) that the data will be overwritten in-place and journaled ...
3
votes
1answer
73 views

How to create a RAM disk from the Kickstart environment?

I'm installing a CentOS 7 VM, and I would like to create a RAM disk inside the %pre section of a Kickstart file. However, doing so via mkfs -q /dev/ram1 8192 is not possible as the mkfs binary is ...
1
vote
0answers
86 views

htop showing less memory usage

I'm currently trying to benchmark performance improvements when using a RAM disk. So I've been giving my VM 24 of the total 32 GB RAM, and created a 16GB RAM Disk inside. It's beeing used, ...
5
votes
2answers
280 views

how to deallocate /dev/ram0

I have allocated /dev/ram0: dd if=/dev/zero of=/dev/ram0 bs=1M count=1024 Now I have 1Gb sitting in memory. How do I free up the allocated space ?
1
vote
0answers
29 views

switching to ramdisk root

My application is to do a secure erase on my system disk (an SSD) using hdparm from a shell script. So my thoughts were: create a ramdisk copy the linux OS to the ramdisk unmount the original system ...
0
votes
1answer
378 views

Requiring a script to sync ramdisk before and after reboot

On a specific machine I use a lot of RAM to serve websites really fast directly from RAM (which by the way is working amazingly well). For this I have mounted a ramdisk in /etc/fstab (in debian 7, via ...
0
votes
1answer
81 views

Attaching a phram mtd0 device to gadget serial mass storage

I'm using a Atmel SAMA5D3, I have created two phram devices /dev/mtd0 and /dev/mtd1 I am trying to attach them to a gadget mass storage module. insmod g_acm_ms.ko file=/dev/mtd0,/dev/mtd1 The ...
1
vote
2answers
314 views

How to create “real” RAM disk that reserves memory

I've been shortly using this on Linux Debian Jessie to create a "RAM disk": mount -o size=1G -t tmpfs none /mnt/tmpfs But I was told it doesn't reserve memory, which I didn't know. I would like a ...
1
vote
1answer
89 views

How to keep the file in RAM

I have a laptop with Linux Slackware. When it's working on battery saving a file to hard drive takes around a second. When I'm writing code I waste a lot of time saving the files. I have about 2 GB ...
0
votes
0answers
76 views

How can writing speed equal to reading's over nbd and ram disk

My testing is under two nodes whose communication is over nbd,and each node uses ram disk as local storage.The result is that reading speed can reach the bandwidth 6GB/s,while writing speed is only 2....
0
votes
0answers
63 views

why writing under ram disk is slower than reading?

I have been running a test to verify the performance improvement with ram disk. I used tmpfs provided by Linux kernel,but writing speed is slower than reading. Who had run similar tests and what's ...
-4
votes
2answers
271 views

How can I forbid the Linux kernel from accessing a certain RAM disk? [closed]

Can anyone tell me if the Linux kernel has access to RAM Disks and if so, how can we forbid it? I want to have a RAM Disk that I'm the only one who has access and can change the information, and I ...
5
votes
3answers
2k views

Debian 8 KVM Guest - Loading initial ramdisk

I have updated my KVM management script for Ubuntu 14.04 KVM hosts to support debian 8 guests. After a manual installation (preseed script does not work yet), I am stuck with the the following message ...
0
votes
1answer
70 views

how to add application to initrd.gz

I have an initrd.gz (from linux parag*n live cd) I want to edit the file inside and add app like apache,ophcrack,etc. So far I've done extracting by following these step wiki.ubuntu.com/...
1
vote
1answer
324 views

Kernel's cached memory can't be freed, even dropping caches

All host's memory is cached and there's no way it can be freed. /dev/ram1 is used for storing testing files, but after each build we run freeramdisk. $ freeramdisk /dev/ram1 $ echo 3 > /proc/sys/...
3
votes
5answers
9k views

Is there a linux OS that can be loaded entirely into RAM?

I have 32 GB of memory in my PC. This is more than enough for a linux OS. Is there an easy to use version of Linux (Ubuntu preferably) that can be booted via optical or USB disk and be run completely ...
6
votes
1answer
335 views

Can you throttle the bandwidth to a tmpfs based ramdisk?

I created a ramdisk using tmpfs as follows: sudo mount -t tmpfs -o size=1024m tmpfs /myramdisk I was looking into cgroup blkio subsystem bandwidth limits "read_bps_device" and "write_bps_device" ...
3
votes
3answers
625 views

Linux speed up by moving files to ramdisk at start

I have more than enough ram in my computer (8GB), which hardly gets used. In the most cases my desktop and apps use up in 2-3GBs out of it, on the other hand I do not have an SSD. My system is 64bit ...
2
votes
1answer
3k views

How Linux kernel 3.x manage ramdisk as block device?

I need a block device in RAM. I built a 3.x kernel and added the RAM block device driver. The number of RAM block device drive is 16 (by default) but when the kernel boots there is no ramx in /sys/...
1
vote
2answers
428 views

Linux 3.x init ramdisk embedded in bzImage?

Is the initial ramdisk embedded into the bzImage? How to load an rootfs.cpio as a ramdisk and switch the root?
1
vote
0answers
176 views

Display boot splash on ramdisk only system

I'm working on a kiosk system with the root file system loaded into RAM. One of the requirements is that the boot process output should be completely hidden from the user. I've already managed to set ...
11
votes
2answers
2k views

Reserve fixed RAM memory region as a block device ( with a given start physical address)

There have been a lot of questions about RAM Disks and I am aware of ramfs and tmpfs which allow the use of ram as a block device. However my interest is in using a fixed memory address range as a ...
1
vote
1answer
102 views

How to download original ramdisk file to the computer? [closed]

Linux embedded, is it possible to download original ramdisk file to the computer, to get source code? Access via SFTP. U-boot 1.2.0 Kernel command line: root=/dev/mtdblock3 mtdparts=spansion:0x20000(...
0
votes
2answers
503 views

Ramdisks in OpenSuse 13.1

I've just installed OpenSuse 13.1, and noticed 5 tmpfs ramdisks in the partitioner, mapped to /dev/shm, /run, /sys/fs/cgroup, /var/lock and /var/run. I don't remember seeing these ramdisks in the ...
0
votes
1answer
2k views

How do I create a RAM disk on Linux Mint?

I am running a package that adds data to the end of 140–300 files each time through the process. I'm thinking of moving the process to a RAM disk, and using rsync to copy it back when done. My goal ...
3
votes
3answers
346 views

Why are there internet utilities in my initial ramdisk?

I have a fairly standard initial ramdisk created using mkinitcpio. I'm on Arch GNU/Linux. A while ago I got dropped to a rescue shell and poked around in the /bin of the ramdisk to see what was ...
2
votes
1answer
448 views

Missing /dev/ram0 /dev/ram1 and /proc/kcore

I have been experimenting with etckeeper to store different snapshots of /etc in a git repo. I have cloned a working /etc in /etc-1 of a clean VPS and I have restored metadata with etckeeper, the I ...
2
votes
2answers
474 views

du on ramdisk displays 3GB less than df

I understand there's often a some discrepancy between du and df but when I du my ramdisk it occupies 13G, whereas df shows it's using 16GB. This seems quite a big difference. Is this normal? [root@...
2
votes
1answer
1k views

Measurement of free ram through /proc/meminfo with ramdisk (initrd)

I am booting a disk image via PXE, it is a full system on an initrd ramdisk. I would like to measure the actual free memory of the system (not including buffers and file system caching). I was told ...
2
votes
2answers
844 views

why is filesystem intensive script not faster on ram disk

I have a script which creates a lot of files and directories. The script does black box tests for a program which works with a lot of files and directories. The test count grew and the tests were ...