![]() I also use zram0 for swap and my lsblk -all shows zram0 as well. I have actually tested lsblk -all with ramdisks that do use block devices. There is no block device in this scheme at all. This is why lsblk -all prints no entry related to tmpfs. There is no block device between the filesystem and RAM. In case of tmpfs files exist in a filesystem existing in RAM. The files will exist in the filesystem existing in the block device existing in RAM. To store files in it, you need to create a filesystem (like in any other block device) and to mount the filesystem somewhere. With modprobe brd rd_nr=1 rd_size=… you can create /dev/ram0 which is a block device that uses RAM. Mount -t tmpfs … creates and mounts a filesystem that exists in RAM, not in some block device. Your "RAMdisk" is tmpfs, it does not use any block device whatsoever. How come RAMdisk not visible via lsblk -all? to lsblk -all -list -list, not to sole lsblk -all. Your lsblk -all is equivalent to lsblk -a -l -l i.e. Sda2 8:2 0 118.7G 0 part /var/snap/firefox/common/host-hunspell Tmpfs 26214400 23552000 2662400 90% /mnt/ramdisk1Ĭonfirmed ramdisk1 using GB df -BG |grep -color=always -i 'sd\|nv\|blocks\|ram'įilesystem 1G-blocks Used Available Use% Mounted onĭoes not show ramdisk. Time sudo dd if=/dev/zero of=/mnt/ramdisk1/zero01G bs=1M count=1000Ĭonfirmed ramdisk1 df |grep -i 'blocks\|ramdisk'įilesystem 1K-blocks Used Available Use% Mounted on Made 2 files 22GB and 1GB on ramdisk1 time sudo dd if=/dev/zero of=/mnt/ramdisk1/zero22G bs=1M count=22000 Sudo mount -t tmpfs -o rw,size=25G tmpfs /mnt/ramdisk1 Made a 25GB ramdisk1 with 3 commands: sudo mkdir /mnt/ramdisk1 How come RAMdisk not visible via "lsblk -all" ?ĭoes anyone else have the same problem? df # shows ramdiskĭpkg -l |grep 'util-linux' |awk ''
0 Comments
Leave a Reply. |