Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ramdisk]

The tag has no usage guidance.

1
vote
1answer
29 views

Where does tmpfs come from and how is it mounted

I am using a BeagleBone board with Linux. When i type command "df -h" , I see tmpfs is mounted a few times. Does this mean that all these entries get mounted at the same place, or at a different ...
0
votes
1answer
35 views

Moving /tmp from ramdisk to other partition

Due to a deficit of RAM on Debian, I need to move /tmp to SSD drive. But I still can't figure it out, how to do that so the programs that use it will still access it under /tmp path. So basically, ...
2
votes
1answer
20 views

Find size of shared memory tmpfs

When mounting a tmpfs we can pass as an option its (maximum) size and prevent the relevant fs from growing indefinitely and thus consuming all of our RAM, e.g. $ mkdir -p /tmp/shmemory $ sudo mount -...
0
votes
1answer
37 views

Is there a way to import a layout with multiple partitions into ramdisk?

I dumped the partition layout of a disk, with: sfdisk -d /dev/sda > part_table cat part_table output label: dos label-id: 0x0004bc49 device: /dev/sda unit: sectors /dev/sda1 : start= ...
0
votes
1answer
24 views

mv command for many nonexistent files, does it wear off the destination disk at all?

I am trying to continuously move many files (~ 10 000 each minute) from /ramdisk to normal /ssd , but not all files are there. When the mv /ramdisk/file55 /ssd/file55 fails because source is not ...
0
votes
0answers
20 views

Run Minidlna from RAMDisk

I am using Raspberry Pi to stream movies to my LAN. The movies are mounted using sshfs and streamed with MiniDLNA. Now the Pi has very slow SD-Card I/O, at iotop I can see minidlna uses <95% I/O ...
-1
votes
1answer
47 views

How to sync ram disk of one server to another

I have created ram disk as /mnt/ramdisk/test in both server A and B. Where I will be writing dedicated content in each server's ram disk. Now, i want the content of ram disk in server A to sync with ...
0
votes
1answer
22 views

Inspect a Ramdrive?

I have mounted a ramdrive via /etc/fstab. And I would like to inspect the properties of the drive such as the memory policy (e.g. bind, prefer, or?) to make sure all properties are expected. How can ...
1
vote
2answers
134 views

loadaddress of ramfs

I have some difficulties to make initramfs functional with SAMA5D27 SOM1 Evaluation Kit. I am trying to have a functional initramfs. I first verified that I have a functional linux when used with ...
0
votes
0answers
80 views

Unetbootin + DB gives error: `Could not find ramdisk image /ubninit`

I installed dban-2.3.0_i586.iso onto a usb with unetbootin on a mac. But when I run it on a computer and select dban on the menu I get: Could not find ramdisk image /ubninit Any ideas?
1
vote
0answers
157 views

Why can't dd write to /dev/ram0 on Core Linux?

I created an ext2 file-system on /dev/ram0 ramdisk, and mounted it at /mnt/ram. mkdir /mnt/ram mkext2fs /dev/ram0 sudo mount /dev/ram0 /mnt/ram -o rw Reading from ramdisk with dd works. dd if=/dev/...
0
votes
2answers
45 views

Can a script unmount the volume containing itself?

I have a computer with a hard drive mounted read-only. I am running a script from a flash drive. I would like the script to be able to unmount the flash drive, but this can't be performed as the ...
0
votes
2answers
27 views

Can I create a virtual network and place its configuration file outside of etc directory?

For some reasons, I need a temporary interface where its configuration file will exist only on a ram drive, so it will be removed if the power goes off. Is it possible? How?
2
votes
1answer
338 views

can a full ram-disk cause swapping?

I have a application that is using /opt/otrs/var/tmp for caching a lot of temporary data. The vendor suggest that one option could be also to put this directory on a ramdisk (If you have enough RAM). ...
3
votes
1answer
420 views

Cannot create NFS on a tmpfs drive

OS: SLES 12.3 Running these commands: mkdir /foo/ramdisk mount -t tmpfs -o size=100m tmpfs /foo/ramdisk Creating a NFS on /foo/ramdisk produces this result when I run showmount -e <IP>: ...
0
votes
1answer
149 views

Question about RAM and SWAP on Windows Host OS

i've read and appreciated the original post by Thompsonn. At work i'm forced to use Windows as the host OS (I work with and prefer Linux) because of the mandatory requirements in certain applications ...
1
vote
2answers
1k views

How do you create block RAM Disks on demand?

I learned that I can do modprobe brd rd_nr=1 rd_size=4585760 max_part=1 if I want to create a ram block device at /dev/ram0 but lets say I want to flush the device (to free the ram), then delete it ...
1
vote
0answers
102 views

Anything-sync-daemon is not making backup snapshots

I have Anything-sync-daemon ("asd") installed and minimally configured according to this page: Anything-sync-daemon - ArchWiki Running asd p gives the following output: Anything-sync-daemon v5.85 ...
2
votes
1answer
399 views

Generate bootable ELF from bootloader, kernel, device tree, ramdisk

I'm new to Linux Kernel programming, and am pretty stuck with (what I think is) the last step in building my bootable image. For some background, we are trying to upload a complete OS image onto the ...
0
votes
1answer
169 views

Linux: How to create and attach a RamDisk without mounting it?

On Linux, how can a RAM disk be created and attached without being mounted? Moreover, how can the device name like /dev/sdb assigned to the RAM disk be found? Finally, how can the RAM disk (which is ...
1
vote
2answers
4k views

How can I create an ext4 ramdisk?

First, I have create the directory that I will want to mount to. mkdir /mnt/ramdisk Now, I could easily turn this into a ramdisk using ramfs or tmpfs via mount -t tmpfs -o size=512m tmpfs /mnt/...
-3
votes
1answer
142 views

If I have a RAM Disk, for what do I need system RAM

I was wondering, if I have a RAM Disk and put my whole OS onto that RAM disk, then I guess there is no use for the system RAM anymore, since fetching it from there is not faster than fetching it from ...
1
vote
0answers
337 views

Using compressed RAM disks for swap in FreeBSD on an early Raspberry Pi board

I have an old Raspberry Pi one model B with 256Mb RAM with FreeBSD installed (12.0-CURRENT). Since the device has so little memory, I thought I'd try to use compressed swap in RAM, in order to achieve ...
1
vote
0answers
129 views

Define RAM disk size of a custom built kali iso when booted live

I'm building a custom kali iso and would like to define the size of the root / (tmpfs) partition when it's booted live from an USB. Is this possible? I've got 32G of ram, and the ram disk size is 50%=...
1
vote
1answer
1k views

Is there ramdrive on AWS EC2 instance by default?

I found my df command says the following: $ df Filesystem 1K-blocks Used Available Use% Mounted on udev 31428656 0 31428656 0% /dev tmpfs 6288016 9136 ...
6
votes
3answers
3k views

RAM alternative to swap partion or swap file on an SSD

My Debian stretch system has a lot of RAM. Currently, it uses an encrypted swap partition on the SSD, but under normal conditions I don't ever expect lack of memory to cause it to be used. But ...
0
votes
1answer
166 views

moving /media mounted drives on tmpfs

I recently bought a new usb to run my linux-on-the-go system. I am aware of block limited write-cycles, so I am trying to minimize disk writes. I know that when I insert a disk, it mounts inside /...
1
vote
0answers
461 views

How to reserve ram for ramdisk (tmpfs) but also prevent it from swaping

My scenario: I have a server with 256GB of ram and I want to create a ram disk, with let's say a 224GB size. Now, I know that there are two main types for ramdisk - ramfs & tmpfs (taken from here)...
1
vote
1answer
673 views

How to specify U-Boot not to use uramdisk

I would like to specify U-Boot not to use uramdisk to boot because my ramdisk is part of the Linux image. The problem is that even if I choose sdboot which I modified and call "bootm {linux} - {...
0
votes
0answers
299 views

Benchmark /dev/shm

I am currently developing a software that needs fast inter-process and temporary I/O communication (images as well as big hdf5 arrays). The "lifetime" of the data is different and dependent on several ...
1
vote
0answers
30 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 ...
6
votes
1answer
707 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 ...
2
votes
1answer
423 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
589 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
500 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 ...
2
votes
1answer
702 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 ...
2
votes
0answers
480 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
2k 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 ?
2
votes
0answers
143 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
2k 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
284 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 ...
2
votes
2answers
3k views

How to create a real RAM disk that reserves memory?

I've been shortly using the following 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 ...
1
vote
1answer
2k views

How to create and mount a RAM disk at computer startup?

This is how I create RAM disk manually on Linux Debian Jessie: mount -o size=1G -t tmpfs none /mnt/tmpfs My question is, how do I make this automatic at each computer startup?
2
votes
1answer
515 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 ...
-4
votes
2answers
821 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 ...
9
votes
3answers
8k 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
807 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
829 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/...
9
votes
7answers
31k 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 ...
8
votes
1answer
817 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" but ...