2019年4月1日 星期一

print_req_error message from Ubuntu 18.04.2 with Hyper-V

In the recent Ubuntu 18.04.2 on Hyper-V, I noticed that an error keeps popping up to my terminal:

[%] print_req_error: I/O error, dev fd0, sector 0

After searching the problem, the following commands help resolve the problem

Execute the following with sudo

# rmmod floppy
# echo "blacklist floppy" | tee /etc/modprobe.d/blacklist-floppy.conf 

# dpkg-reconfigure initramfs-tools

Reference:
https://tinycp.com/community/show/solved-print-req-error-i-o-error-dev-fd0-sector-0,43.html

2018年3月4日 星期日

桃園捷運機場線一週年,直達車直達環北站記實

桃園捷運機場線,開通一週年後,更新了時刻表

重點在於末班車的時間調整得更晩
另外也在網站上公佈了普通車時刻表

最後一大變更在於部份直達車,延長行駛到環北站,沿途增停高鐵桃園站

2017年12月7日 星期四

在 Ubuntu 上設置 Swap 空間

最近在使用Google Compute Engine,想要省錢,但又需要稍大的記憶體空間

看到一個基本的 Ubuntu 16.04 LTS 需要 10 GB 的空間,但實際的空間大小卻只約用到 2 GB

即然硬碟好大,就拿來玩玩 Swap 吧

下面的 script 可增加 1 GB 的 Swap 空間
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

實際運作上,swap可能會跑掉;也就是最後一行的 swapon 可能要自己手動重打一便,才可被系統抓到

參考資料: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04