Iniciei meu Ubuntu 9.10 hoje e apareceu a seguinte mensagem:
Gave up waiting for the root device. Common problems:
-Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
-Missing modules (cat /proc/modules: ls /dev)
ALERT! /dev/disk/by-uuid/UUID=1f8f027b-8c93-431b-a660-84821f0e2b75 does not exist. Dropping to a shell!
A primeira coisa que tentei fazer foi bootar meu PC com um Live CD do Ubuntu e entao:
# fdisk -l
Disco /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Unidades = cilindros de 16065 * 512 = 8225280 bytes
Identificador do disco: 0x3a30a838
Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1 * 1 13 102400 7 HPFS ou NTFS
A partição 1 não termina no limite do cilindro.
/dev/sda2 13 6591 52838400 7 HPFS ou NTFS
/dev/sda3 6592 9897 26555445 83 Linux
/dev/sda4 9898 38913 233071020 5 Estendida
/dev/sda5 10237 38913 230348002+ 83 Linux
/dev/sda6 9898 10235 2714922 82 Linux swap / Solaris
Vi também:
# ls -lah /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 120 2010-02-05 19:29 .
drwxr-xr-x 6 root root 120 2010-02-05 19:29 ..
lrwxrwxrwx 1 root root 10 2010-02-05 19:29 84194555-045e-456b-abaa-29b1490a19cf -> ../../sda6
lrwxrwxrwx 1 root root 10 2010-02-05 19:29 a5786993-def8-4b3a-834f-f0d7652f3f03 -> ../../sda5
lrwxrwxrwx 1 root root 10 2010-02-05 19:29 B450CF3D50CF04D8 -> ../../sda2
lrwxrwxrwx 1 root root 10 2010-02-05 19:29 C212CC6612CC60D1 -> ../../sda1
Porém, meu linux está instalado no /dev/sda3 o que não aparece na relaçao de UUIDs àcima.
Para que meu problema fosse resolvido temporariamente fiz:
Editei o /etc/fstab/ e onde encontrava-se
UUID=1f8f027b-8c93-431b-a660-84821f0e2b75 / ext3 errors=remount-ro 0 1
Troquei por:
/dev/sda3 / ext3 errors=remount-ro 0 1
E mesmo sabendo que nào é recomendado editar o /boot/grub/grub.cfg troquei onde estava:
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 1f8f027b-8c93-431b-a660-84821f0e2b75
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=1f8f027b-8c93-431b-a660-84821f0e2b75 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
Por:
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 1f8f027b-8c93-431b-a660-84821f0e2b75
linux /boot/vmlinuz-2.6.31-17-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
Só que acho que com esta atitude posso acabar tendo problemas no futuro, principalmente quando for atualizar meu Kernel via apt-get upgrade por exemplo.
Quais são as devidas precauções que devo tomar ?