2021年10月11日 星期一

centos 更換主機版無法開機

 https://wiki.centos.org/zh-tw/TipsAndTricks/CreateNewInitrd


建立一個新的起始用 RAM 磁碟映像


以 CentOS 的安裝碟開機(例如首張 CD 或 DVD)。

在 boot: 提示符輸入 linux rescue。


以讀寫模式掛載所有檔案系統。




mount --bind /proc /mnt/sysimage/proc

mount --bind /dev /mnt/sysimage/dev

mount --bind /sys /mnt/sysimage/sys

chroot /mnt/sysimage

在採用多路徑主目錄('/')的 CentOS7 下,請先執行以下指令,然後才 chroot 進入 '/mnt/sysimage':


mount --bind /run /mnt/sysimage/run

systemctl start multipathd.service








https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/updating-drivers-during-installation_installing-rhel-as-an-experienced-user#performing-an-assisted-driver-update_updating-drivers-during-installation



http://cjcheema.com/2019/06/how-to-recover-or-rebuild-initramfs-in-centos-7-linux/


How to recover or rebuild initramfs in CentOS 7 Linux


https://access.redhat.com/discussions/3722151



https://bugs.centos.org/view.php?id=16898



http://elrepoproject.blogspot.com/2019/08/rhel-80-and-support-for-removed-adapters.html



2021年10月6日 星期三

2/8/10/16進制

 


hexadecimal 16

decimal 10

octal 8

binary 2


4bit 2補數


0    0000

1    0001

2    0010

3    0011

4    0100

5    0101

6    0110

7    0111

8    1000   -8

9    1001   -7

10 a 1010   -6

11 b 1011   -5

12 c 1100   -4

13 d 1101   -3

14 e 1110   -2

15 f 1111   -1



16bit 2補數

0x7fff = 32767

0x8000 = 32768, -32768



32bit 2補數

0x7fffffff = 2147483647

0x80000000 = 2147483648,  -2147483648



1k = 1024 = 0x400

4k = 4096 = 0x1000

8k = 8192 = 0x2000 


8khz sampling rate, period 125us, 0.125ms


2021年8月4日 星期三

linux 8TB badblocks

 "Value too large for defined data type"


sudo -n blockdev --getbsz /dev/sdX



sudo badblocks -t random -w -s -b {blocksize} /dev/sdX



https://davejansen.com/use-badblocks-to-check-larger-hard-drives/


2021年7月5日 星期一

手機 realme x50 android

 https://www.gsmarena.com/realme_x50_5g-10319.php



手機 realme x50 android



2020 8月發行


6GB ram, 128GB 


6.57 吋


qualcomm 765



usb type-c



wifi 802.11abgnac



1080x2400


2sim


Android 10

手機 lg velvet android

 https://www.gsmarena.com/lg_velvet_5g-10209.php



手機 lg velvet android



2020 5月發行


6GB ram, 128GB 


6.8 吋


qualcomm 765



usb type-c



wifi 802.11abgnac



1080x2460


2sim


Android 10

2021年3月24日 星期三

手機 ASUS ZenFone (A400CG)


asus ZenFone T00I A400CG



https://www.gsmarena.com/asus_zenfone_4_(2014)-5951.php


asus ZenFone 4 t00I A400CG


ww ASUS ZenFone (A400CG)(T00I)軟體版本: V6.6.3 (Android 4.4) 



ram 1G/ ROM 4G


Intel Atom Z2520

Dual-core 1.2 GHz


4.0 inches, 45.5 cm2 (~59.6% screen-to-body ratio)


Wi-Fi 802.11 b/g/n, Wi-Fi Direct, hotspot



https://www.asus.com/tw/supportonly/ASUS%20ZenFone%20A400CG/HelpDesk_BIOS/

2021年3月12日 星期五

顯示解析度列表

 


https://en.wikipedia.org/wiki/Graphics_display_resolution


1920x1080 fhd (16:9)


1400x1050 sxga+ (4:3)


1280x960 sxga- (4:3)



1280x1024 sxga (5:4)


 

1600x1024 wsxga (3:2)