Questions tagged [ramdisk]
84 questions
96
votes
8 answers
Creating a ram disk on Linux
I have a machine with 62GB of RAM, and a trunk that's only 7GB, so I thought I would create a RAM disk and compile there. I am not a Linux expert. I found instructions on the internet to create the RAM disk:
mkfs -q /dev/ram1 8192
but I changed…
Frank
- 961
- 1
- 7
- 3
19
votes
9 answers
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 within RAM? I know a live disc can be booted with…
user208145
- 2,437
- 2
- 20
- 21
13
votes
2 answers
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 block device.
This arises from the necessity to use…
qstack
- 233
- 2
- 5
12
votes
1 answer
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 part of the tmpfs?
It brings me to another thing I…
Engineer999
- 1,111
- 2
- 15
- 32
10
votes
3 answers
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 on bootup:
During the installation,…
Programster
- 2,157
- 9
- 23
- 35
9
votes
1 answer
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 they seem to require the major and minor number…
weirdbluelights
- 91
- 3
8
votes
3 answers
Ubuntu 21.04 hangs at "loading initial ramdisk" after kernel update with LUKS
I've reproduced this twice from a fresh install - the setup initially works fine, but when a kernel update is applied, the system hangs on reboot. Selecting the older kernel I have available from GRUB works fine.
System details:
XPS 13…
Bereded
- 81
- 1
- 2
8
votes
3 answers
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 turning off swap completely is a bad idea according to…
user87218721
- 79
- 1
- 3
7
votes
1 answer
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 drive by the benchmarked application. My problem…
LaszloLadanyi
- 143
- 5
7
votes
0 answers
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 filesystem
I'm running on a SSD-only system, with low…
mickael9
- 171
- 3
6
votes
1 answer
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 backups destroyed. As a result, the data could…
Schives
- 699
- 4
- 12
6
votes
2 answers
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?
Thomas Keller
- 62
- 1
- 3
- 16
5
votes
1 answer
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 this is done by adding the MemFree, Buffers and…
dfens123
- 123
- 4
5
votes
1 answer
How to deallocate Linux RAMdisk
I am having trouble to deallocate RAMdisk in Linux.
I think that blockdev --flushbufs /dev/ram0 used to work in the past.
But now:
cat /dev/urandom > /dev/ram0
md5sum /dev/ram0
c71df700969640324b201ae5f7a96c41 /dev/ram0
blockdev -v --flushbufs…
John Lee McMahon
- 841
- 4
- 6
5
votes
1 answer
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 :
clnt_create: RPC: Program not registered
When I remove the…
Peter VARGA
- 992
- 3
- 11
- 28