Every time I open my ubuntu 10.04 the boot stucks to this screen and if I press enter I can write commands like this..
<initramfs> #command#
what happened?
I realy need some help please..
Every time I open my ubuntu 10.04 the boot stucks to this screen and if I press enter I can write commands like this..
<initramfs> #command#
what happened?
I realy need some help please..
Last edited by al1x; August 27th, 2010 at 12:09 AM.
Do you first get an error message saying that it can't find the root device, or something like that? It sounds like grub (the bootloader) may have somehow lost track of where your ubuntu install is on the drive. That can be fixed. But first, so we know what we're actually trying to fix, give us as much of the error messages you're getting as you can.
ok , this is the message I get before the screen roll :
Killed
mount: mounting /dev on /root/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
No init found. Try passing init=bootarg
My problem is that when I boot from Live CD although I 've installed Ubuntu 10.04LTS from the same CD now it doesn't proceed to the ubuntu live cd(It's just loading until I see the green light of my dvd drive turning off and I'm getting stuck to ubuntu logo loading screen) and I can't have access to the terminal to fix the problem..So what can I do ? Any grub edit that I can do or something like this without the cd? Plus I have access to some limited commands when the screen stops moving, like this:
<initramfs> #x command#
Last edited by al1x; August 31st, 2010 at 12:55 AM.
What's happened is that grub has lost track of where your operating system is located.
You want to stop the process at the initial grub screen that shows you the choices of operating systems. If you don't see choices, press the Shift key from the beginning of booting until a menu appears.
Press c for command, and then start the process of looking for where the system thinks your OS is located. (Or, if you're sure you know, you can skip the various "ls" commands at the beginning.) (This is taken from Grub2 - Rescue Mode.)
At the grub> prompt, typeThat will list all the drives and partitions which grub can look at to find an OS. (hd0) is the first drive. (hd0,1) is the first partition on that drive. You need to type "ls (hd0,1)" (without quotes) at the grub prompt and see whether there are files called something like "vmlinuz" and "initrd" there. I don't know what your setup is, so you may have a lot of partitions to check until you find the one you need.Code:ls
Then go through the following steps:Assuming this works and it then proceeds to boot into your linux install, be sure to do the following before you reboot. It will write the correct values to your grub files.Code:1. ls (hdX,Y) [replace X,Y with the right numbers, eg (hd0,3) for 3rd partition, 1st drive or (hd1,5) for 2nd drive, fifth partition] 2. set prefix=(hdX,Y)/boot/grub 3. set root=(hdX,Y) 4. set 5. ls /boot 6. insmod /boot/grub/linux.mod 7*. linux /vmlinuz root=/dev/sdXY ro [use the usual linux way of referring to partitions: sda1 would 1st drive, first partition; sda3: 1st drive, 3rd partition; sdb5: 2nd drive, 5th partition] 8. initrd /initrd.img 9. bootCode:sudo update-grub
I 've tried them all several times and I'm getting the same screen with the same issues
My version of grub is GNU GRUB 1.98-1ubuntu7 if that matters..I 've even tried the 2 other commands(root=(loop0) and vmlinuz=.......) for wubi installs because I've installed the ubuntu 10.04 side by side with winxp.But when I set root=(loop0) then I press ls /boot and I get the message "no such disk".hmm..
possibly best to reinstall grub2.
boot your install disk.
from root
1) blkid
< find the partition you installed ubuntu on
2) mount /dev/sdax /mnt <<< where x is partion # containing ubuntu and 'a' assumes this is your first hard drive (if have > 1)
3) mount --bind /sys /mnt/sys
4) mount --bind /dev /mnt/dev
5) mount --bind /proc /mnt/proc
6) chroot /mnt
7)update-grub
8) grub-install /dev/sda <assumes the you want grub to be installed on your first hard drive ('a')
9) reboot
Last edited by hhoyt; August 31st, 2010 at 05:02 PM. Reason: clarify 'a' as germane to first hard drive
Hmm. Mysterious. And frustrating. hhoyt's suggestions are good ones. (Note that the smiley face at 8 ) is what happens when you need to write "8" followed by a ")". They need to come up with a way to have a literal 8 ) without using Code tags!)
The other thing that would be helpful for troubleshooting is if there was complete information on your situation. The best thing would be if you could run bootinfo script, but that requires at least a LiveCD, which isn't working on your system. What are all the drives and partitions on your system, which OSes do you have on which one, and which are supposed to the bootable ones?
I have the same problem (busy box, initramfs, ubuntu 10.10) and I've tried the commands quixote have suggested and they didn't work ( I've noticed that my grub knows all the info that he suggested to supply, when I tried to edit the grub) and then tried to do as "hhoyt" suggest but when I run:
the terminal gives nothing as it's still working and it never finishes!!Code:mount /dev/sda6 /mnt
what should I do?
my problem seems to be as this guy says.
I did a system update before the problem and I belive I downloaded a new kernal and it looks like initrd didn't rebuild right.
the guy solved the problem by copying a file from another installation on the same computer (as he has 4 different installations with the same kernal). but I don't have a different installation and I have no idea what to do.
Bookmarks