LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2010, 02:32 PM   #1
csaenemy
LQ Newbie
 
Registered: Oct 2010
Posts: 26

Rep: Reputation: 0
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.
 
Old 10-27-2010, 02:39 PM   #2
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
Quote:
Originally Posted by csaenemy View Post
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.
Can you post the /boot/grub/grub.conf file?
 
Old 10-27-2010, 02:40 PM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
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 .
 
Old 10-27-2010, 02:41 PM   #4
fbobraga
Member
 
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
run and post the results of
Code:
# fdisk -l
 
Old 10-27-2010, 02:53 PM   #5
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
Nevermind

Last edited by Omnicronos; 10-27-2010 at 03:22 PM. Reason: Not important.
 
Old 10-27-2010, 03:10 PM   #6
csaenemy
LQ Newbie
 
Registered: Oct 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Omnicronos View Post
Can you post the /boot/grub/grub.conf file?
default 0
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 ###
 
Old 10-27-2010, 03:13 PM   #7
csaenemy
LQ Newbie
 
Registered: Oct 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fbobraga View Post
run and post the results of
Code:
# fdisk -l
Units = cylinders of 16065 * 512 = 8225280 bytes
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
 
Old 10-27-2010, 03:33 PM   #8
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
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.

Last edited by Omnicronos; 10-27-2010 at 03:34 PM.
 
Old 10-27-2010, 03:40 PM   #9
csaenemy
LQ Newbie
 
Registered: Oct 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Omnicronos View Post
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.
Sorry, where do you suggest I edit? Do you mean for me to try editing the grub.conf that came with the Ubuntu installation (second one)?
 
Old 10-27-2010, 06:04 PM   #10
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
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.
 
Old 10-27-2010, 07:59 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
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.
 
Old 10-27-2010, 08:36 PM   #12
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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.
 
Old 10-27-2010, 09:41 PM   #13
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 187

Rep: Reputation: 39
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.
 
Old 10-28-2010, 09:15 AM   #14
csaenemy
LQ Newbie
 
Registered: Oct 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
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
Thank you, this looks like it could be a big help

Quote:
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.
It is still installed, although hasn't been used in over a year, likewise Sabayon. I have been very happy with Pardus, the others are stops on my journey to discovering a distro that I like and have been able to use relatively free of problems.

Quote:
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.
I think it may be just that, although it was a long time ago and I forget

Quote:
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.
I agree, it is a job I must do.

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.
 
Old 10-28-2010, 10:08 AM   #15
csaenemy
LQ Newbie
 
Registered: Oct 2010
Posts: 26

Original Poster
Rep: Reputation: 0
OK bit the bullet and deleted unnecessary stuff. Here is current fdisk -l result:

Quote:
chris@chris-pardus ~ $ fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
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 19042 19457 3341488+ 82 Linux swap / Solaris

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

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
and here is grub.conf

Quote:
default 0
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 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
Will try to reinstall Ubuntu into some of the massive amount of drive space I now have and then try the chain loading thing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Grub. borntorunes Linux - Newbie 10 10-05-2009 07:16 AM
editing in GRUB deretsigernu Linux - General 2 09-04-2007 08:12 AM
DualBooting with GRUB ; Need Help Editing GRUB blooperspree Linux - Software 2 11-04-2006 12:23 PM
Editing Files needed for nvidia-6626 drivers. DesyphER Linux - Software 4 02-26-2005 03:54 AM
Grub Editing hoe Linux - General 2 11-07-2004 07:45 PM


All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration