2016年4月18日 星期一

CentOS 7.2 Kernel升級

CentOS 7.2的原始kernel是3.10.0-327
目前最新版的kernel是4.5.0-1

人性始終來自帶墮性
人的努力,原自於不想出力

以前的kernel升級,必須要自已去下載binary,依自已的需求,調整內容
再complier過,才能放上去更新
一個不小心,可能就會讓系統崩潰

現在…似乎已經沒這麼麻煩了
(以下流程來自:http://www.ostechnix.com/install-linux-kernel-4-4-5-centos-ubuntu/)

Add ELRepo GPG key:
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Then, add ELRepo in CentOS 7 / RHEL 7 / Scientific Linux 7 using command:
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
Enable ELRepo fastest mirror using by installing the following package:
# yum install yum-plugin-fastestmirror
(fastestmirror似乎是CentOS7.2預設安裝,我執行這個命令時,告訴我已經有安裝了)

We have added the ELRepo. Now, it is time to install Linux kernel 4.4.1 LTS.
Let us find out the current version details with command:
# uname -r
Sample output:
3.10.0-123.9.3.el7.x86_64
As you see, the installed version is 3.10.0-123.9.3.el7.x86_64.
Install Linux Kernel 4.4.1 LTS using command:
# yum --enablerepo=elrepo-kernel install kernel-ml
到這裡已經安裝完成
再來只要確認GRUB預設是以kernel4.5.0-1開機,然後重新開機,就完成了





在Windows中產生大檔案

Linux有dd可以產生大檔,Windows則可以利用Fsutil去產生
執行cmd.exe,然後執行以下命令

fsutil createnew c:\bigfile.txt 6294967285

就會在C槽下產生一個約6GB的檔案,檔名為bigfile.txt