VGA も HDMI もついてない変な PC を Console で何とかするときの( ..)φメモメモ
Install 編
Grub メニューを普通に選ぶとこんな感じのエラーになる。
error: no suitable video mode found.
Booting in blind mode
パラメーターの調整が必要。Grubの選択画面で e を押して編集
GNU GRUB version 2.06-13+deb12u1
/----------------------------------------------------------------------------\
| Graphical install |
|*Install |
| Advanced options ... |
| Accessible dark contrast installer menu ... |
| Install with speech synthesis |
| |
| |
| |
| |
| |
| |
| |
| |
\----------------------------------------------------------------------------/
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line.
パラメーターの編集画面になるので、
GNU GRUB version 2.06-13+deb12u1
/----------------------------------------------------------------------------\
|setparams 'Install' |
| |
| set background_color=black |
| linux /install.amd/vmlinuz vga=788 --- quiet |
| initrd /install.amd/initrd.gz |
| |
| |
| |
| |
| |
| |
| |
| |
\----------------------------------------------------------------------------/
Minimum Emacs-like screen editing is supported. TAB lists
completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a
command-line or ESC to discard edits and return to the GRUB menu.
vga=788 のところをコンソールに変更。
ttyS0 は1番目のシリアルポートの意味。115200はボーレート、n8 は 8bit の意味。適宜変更
linux /install.amd/vmlinuz console=ttyS0,115200n8 --- quiet
保存とかはないので、ctrl + x で進むので、あとは通常のインストールと同じ。
インストール後、また初回は起動時にパラメーターを指定。
linux /boot/vmlinuz-6.1.0-34-amd64 root=UUID=c208c94f-0ff1-45d6-8f16-a4e169c4d2a2 ro quiet console=ttyS0,115200n8
Grub のデフォルト設定を変更
/etc/default/grub に以下青文字を追記
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"
update-grub をわすれずに。
root@debian:~# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.0-34-amd64
Found initrd image: /boot/initrd.img-6.1.0-34-amd64
Found linux image: /boot/vmlinuz-6.1.0-32-amd64
Found initrd image: /boot/initrd.img-6.1.0-32-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
root@debian:~#
コメント