Help needed editing grub
Hi, I'm not new to Linux, but have been lucky (mostly) in the past and have found that things work, so maybe my experience is less than that of many others.
My wife has recently been showing an interest in trying Linux on her laptop, so I've downloaded the latest Ubuntu and burned it onto a cd. I have tried booting from the disk and it works fine on my pc (running Pardus 2009.2), so I have the live version for her to try on her laptop, which I know does work. I'd like to install this latest Ubuntu on my system so that she can see the difference in speed etc when running direct from the hard drive, but I'm finding that my boot loader is not seeing the installation. Can anyone help me with editing the necessary grub files to make it work. Please ask for copies of any configuration files etc if required and I will paste them here. I can access all the Ubuntu files, just can't boot into Ubuntu. |
Quote:
|
Where did you install GRUB ?
Did GRUB come up you when boot the laptop Which laptop is it ? If you only have one drive did you install it on the MBR Of SDa . |
run and post the results of
Code:
# fdisk -l |
Nevermind
|
Quote:
gfxmenu /boot/grub/message background 10333C timeout 10 title Pardus 2009.1 Anthropoides virgo [2.6.31.13-131] root (hd0,0) kernel /boot/kernel-2.6.31.13-131 splash=silent quiet vga=0x31a root=LABEL=PARDUS_ROOT initrd /boot/initramfs-2.6.31.13-131 title Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic [ sda5 ] root (hd0,4) kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro quiet splash initrd /boot/initrd.img-2.6.24-24-generic quiet title Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode) [ sda5 ] root (hd0,4) kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro single initrd /boot/initrd.img-2.6.24-24-generic title Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic [ sda5 ] root (hd0,4) kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro quiet splash initrd /boot/initrd.img-2.6.24-19-generic quiet title Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (recovery mode) [ sda5 ] root (hd0,4) kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro single initrd /boot/initrd.img-2.6.24-19-generic title Ubuntu 8.04.3 LTS, memtest86+ [ sda5 ] root (hd0,4) kernel /boot/memtest86+.bin quiet title Sabayon Linux (kernel-genkernel-x86-2.6.29-sabayon) [ sdb2 ] root (hd1,1) kernel /boot/kernel-genkernel-x86-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=9e70b740-16c8-4bb8-ad08-7b493aed606f dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet resume=swap:/dev/sdb1 real_resume=swap:/dev/sdb1 initrd /boot/initramfs-genkernel-x86-2.6.29-sabayon title Sabayon Linux (kernel-genkernel-x86-2.6.29-sabayon) (safe mode) [ sdb2 ] root (hd1,1) kernel /boot/kernel-genkernel-x86-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=9e70b740-16c8-4bb8-ad08-7b493aed606f dolvm init=/linuxrc CONSOLE=/dev/tty1 resume=swap:/dev/sdb1 real_resume=swap:/dev/sdb1 nox acpi=off ide=nodma vga=normal initrd /boot/initramfs-genkernel-x86-2.6.29-sabayon title Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic [ sdb2 ] root (hd1,4) kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro quiet splash initrd /boot/initrd.img-2.6.24-24-generic quiet title Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode) [ sdb2 ] root (hd1,4) kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro single initrd /boot/initrd.img-2.6.24-24-generic title Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic [ sdb2 ] root (hd1,4) kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro quiet splash initrd /boot/initrd.img-2.6.24-19-generic quiet title Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (recovery mode) [ sdb2 ] root (hd1,4) kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro single initrd /boot/initrd.img-2.6.24-19-generic title Ubuntu 8.04.3 LTS, memtest86+ [ sdb2 ] root (hd1,4) kernel /boot/memtest86+.bin quiet title Pardus 2009.1 Anthropoides virgo [2.6.31.13-131-pae] root (hd0,0) kernel /boot/kernel-2.6.31.13-131-pae splash=silent quiet vga=0x31a root=LABEL=PARDUS_ROOT initrd /boot/initramfs-2.6.31.13-131-pae title otheroptions configfile /boot/grub/grub-alt.conf as you can see there are remnants from previously used distros. Here is the grub.conf file from the Ubuntu install: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi set default="0" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi } function load_video { insmod vbe insmod vga } insmod part_msdos insmod ext2 set root='(hd1,msdos7)' search --no-floppy --fs-uuid --set 092c90fc-1af3-4fad-9fcd-dcadce176e47 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm fi terminal_output gfxterm insmod part_msdos insmod ext2 set root='(hd1,msdos7)' search --no-floppy --fs-uuid --set 092c90fc-1af3-4fad-9fcd-dcadce176e47 set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos7)' search --no-floppy --fs-uuid --set 092c90fc-1af3-4fad-9fcd-dcadce176e47 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=092c90fc-1af3-4fad-9fcd-dcadce176e47 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos7)' search --no-floppy --fs-uuid --set 092c90fc-1af3-4fad-9fcd-dcadce176e47 echo 'Loading Linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=UUID=092c90fc-1af3-4fad-9fcd-dcadce176e47 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-22-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod part_msdos insmod ext2 set root='(hd1,msdos7)' search --no-floppy --fs-uuid --set 092c90fc-1af3-4fad-9fcd-dcadce176e47 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd1,msdos7)' search --no-floppy --fs-uuid --set 092c90fc-1af3-4fad-9fcd-dcadce176e47 linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Pardus 2009.1 Anthropoides virgo [2.6.31.13-131] (on /dev/sdb1)" { insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 66b16b5f-7c3e-40b3-8e06-82db72f83c48 linux /boot/kernel-2.6.31.13-131 splash=silent quiet vga=0x31a root=LABEL=PARDUS_ROOT initrd /boot/initramfs-2.6.31.13-131 } menuentry "Pardus 2009.1 Anthropoides virgo [2.6.31.13-131-pae] (on /dev/sdb1)" { insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 66b16b5f-7c3e-40b3-8e06-82db72f83c48 linux /boot/kernel-2.6.31.13-131-pae splash=silent quiet vga=0x31a root=LABEL=PARDUS_ROOT initrd /boot/initramfs-2.6.31.13-131-pae } menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (on /dev/sdb5)" { insmod part_msdos insmod ext2 set root='(hd1,msdos5)' search --no-floppy --fs-uuid --set 892c1329-602f-40b6-bc1b-c69f5aee55d1 linux /boot/vmlinuz-2.6.24-24-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro quiet splash initrd /boot/initrd.img-2.6.24-24-generic } menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode) (on /dev/sdb5)" { insmod part_msdos insmod ext2 set root='(hd1,msdos5)' search --no-floppy --fs-uuid --set 892c1329-602f-40b6-bc1b-c69f5aee55d1 linux /boot/vmlinuz-2.6.24-24-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro single initrd /boot/initrd.img-2.6.24-24-generic } menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (on /dev/sdb5)" { insmod part_msdos insmod ext2 set root='(hd1,msdos5)' search --no-floppy --fs-uuid --set 892c1329-602f-40b6-bc1b-c69f5aee55d1 linux /boot/vmlinuz-2.6.24-19-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro quiet splash initrd /boot/initrd.img-2.6.24-19-generic } menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (recovery mode) (on /dev/sdb5)" { insmod part_msdos insmod ext2 set root='(hd1,msdos5)' search --no-floppy --fs-uuid --set 892c1329-602f-40b6-bc1b-c69f5aee55d1 linux /boot/vmlinuz-2.6.24-19-generic root=UUID=892c1329-602f-40b6-bc1b-c69f5aee55d1 ro single initrd /boot/initrd.img-2.6.24-19-generic } menuentry "Ubuntu 8.04.3 LTS, memtest86+ (on /dev/sdb5)" { insmod part_msdos insmod ext2 set root='(hd1,msdos5)' search --no-floppy --fs-uuid --set 892c1329-602f-40b6-bc1b-c69f5aee55d1 linux /boot/memtest86+.bin } menuentry "Sabayon Linux (kernel-genkernel-x86-2.6.29-sabayon) (on /dev/sdc2)" { insmod part_msdos insmod ext2 set root='(hd2,msdos2)' search --no-floppy --fs-uuid --set 9e70b740-16c8-4bb8-ad08-7b493aed606f linux /boot/kernel-genkernel-x86-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=9e70b740-16c8-4bb8-ad08-7b493aed606f dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet resume=swap:/dev/sdb1 real_resume=swap:/dev/sdb1 initrd /boot/initramfs-genkernel-x86-2.6.29-sabayon } menuentry "Sabayon Linux (kernel-genkernel-x86-2.6.29-sabayon) (safe mode) (on /dev/sdc2)" { insmod part_msdos insmod ext2 set root='(hd2,msdos2)' search --no-floppy --fs-uuid --set 9e70b740-16c8-4bb8-ad08-7b493aed606f linux /boot/kernel-genkernel-x86-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=9e70b740-16c8-4bb8-ad08-7b493aed606f dolvm init=/linuxrc CONSOLE=/dev/tty1 resume=swap:/dev/sdb1 real_resume=swap:/dev/sdb1 nox acpi=off ide=nodma vga=normal initrd /boot/initramfs-genkernel-x86-2.6.29-sabayon } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### |
Quote:
Disk identifier: 0xec070660 Device Boot Start End Blocks Id System /dev/sda1 1 1698 13631488 83 Linux /dev/sda2 * 1698 9385 61751953+ 83 Linux /dev/sda3 9386 19457 80903309+ 5 Extended /dev/sda5 9386 14583 41747138+ 83 Linux /dev/sda6 19042 19457 3341488+ 82 Linux swap / Solaris /dev/sda7 14583 18853 34296832 83 Linux /dev/sda8 18853 19041 1516544 82 Linux swap / Solaris Partition table entries are not in disk order Disk /dev/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xbe08d558 Device Boot Start End Blocks Id System /dev/sdb1 1 764 6136798+ 82 Linux swap / Solaris /dev/sdb2 765 10079 74822737+ 83 Linux /dev/sdb3 10080 19457 75328785 83 Linux Disk /dev/sdc: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x1f148204 Device Boot Start End Blocks Id System /dev/sdc1 * 1 19457 156288321 7 HPFS/NTFS Disk /dev/sdh: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0004cc6b Device Boot Start End Blocks Id System |
You could experiment by changing the root of the installation.
Instead of: root (hd0,0) You could try: root (hd1,1) If that does not work, I would try the other roots listed. |
Quote:
|
Your grub.conf file is the most complicated one I've ever seen. You say you are using Pardus 2009.2, but I don't see an entry for it in your grub.conf file. That should have been done when you installed it. You might want to think about re-installing it. Also, are you really using all those Linux versions? It might be worth doing a fresh install and wiping everything.
|
Your Pardus install has a grub.conf, which is what you posted, correct?
That means it is using Grub Legacy. Your new Ubuntu install uses Grub2. Mixing them usually requires some user interaction and since I don't use Grub2 beta software, I'll just point you to this tutorial for Grub2 with Ubuntu: https://help.ubuntu.com/community/Grub2 and this tutorial which has an explanation on booting with Grub Legacy and Grub2 on the same system, Section 5.B: http://www.dedoimedo.com/computers/grub-2.html Bear in mind that Grub Legacy counts harddrives from zero, partitions from zero. Grub2 counts hard drives from zero and partitions from one. You have a lot of entries not needed. If you don't have Ubuntu 8.04 installed you could delete any of those entries. I also noticed that your drive numbering has changed. I'm not sure why this is. Compare the entries in the Pardus grub.conf file with the Ubuntu grub.cfg: menu.lst Pardus: (hd0,0) Ubuntu 8.04 (hd0,4) Sabayon (hd1,1) the Ubuntu grub.cfg Pardus (hd1,1) Ubuntu 10.04 (hd1,7) Ubuntu 8.04 (hd1,5) Sabayon (hd2,2) The partition numbers changed by one which they should. The drive numbers should not have changed unless you changed the cables. It may result from changing the boot priority before Ubuntu install but I really don't know. What distributions do you want to keep? Might be easier to clean up what you don't want but I would check the tutorials above particularly the second one. |
Wow, I have never seen so much grub..... I never really used ubuntu or anything like that, I'm a hard-core fedora and BSD user, not sure if that counts? Anyway.... Have you tried just manually editing your grub.conf and adding the entries like so? That's what I normally do when dual-booting from existing linux boxes.
|
I agree with yancek, use the tutorial from Dedoimedo, section 5B gives instructions on how to use both Grub and Grub2. Grub is what you currently see when you reboot, Grub2 can be installed on the partition that contains your Ubuntu install. Using the chainloader function Grub will pass the boot process to Grub2 on the Ubuntu disk.
|
Quote:
Quote:
Quote:
Quote:
First thing to do is back up what I want to keep onto the external drive, although this is proving awkward at the moment, but there lies another problem. I will work this out, but may be back with more questions. Thank you for pointing me (hopefully) in the right direction. |
OK bit the bullet and deleted unnecessary stuff. Here is current fdisk -l result:
Quote:
Quote:
|
All times are GMT -5. The time now is 10:25 AM. |