Create Disk Partition With GNU Parted

My favourite tool to create disk partitions on Linux is c[fg]disk. cfdisk used to create MBR based partition, and cgdisk is for GPT one. Today, I want to learn to use another tool called GNU Parted. After plugging an external disk, we can use udiskctl command to identify the disk device. # udisksctl status MODEL REVISION SERIAL DEVICE -------------------------------------------------------------------------- Samsung SSD 850 EVO 250GB EMT01B6Q S21MNXAG919308T sda ST2000DM001-1ER164 HP51 Z4Z46TMA sdb ST2000DM001-1ER164 HP51 Z4Z46W3E sdc Samsung SSD 850 EVO 250GB EMT01B6Q S21MNXAG919312Y sdd Samsung SSD 840 EVO 250G 0309 533144424E4541443837343335324120 sde The last Samsung SSD 840 (/dev/sde) is the one that I’m going to work with. ...

May 20, 2020 · 2 min · 419 words · kenno

BIOS Firmware for ThinkPad X1 Carbon Gen 6 1.48

On May 15, Lenovo released a new BIOS firmware for ThinkPad X1 Carbon Gen 6. The latest of the version of the firmware is 1.48. (There previous version 1.47 was withdrawn for some unknown reason.) Changes in this releases: CHANGES IN THIS RELEASE Version 1.48 [Important updates] - Update includes a security fix. [New functions or enhancements] - Updated the Diagnostics module to version 04.12.001. [Problem fixes] - Fixed an issue where Force PXE boot by Intel AMT does not work. As of today, this new firmware is not yet available via LVFS on Fedora 32. So for those who are impatient like me, we can install this firmware ourselves. Warning: In no way will I be liable if your brick your own machine when you follow this guide! ...

May 16, 2020 · 3 min · 469 words · kenno

BIOS Firmware for Thinkpad P1 Gen1 1.29

It’s almost exactly one month from the last time Lenovo released (v1.28 of ) the BIOS firmware for ThinkPad P1 Gen 1. Apparently, v1.28 firmware has been marked “Withdrawn” according to this n2eul21w.txt. The changes in this release v1.29 is: CHANGES IN THIS RELEASE Version 1.29 [Important updates] - Addresses CVE-2019-0154 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-0154) Refer to Lenovo's Security Advisory page for additional information about LEN-27714 "Multi-vendor BIOS Security Vulnerabilities". (https://support.lenovo.com/us/en/product_security/LEN-27714) [New functions or enhancements] - Updated the CPU microcode. [Problem fixes] - Nothing This firmware supports both ThinkPad P1 Gen1 and ThinkPad X1 Extreme 1 listed below: ...

May 16, 2020 · 2 min · 340 words · kenno

Create Folder Recursively With Powershell

Let’s say I want to create the following directories: C:/Program Files/MiKTeX 2.9/tex/latex/math using PowerShell because, as you may guess it, it’s a Windows directory structure. Here’s the command to do that: PS C:\> New-Item -Type Directory -Path "C:/Program Files/MiKTeX 2.9/tex/latex/math" The command seems simple enough. So why did I create this post? Well, guess what? I have to Google this out for the 3rd time this month. From now, if I need to look it up again, I can just go to https://blog.khmersite.net/tags/powershell/. ...

May 14, 2020 · 1 min · 91 words · kenno

Remove Kernels on Fedora

I’m still running Fedora 31 on my main desktop though Fedora 32 beta has been out for a while. The only reason that stops me from jumping to F32 now is because ZFS 0.8.3 is not compatible with the kernel 5.6.* on F32. Rumor has it, ZFS 0.8.4 will support kernel 5.6. Tonight, while doing the system update with sudo dnf update -y on F31 desktop, I noticed that the kernel for F31 is now kernel-5.6.6-200.fc31.x86_64. Wait, what? I didn’t interrupt the update process, and let it run till finish. ...

April 26, 2020 · 2 min · 217 words · kenno