Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, hope every one is ok! Using grub from live Ubuntu distribution, I get either grub for Ubuntu or grub for Scientific Linux. But in one case like the other ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4

    dual boot Ubuntu & Scientific Linux

    Hi, hope every one is ok!
    Using grub from live Ubuntu distribution, I get either grub for Ubuntu or grub for Scientific Linux. But in one case like the other I have only access at one!!!
    Doing from Ubuntu, from shell (grub-install /dev/sda or update-grub) I manage (when I switch on the PC) to have 2 choice to boot, but the one give access to Scientific Linux give me “error magic number”.
    I did try several manipulation (modifies grub.cfg) but nothing...
    Any idea?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Post this to the forums at Scientific Linux - Welcome to Scientific Linux (SL) where Scientific Linux is maintained. The short answer is that Ubuntu uses grub2, and Scientific Linux (a derivative of Red Hat Enterprise Linux) uses the older version of grub. You should be able to install the SciLinux grub, and manually configure it to allow you to boot Ubuntu, but I haven't actually done that, so I don't know for sure it would work or not.

    P.S. My wife is a physicist at FermiLab and works in their computing division. She has both Ubuntu and Scientific Linux running dual boot on her netbook, so I know it can be done.
    Last edited by devils casper; 03-26-2010 at 01:42 AM.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Which version of Ubuntu are you using? GRUB version doesn't matter at all. You can use any version of GRUB to boot up any OS.
    Post the output of fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    Thanks Rubberman and devils casper for your answers.
    Going head, I've understood than Slinux doesn't support yet ext4 (/dev/sda6 is formated as ext4).
    I'm trying to see if I can downgrade from ext4 to ext3. Doing that way, Slinux grub may find ubuntu. So far, when I start from Slinux grub (/dev/sda7) and try to reach Ubuntu (/dev/sda6) it say that it is not able to handle the type of files system.

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000080

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 9258 74364853+ 5 Extended
    /dev/sda2 9259 19457 81923467+ 83 Linux
    /dev/sda5 1 255 2048224+ 82 Linux swap / Solaris
    /dev/sda6 256 5354 40957686 83 Linux
    /dev/sda7 5355 9258 31358848+ 83 Linux

    Thanks again for your help

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    Excuse me..
    - Release 9.10 (karmic)
    - Kernel Linux 2.6.31-16-generic
    Thank

  6. #6
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    Hi
    Ok no answer... Now my Ubuntu partition is ext3 but style nothing to do.
    From Grug, install from Ubuntu, it say: error magic number and from grub, install from SLinux: Error 15 file no found...
    Here grub install from Ubuntu:

    ************************************************** ************

    #

    # DO NOT EDIT THIS FILE

    #

    # It is automatically generated by /usr/sbin/grub-mkconfig using templates

    # from /etc/grub.d and settings from /etc/default/grub

    #



    ### BEGIN /etc/grub.d/00_header ###

    if [ -s /boot/grub/grubenv ]; then

    have_grubenv=true

    load_env

    fi

    set default="0"

    if [ ${prev_saved_entry} ]; then

    saved_entry=${prev_saved_entry}

    save_env saved_entry

    prev_saved_entry=

    save_env prev_saved_entry

    fi

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    if loadfont /usr/share/grub/unicode.pf2 ; then

    set gfxmode=640x480

    insmod gfxterm

    insmod vbe

    if terminal_output gfxterm ; then true ; else

    # For backward compatibility with versions of terminal.mod that don't

    # understand terminal_output

    terminal gfxterm

    fi

    fi

    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/white

    ### END /etc/grub.d/05_debian_theme ###



    ### BEGIN /etc/grub.d/10_linux ###

    menuentry "Ubuntu, Linux 2.6.31-20-generic" {

    recordfail=1

    if [ -n ${have_grubenv} ]; then save_env recordfail; fi

    set quiet=1

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    linux /boot/vmlinuz-2.6.31-20-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro quiet splash

    initrd /boot/initrd.img-2.6.31-20-generic

    }

    menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {

    recordfail=1

    if [ -n ${have_grubenv} ]; then save_env recordfail; fi

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    linux /boot/vmlinuz-2.6.31-20-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro single

    initrd /boot/initrd.img-2.6.31-20-generic

    }

    menuentry "Ubuntu, Linux 2.6.31-14-generic" {

    recordfail=1

    if [ -n ${have_grubenv} ]; then save_env recordfail; fi

    set quiet=1

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro quiet splash

    initrd /boot/initrd.img-2.6.31-14-generic

    }

    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {

    recordfail=1

    if [ -n ${have_grubenv} ]; then save_env recordfail; fi

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro single

    initrd /boot/initrd.img-2.6.31-14-generic

    }

    menuentry "Ubuntu, Linux 2.6.28-11-generic" {

    recordfail=1

    if [ -n ${have_grubenv} ]; then save_env recordfail; fi

    set quiet=1

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    linux /boot/vmlinuz-2.6.28-11-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro quiet splash

    initrd /boot/initrd.img-2.6.28-11-generic

    }

    menuentry "Ubuntu, Linux 2.6.28-11-generic (recovery mode)" {

    recordfail=1

    if [ -n ${have_grubenv} ]; then save_env recordfail; fi

    insmod ext2

    set root=(hd0,6)

    search --no-floppy --fs-uuid --set b7beb653-2d2b-4adb-aeb9-c89fb990bed8

    linux /boot/vmlinuz-2.6.28-11-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro single

    initrd /boot/initrd.img-2.6.28-11-generic

    }

    ### END /etc/grub.d/10_linux ###



    ### BEGIN /etc/grub.d/20_memtest86+ ###

    menuentry "Memory test (memtest86+)" {

    linux16 /boot/memtest86+.bin

    }

    menuentry "Memory test (memtest86+, serial console 115200)" {

    linux16 /boot/memtest86+.bin console=ttyS0,115200n8

    }

    ### END /etc/grub.d/20_memtest86+ ###



    ### BEGIN /etc/grub.d/30_os-prober ###

    menuentry "Scientific Linux SL release 5.4 (Boron) (on /dev/sda7)" {

    insmod ext2

    set root=(hd0,7)

    search --no-floppy --fs-uuid --set 452f675c-4024-4ea3-b26d-bd72e9aea646

    linux /boot/vmlinuz-2.6.18-164.15.1.el5xen root=/dev/sda7

    }



    ### 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 ###

    ************************************************** ************

    Here grub install from Slinux:


    # grub.conf generated by livecd-install

    default=0

    timeout=10

    splashimage=(hd0,6)/boot/grub/splash.xpm.gz

    #hiddenmenu

    title Scientific Linux SL (2.6.18-164.15.1.el5)

    root (hd0,6)

    kernel /boot/vmlinuz-2.6.18-164.15.1.el5 ro root=/dev/sda7

    initrd /boot/initrd-2.6.18-164.15.1.el5.img



    title Scientific Linux SL release 5.4 (Boron) (2.6.18-164.6.1.el5)

    root (hd0,6)

    kernel /boot/vmlinuz-2.6.18-164.6.1.el5 ro root=/dev/sda7

    initrd /boot/initrd-2.6.18-164.6.1.el5.img



    #### -> I did this (wrong) part <- ###

    title Ubuntu Linux 2.6.31-20-generic

    root=(hd0,6)

    kernel /boot/vmlinuz-2.6.31-20-generic root=UUID=b7beb653-2d2b-4adb-aeb9-c89fb990bed8 ro quiet splash

    initrd /boot/initrd.img-2.6.31-20-generic


    ************************************************** ************


    Any idea??? suggestions..?

  7. #7
    Just Joined!
    Join Date
    May 2008
    Posts
    36
    Please use code tags for code.

    You should probably go from the Ubuntu grub to the Slinux grub because a newer version of grub can boot from both ext4 and ext3.

    I think the problem with the Ubuntu grub is that it was pointing to the wrong image

    Code:
    linux /boot/vmlinuz-2.6.18-164.15.1.el5xen
    where the other grub has

    Code:
    kernel /boot/vmlinuz-2.6.18-164.15.1.el5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...