2

I am here to ask you if it is possible for a ramdisk to get corrupted and if so, is it possible to verify the surface of it?

MarianoM
  • 705

1 Answers1

2

I am going to autoresponder because I have continued looking and I managed to deduce how I can check if there is a defect in the allocated space of the ramdisk.

First let's create the ramdisk. In this example it will have a size of 1 GB:

sudo mkdir -p /media/ramdisk
sudo mount -t tmpfs -o size=1024M tmpfs /media/ramdisk
sudo chmod 1777 /media/ramdisk

To make the ramdisk permanently available, add it to /etc/fstab.

grep /media/ramdisk /etc/mtab | sudo tee -a /etc/fstab

Once mounted, we proceed to install F3 rom the link of the official page F3 (Fight Flash Fraud) or with the command:

sudo apt-get update
sudo apt-get install f3

Assuming that they have installed it using the above command, in the terminal they should write the following and in the following order:

Write the data in the free space:

f3write /media/ramdisk

Read the test data:

f3read /media/ramdisk

And enjoy the storage in a space free of errors.

Sources consulted:

https://askubuntu.com/a/453755/889244

https://askubuntu.com/a/666926/889244

MarianoM
  • 705