Mark Zhang

@markz

Prime membership

Joined on Apr 14, 2016

  • Shrink VHDX for Linux VM Shrinking the VHDX size may corrupt the GPT table, causing the VM to fail to boot. As a result, VHDX shrinking should only be performed while the VM is powered on. Additionally, Hyper-V can only shrink a VHDX if there are no checkpoints. sudo gdisk /dev/sda :::spoiler GPT fdisk (gdisk) version 1.0.7 Warning! Disk size is smaller than the main header indicates! Loading secondary header from the last sector of the disk! You should use 'v' to
     Like  Bookmark
  • Direct Download Links Windows Server 2016 ZH-CHS EN-US FR DE IT JA RU
     Like  Bookmark
  • [ToC] Newline Character Classic Mac OS: \r Unix-like: \n Windows: \r\n IP Public Network vs Private Network
     Like 1 Bookmark
  • 1. Set/Reset root password, Network, Hostname Password: tianyun Hostname: serverX.example.com Network IP address: 172.25.X.11/24 IP gateway: 172.25.X.254 DNS: 172.25.254.254
     Like  Bookmark
  • RHCSA 2.0 === [ToC] # 模擬考試 v2.0: 1h - 模擬考試中所有 X 均為當前主機名數字 # 第一題: 重置 root 密碼,並按要求設置網路和主機名稱,IP設置方法為靜態 - 主機名稱: serverX.example.com - IP 位址: 172.25.X.11 - 網路遮罩: 255.255.255.0 - Gateway: 172.25.X.254 - DNS: 172.25.254.254 ### 解題 1. 重置 root 密碼 1. linux16 ... `rd.break console=tty0` 2. switch_root:/# `mound -o remount,rw /sysroot` 3. switch_root:/# `chroot /sysroot` 4. sh-4.2# `passwd` 5. sh-4.2# `touch /.autorelabel` 6. sh-4.2# `exit` 7. switch_root:/# `mount -o remount,
     Like  Bookmark