هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
الهدف
Inspect the kernel, load and block modules, set a module parameter for good, and change a kernel setting that survives a reboot.
قبل أن تبدأ
- Work on server1 as root.
المهام
ضع علامة على المهمة عندما تنتهي منها. متصفحك فقط يتذكر ذلك.
- Show the running kernel version, the boot options the kernel got, and all kernel messages of priority warning or worse from this boot.
- Show if the module
vfatis loaded. Load it, show its dependencies, then unload it. - Make sure the module
vfatis loaded at every boot. - Make sure the module
usb-storagecan never be loaded. - Show the parameters of the module
loop. Setmax_part=8for it permanently. - Turn on IP forwarding permanently and check it.
- List the installed kernels and show which one boots by default.
تحقّق من عملك
cat /etc/modules-load.d/vfat.conf
modprobe usb-storage; lsmod | grep usb_storage
cat /etc/modprobe.d/*.conf
sysctl net.ipv4.ip_forward
grubby --default-kernelmodprobe usb-storagefails or loads nothing.- After a reboot:
lsmod | grep vfatshows the module,cat /sys/module/loop/parameters/max_partshows 8,sysctl net.ipv4.ip_forward= 1.
تلميحات
اعرض التلميحات
uname -r,cat /proc/cmdline,dmesg --level=warn,err,crit,alert,emergorjournalctl -k -p warning./etc/modules-load.d/NAME.conf,/etc/modprobe.d/NAME.confwithblacklist+install … /bin/falseoroptions./etc/sysctl.d/+sysctl --system.
الحل
اعرض الحل
- Kernel information.
uname -r cat /proc/cmdline journalctl -k -b -p warning - vfat by hand.
- Load at boot.
echo vfat > /etc/modules-load.d/vfat.conf - Block usb-storage.
printf 'blacklist usb-storage\ninstall usb-storage /bin/false\n' > /etc/modprobe.d/no-usb-storage.conf - loop parameter.
- IP forwarding.
- Kernels.
ملاحظاتي
لا توجد ملاحظات بعد.