[Linux TIPS] เวลา export tmpfs (ramdisk) จาก nfs ต้องใส่ fsid option เสมอ ไม่งั้นมันจะไม่ส่ง tmpfs ไป…

[Linux TIPS] เวลา export tmpfs (ramdisk) จาก nfs ต้องใส่ fsid option เสมอ ไม่งั้นมันจะไม่ส่ง tmpfs ไป (อาจจะได้สิ่งที่อยู่ใน root parition ก่อน mount) หรือ ส่งไม่ถูกอัน (กรณีที่มีหลายอัน)

เช่น ใน /etc/fstab

tmpfs /mydir/png1 tmpfs size=1G,auto 0 0
tmpfs /mydir/png2 tmpfs size=1G,auto 0 0

ใน /etc/exports ต้องเขียนงี้

/mydir/png1 10.0.0.1(rw,async,no_subtree_check,fsid=1)
/mydir/png2 10.0.0.1(rw,async,no_subtree_check,fsid=2)

3 thoughts on “[Linux TIPS] เวลา export tmpfs (ramdisk) จาก nfs ต้องใส่ fsid option เสมอ ไม่งั้นมันจะไม่ส่ง tmpfs ไป…

  1. [Linux TIP] My CD drive in an old Notebook was broken and I wanted to install linux. A possible solution:

    #install qemu
    sudo apt-get install qemu-kvm
    #run a vm with the hdd of the notebook which is plugged into usb using a cheap ide to usb adaptor
    sudo kvm /dev/sdn -cdrom mini.iso -boot d
    #install os, plug hdd into notebook =)

    Like

Leave a comment