인공지능 모델을 돌리고, 거주지를 옮긴 이후 리눅스를 켰을 때 검은 화면이 뜨는 에러가 발생했습니다.
해결해보려고 시도했으나, 결국에는 다시 리눅스 민트로 부팅함으로써 해결했습니다.
아래부터는 해결 시도에 관해 서술하겠습니다.
시도 1 : 내부적 문제 해결
처음에는 'config failed, hub doesn't have any ports' 에러가 발생했습니다. NVIDIA 드라이버, gdm3나 lightdm에 오류가 있다고 판단하여 아래 글 내용을 비롯해서 여러 글을 찾아보며 다시 설치하고 재부팅하길 반복했으나, 그 다음에는 검은 화면에 흰 색 커서가 뜨는 에러가 발생했습니다.
https://discourse.ubuntu-kr.org/t/hub-8-0-1-0-config-failed-hub-doesnt-have-any-ports-err-19/48938/8
https://ko.linux-console.net/?p=22462
따라서 아래 글을 따라해보았으나, 해결되지 않아 다른 방법을 시도했습니다.
https://abidan-korea.tistory.com/entry/ubuntu-모니터-검은화면-나오는-경우-해결방법
시도 2 : Windows 11 설치
리눅스로 무언가를 할 수 없다고 판단하여 갖고 있는 맥북으로 Windows 11 부팅 USB를 만들었습니다. 이때 FAT32 특성상 마운트된 파일들 전체를 복사해 붙여넣을 수 없었어서 2개의 USB를 사용했습니다.
https://shanepark.tistory.com/m/399
https://gist.github.com/bmatcuk/fda5ab0fb127e9fd62eaf43e845a51c3
이때 진행되다가도 '새 파티션을 만들 수 없습니다' 에러가 계속 발생하여 위 방법도 포기하였고, 리눅스 민트 부팅 USB를 다시 만들어 설치해 해결하였습니다.
+2024/03/10 해결
아래 사이트의 코드를 작동시켰더니 똑같은 에러가 발생했습니다.
https://cryptosalamander.tistory.com/95
https://hyen4110.tistory.com/m/108
특히 아래 코드가 치명적이었습니다.
sudo service lightdm stop // x server 중지
sudo init 3 // runlevel 3으로 조정
sudo ./cuda_10.2.89_440.33.01_linux.run // 설치 실행
<< 설치 완료 >>
sudo service lightdm start // x server 재시작
lightdm 관련된 코드를 건들면 위와 같은 에러가 발생되는 것으로 추정됩니다.
이는 아래 코드를 실행시킴으로써 해결했습니다!😎
sudo -i
vi /etc/lightdm/lightdm.conf
#lightdm.conf
[LightDM]
logind-check-graphical=true
아래 코드들은 추가적으로 영향을 미쳤을 것으로 추정되는 커맨드입니다.
sudo apt-get update
sudo apt-get upgrade
sudo ubuntu-drivers autoinstall
vi /etc/lightdm/lightdm.conf
#lightdm.conf
[Seat:*]
autologin-user=username
+2024/03/23
다시 똑같은 에러가 발생하여, 우분투로 다시 부팅했습니다...
https://amkorousagi-money.tistory.com/entry/우분투-부팅-usb-설치-방법-우분투-설치-파티션-설정
기존 리눅스 민트용 파티션과 우분투용 파티션을 분할하였습니다.
리눅스 민트에서 발생했던 에러는 추후에 다시 시도해보겠습니다 😢
---
참고로, 우분투에서 파이어폭스 등 웹 브라우저를 실행할 시 깨지는 현상이 발생하는데, 이는 외부 그래픽 카드와 관련된 문제인 것 같습니다.
이는 Nvidia X server settings를 열어서 PRIME Profile을 NVIDIA(Performance Mode)로 변경시켜주면 됩니다.
Reference :
https://abidan-korea.tistory.com/entry/ubuntu-모니터-검은화면-나오는-경우-해결방법
https://www.reddit.com/r/linux4noobs/comments/l4ctdq/lightdm_dont_start/
https://wiki.archlinux.org/title/LightDM#LightDM_does_not_appear_or_monitor_only_displays_TTY_output
'개발 일지, etc > Linux' 카테고리의 다른 글
[Ubuntu(Linux)] PrintScreen key가 없는 키보드에서 스크린샷 찍는 법 (0) | 2024.04.27 |
---|---|
[Ubuntu(Linux)] 리눅스 서버 구축 2. CUDA 세팅, SSH 및 원격 데스크탑 부팅 설정(+2024/04/27 수정) (1) | 2024.03.03 |
[Ubuntu(Linux)] 리눅스 서버 구축 1. 가상환경 및 주피터 노트북 세팅 (2) | 2024.03.03 |
[Linux Mint] Linux Mint 21.2에 virtualbox 설치 (0) | 2024.02.03 |
[Linux Mint] Linux Mint 21.2에서 Bluetooth 5.3 dongle 설치 및 장치 연결 (2) | 2024.01.10 |