grub.cfg 생성 시 문제

grub.cfg 생성 시 문제

터미널에서 실행했을 때 update-grub다음 메시지가 표시되었습니다.

root@ThinkPad-W520:/dev# sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-25-generic
Found initrd image: /boot/initrd.img-3.5.0-25-generic
Found linux image: /boot/vmlinuz-3.5.0-23-generic
Found initrd image: /boot/initrd.img-3.5.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
grep: /proc/mounts: No such file or directory
grep: /proc/swaps: No such file or directory
Found Ubuntu 12.04.2 LTS (12.04) on /dev/sda1
Found Windows 8 (loader) on /dev/sda3
done

왜 이런 일이 일어나는지 아십니까? 나는 이 두 줄을 언급하고 있는데, grep 나는 이것을 다시는 본 적이 없습니다로 시작합니다.

다음은 또한 다음과 같은 결과를 fdisk -l제공합니다.

 Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   671326207   335662080   83  Linux
/dev/sda2       671328254   703326207    15998977    5  Extended
/dev/sda3   *   703326208   704043007      358400    7  HPFS/NTFS/exFAT
/dev/sda4       704043008   937699327   116828160    7  HPFS/NTFS/exFAT
/dev/sda5       671328256   703326207    15998976   82  Linux swap / Solaris

답변1

우선 명령어가 에러 없이 끝나서 문제는 없을 것 같습니다. 그러나 /proc/mounts와 가 있어야 합니다 /proc/swaps. 아마도 /proc가 마운트되지 않았거나 마운트 해제되었을 수 있습니다.

/etc/fstab에 줄이 있는지 확인하세요 proc /proc proc nodev,noexec,nosuid 0 0. 그런 다음 sudo mount /proc파일이 다시 있는지 확인하십시오.

관련 정보