닭발개발

Ubuntu 부팅에러 initramfs 본문

Linux

Ubuntu 부팅에러 initramfs

D269 2024. 2. 28. 15:23
728x90

 

평화롭게 ubuntu를 사용하던 와중...

갑자기 (initramfs) (initramfs) (initramfs) (initramfs) (initramfs) (initramfs) 이러면서 ubuntu가 실행이 안됨....

 

 

 

 

진짜 ㅂㄷㅂㄷ...

 

 

암튼 에러는

BusyBox v1.xx.x(Ubuntu 1:1:xx.x-x ubuntu1) built in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)_

 

이런식으로 뜸

 

 

 

구글링해보니

이런 상황은

 

우분투가 멈추어서 강제로 컴퓨터를 끄고 다시 부팅을 했다.
이 과정에서 Busybox로 빠졌다.

  • Busybox
  • 우분투 복구모드로 간단한 명령어로 OS의 불량이나 오류 부분을 고칠 수 있다.
  • initramfs
  • 명령어를 입력할 수 있는 프롬프트

라고 한다.

 

 

 

방법 1.

  1. fsck -y /dev/sda1
  2. 위의 명령어를 치면 오류를 고치겠냐고 질문이 나오고 y를 입력한다.(Enter)
  3. reboot or exit 명령어로 재부팅한다.

방법 2.

위의 fsck -y /dev/sda1 명령어 없이 바로 exit를 해도 된다.

방법 3.

명령어 쳤지만 부팅이 안될 때(fsck -y /dev/sda1)

위의 명령어를 치고 나면 재부팅이 되어야 하는데 다시 initramfs가 나올 수 있다.
이 때는 바로 fsck [대상경로]의 명령어로 실행시키면 된다.

/dev/sda9: UNEXPRECTED INCONSISTENCY; RUN fskc MANUALLY.
fsck exited with status code 4
The root filesystem on /dev/sda9 requires a manual fsck

Busybox v1.xx.x (Ubuntu 1:1.xx.x-x ubuntu1) built in shell(ash)
Enter 'help' for a list of built-in commands.

(initramfs)_

이렇게 나오면 바로 대상경로를 실행시키면 된다.
fsck /dev/sda9

[참고] 대상경로는 사용자마다 다를 수 있으니 본인의 실행시켜야하는 대상경로를 확인하자.

 

 

 

나는 방법 3을 사용함

명령어를 쳤는데도 부팅이 안된다구요..

 

 

 

 

 

 

 

 

참고 : https://velog.io/@reveloper-1311/%EC%9A%B0%EB%B6%84%ED%88%AC-%EB%B6%80%ED%8C%85%EC%97%90%EB%9F%AC-initramfs

728x90
반응형

'Linux' 카테고리의 다른 글

Ubuntu에 tomcat 설치, jndi로 mariadb 연결, jsp 화면 보기  (0) 2024.02.28
[Linux] RAID, RAID-1, RAID-5  (0) 2023.11.21
[Linux] umask 값  (0) 2023.11.16
[Linux] touch 명령어  (0) 2023.11.16
[Linux] awk와 gawk의 차이점  (0) 2023.11.09