.
How come?
Code:
df # shows RAMdisk
.
How come RAMdisk not visible with 3 commands?
Code:
lsblk -all # does not show RAMdisk, but man lsblk says list RAM disk devices. lsblk -I 1 # does not show RAMdisk -I, --include <list> show only devices with specified major numbers sudo fdisk -l # does not show RAMdisk
.
Code:
man lsblk # -a, --all Also list empty devices and RAM disk devices.
.
Code:
lsblk # The command prints all block devices (except RAM disks) in a tree-like format by default.
.
Made 1 GB RAMdisk:
Code:
sudo mkdir /mnt/ramdisk sudo mount -t tmpfs -o rw,size=1G tmpfs /mnt/ramdisk
Verify 1 above RAMdisk:
Code:
df -h |grep -i 'ram\|size' # verify Filesystem Size Used Avail Use% Mounted on tmpfs 1.0G 625M 399M 62% /mnt/ramdisk
Verify 2 above RAMdisk:
Code:
df -BG |grep --color=always -i 'sd\|nv\|blocks\|ram' # drive capacity in GB
Verify 3 above RAMdisk:
Code:
mount | tail -n 1 # verify
Verify 4 above RAMdisk:
Code:
time sudo dd if=/dev/zero of=/mnt/ramdisk/zero bs=64k count=10000 655360000 bytes (655 MB, 625 MiB) copied, 0.119574 s, 5.5 GB/s
using
OS: Kubuntu 22.04.1 LTS x86_64
neofetch --stdout | grep 'OS:'
How come RAMdisk not visible lsblk -all ?
--
Comment