2017年4月12日 星期三

install kernel 4.10 on RHEL 7

http://linux.vbird.org/linux_basic/0540kernel.php
http://elrepo.org/tiki/tiki-index.php
http://elrepo.org/tiki/kernel-ml


rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org (external link)
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

yum --enablerepo=elrepo-kernel install kernel-ml

UEFI多重開機

http://www.rodsbooks.com/refind/

UEFI不支持MBR開機 (只能用GPT)

GPT也不能再Legacy BIOS下開機了

GPT可支持2TB以上

UEFI firmware有boot manager
可在linux下用efibootmgr編輯
windows下用bcdedit編輯

windows下可用diskpart切換MBR & GPT
https://zh.wikipedia.org/wiki/%E4%B8%BB%E5%BC%95%E5%AF%BC%E8%AE%B0%E5%BD%95/

安裝時是UEFI mode就會被用GPT切割硬碟
安裝時是Legacy就是用MBR

UEFI mode安裝完Ubuntu或是RHEL,grub會安裝到 UEFI SYSTEM PARTITION的/boot/efi

Legacy mode安裝完Ubuntu或是RHEL,會安裝grub到MBR (會scan可開機partition在menu)

Edit EFI boot entries in Linux

The utility name is efibootmgr

https://wiki.gentoo.org/wiki/Efibootmgr



2017年4月10日 星期一

Install fio in Ubuntu 16.04

Download the fio from https://github.com/axboe/fio

unzip the fio-master.zip

# apt install gcc

# apt install zlib1g-dev

# apt install libaio1 libaio-dev

goto the unzipped fio-master folder
# ./configure
# make
# sudo make install