robheus
April 13th, 2010, 05:11 PM
I am using Ubuntu from a Wubi installation under Windows XP.
The ubuntu installation is on the second partition of my laptop drive, installed on d:\ubuntu\disks\root.disk.
The (original) kernel was version 2.31-14.
Now I installed a new kernel (2.31-20) with aptitude, but when choosing that kernel from the Grub menu it says: kernel not loaded.
Thereafter I installed kernel sources (2.33-2), and made a package which I then installed.
But then I guess I have a new Grub (Grub2 -- v1.97) and instead of being able to boot into Ubuntu, I now arrive at a command shell with some limited options.
I looked up what I was supposed to enter, which is something like:
ls
search -f /vmlinuz
set
set prefix=(hdx,y)/boot/grub
set root=(loop0)
ls /boot
insmod /boot/grub/linux.mod
linux /vmlinuz root=/dev/sda1 loop=/ubuntu/disks/root.disk ro
initrd /initrd.img
ls - this shows me the available drives in format (hdx,y) and (loop0)
search -f /vmlinuz -- returns: (loop0)
set -- shows the settings (can't remember, but prefix and root were already set)
ls /boot -- shows the files in the /boot directory
insmod /boot/grub/linux.mod -- It seems there is no linux.mod
linux /vmlinuz etc. -- Tried diverse combinations for this, with and without the root and loop options.
initrd /initrd.img --
But when I then boot again, the boot process goes on for a while, the screen sets to a different mode, but the scripts ends prematurely when trying to fetch the root directoty, and another shell (BusyBox or something) is entered (initramfs).
What commands and/or options should I use from the first command shell and/or what options should I set in grub.cfg for me to boot properly into Ubuntu?
(I can''t access the Ubuntu filesystem at the moment, so at first I need to know what commands to enter to boot properly from the Grub2 command-shell).
The ubuntu installation is on the second partition of my laptop drive, installed on d:\ubuntu\disks\root.disk.
The (original) kernel was version 2.31-14.
Now I installed a new kernel (2.31-20) with aptitude, but when choosing that kernel from the Grub menu it says: kernel not loaded.
Thereafter I installed kernel sources (2.33-2), and made a package which I then installed.
But then I guess I have a new Grub (Grub2 -- v1.97) and instead of being able to boot into Ubuntu, I now arrive at a command shell with some limited options.
I looked up what I was supposed to enter, which is something like:
ls
search -f /vmlinuz
set
set prefix=(hdx,y)/boot/grub
set root=(loop0)
ls /boot
insmod /boot/grub/linux.mod
linux /vmlinuz root=/dev/sda1 loop=/ubuntu/disks/root.disk ro
initrd /initrd.img
ls - this shows me the available drives in format (hdx,y) and (loop0)
search -f /vmlinuz -- returns: (loop0)
set -- shows the settings (can't remember, but prefix and root were already set)
ls /boot -- shows the files in the /boot directory
insmod /boot/grub/linux.mod -- It seems there is no linux.mod
linux /vmlinuz etc. -- Tried diverse combinations for this, with and without the root and loop options.
initrd /initrd.img --
But when I then boot again, the boot process goes on for a while, the screen sets to a different mode, but the scripts ends prematurely when trying to fetch the root directoty, and another shell (BusyBox or something) is entered (initramfs).
What commands and/or options should I use from the first command shell and/or what options should I set in grub.cfg for me to boot properly into Ubuntu?
(I can''t access the Ubuntu filesystem at the moment, so at first I need to know what commands to enter to boot properly from the Grub2 command-shell).