카테고리 없음
ubuntu 부팅 오류 - failed to create unit file already exists
woo11
2022. 1. 18. 19:08
우분투를 키니까 갑자기 터미널 화면만 뜨면서 위와 같은 에러가 발생했다.
결과적으로 아래의 링크를 참조해서 해결했는데, /etc/fstab 파일에 마운트가 두번되어있었다.
vi /etc/fstab 으로 해당 파일을 연 뒤, 이상한 부분을 주석 처리(#)했다.
필자의 경우 아래 스크립트처럼 3개의 디스크가 마운트되어있는데, 아래를 보면 /dev/sda1, /dev/sda3는 비슷하게 되어있는데, 주석처리된 /dev/sda1의 경우 다른 것들과 좀 다르다.
이게 중복으로 되어있어서 마운트가 제대로 되지 않아 에러가 났던 것 같다.
그래서 해당 부분 주석 처리 후 exit 입력하니 정상적으로 로그인이 되었다.
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults 0 1
/dev/sda3 /boot ext4 defaults 0 1
/dev/sda5 none swap defaults 0 0
# /dev/sda1 UUID=a593c2e0-b153-4d3c-aa05-91f9663995d0
LABEL=arch / ext4 rw,relatime,data=ordered 0 2
참고자료
https://bbs.archlinux.org/viewtopic.php?id=152165
systemd-fstab-generator[151]: Failed to create unit file: File exists / Newbie Corner / Arch Linux Forums
This is my first time posting to the Arch forums, but I've been using it daily for about 7 months. I am getting the error message systemd-fstab-generator[151]: Failed to create unit file: File exists when I try to boot my machine. I am using a live cd of B
bbs.archlinux.org