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?
Asked
Active
Viewed 3,322 times
1 Answers
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:
MarianoM
- 705