Problema al generar grub.cfg

Problema al generar grub.cfg

Cuando ejecuté update-gruben la terminal me dio este mensaje:

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

¿Sabes por qué sucede esto? Me refiero a estas dos líneas que comienzan con grep Nunca las he vuelto a ver.

Aquí también está el resultado que fdisk -ldio:

 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

Respuesta1

En primer lugar, no parece haber ningún problema ya que el comando finaliza sin errores. Sin embargo, deberías tener /proc/mountsy /proc/swaps. Quizás su /proc no se montó o se desmontó.

Verifique que su /etc/fstab tenga una línea proc /proc proc nodev,noexec,nosuid 0 0. Luego intente sudo mount /procver si los archivos han vuelto.

información relacionada