Page 1 of 1

Ubuntu 7 in VMware, Grub not working after updation

Posted: Sun Aug 19, 2007 5:16 pm
by kadnan
Salam All

Last night I installed Ubuntu 7 on VMware. Everything went prety fine including setup of wireless Internet on my laptop. Last night I updated my distro but morning when I rebooted, i got following error:

Code: Select all

BusyBox v1.1.3 (Debian 1:1.1.3-2ubuntu3) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off

I also get this after pressing ctl+f1

Code: Select all

Booting 'Ubuntu, kernel 2.6.17-10-386'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmliniz-2.6.17-10-386 root=uuid=9c4db707-6051-46b2-8dd6-3f7c7ae0fb95 ro quiet splash
  [Linux-bxImage, setup=0x1c00, size=0x17e851]
initrd /boot/initrd.img-2.6.17-10-386
  [Linux-initrd @ 0x1f976000, 0x6791c0 bytes]
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
mount: Mounting /sys on /root/sys failed: No such file or directory
mount: Mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init

this is seemed due to grub pointing to wrong file hard disk instead of hda1, how can i edit and which file so that I could make it to point hda1?

Posted: Sun Aug 19, 2007 7:04 pm
by lambda
at the grub menu, edit the menu entry that you use to start ubuntu. it should look something like

Code: Select all

title           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=a100c211-ba8e-45d6-85e6-f45d56294784 ro quiet splash
initrd          /boot/initrd.img-2.6.20-16-generic

change the kernel line to replace root=.... with root=/dev/hda1 and also remove "quiet splash" from the line
boot up with the new entry, and see if it works.

the uuid entries are supposed to be better than partition names because you can move the drives around, and the kernel will still find the right partition to boot off of.