Page 1 of 3 123 LastLast
Results 1 to 15 of 36

Thread: GRUB autoloading Linux setup

  1. #1
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default GRUB autoloading Linux setup

    I have a dual-boot between XP and Linux. But when I boot-up my computer something about GRUB pops up for a second (GRUB stage 1.5 loading) and it goes directly into my Linux setup. I can't get into XP. This is my partition setup:

    Code:
    Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *          22        1173     8709088+   7  HPFS/NTFS
    /dev/hda2            1174        5170    30217320    f  W95 Ext'd (LBA)
    /dev/hda3               1          21      158728+  83  Linux
    /dev/hda5            1174        1986     6146248+  83  Linux
    /dev/hda6            1987        2799     6146248+  83  Linux
    /dev/hda7            2800        5061    17100688+   b  W95 FAT32
    /dev/hda8            5062        5170      824008+  82  Linux swap / Solaris
    hda1 = Windows
    hda3 = /boot
    hda5 = /
    hda6 = /home
    hda7 = shared disk space between linux and XP

    This is my menu.lst file:

    Code:
    # menu.lst - See: grub(8), info grub, update-grub(8)
    #            grub-install(8), grub-floppy(8),
    #            grub-md5-crypt, /usr/share/doc/grub
    #            and /usr/share/doc/grub-doc/.
    
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.           
    default		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		30
    
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu
    
    # Pretty colours
    #color cyan/blue white/blue
    
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line)  and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    #      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    
    #
    # examples
    #
    # title		Windows 95/98/NT/2000
    # root		(hd0,0)
    # makeactive
    # chainloader	+1
    #
    # title		Linux
    # root		(hd0,1)
    # kernel	/vmlinuz root=/dev/hda2 ro
    #
    
    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default optons below
    
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specifiv kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    # kopt=root=/dev/hda5 ro
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,2)
    
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ##      alternative=false
    # alternative=true
    
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ##      lockalternative=false
    # lockalternative=false
    
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery mode) single
    # altoptions=(recovery mode) single
    
    ## nonaltoption boot targets option
    ## This option controls options to pass to only the
    ## primary kernel menu item.
    ## You can have ONLY one nonaltoptions line
    # nonaltoptions=quiet splash
    
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ##      howmany=7
    # howmany=all
    
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    
    ## ## End Default Options ##
    
    title		Ubuntu, kernel 2.6.10-5-386 
    root		(hd0,2)
    kernel		/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro quiet splash
    initrd		/initrd.img-2.6.10-5-386
    savedefault
    boot
    
    title		Ubuntu, kernel 2.6.10-5-386 (recovery mode)
    root		(hd0,2)
    kernel		/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro single
    initrd		/initrd.img-2.6.10-5-386
    savedefault
    boot
    
    title		Ubuntu, kernel memtest86+ 
    root		(hd0,2)
    kernel		/memtest86+.bin  
    savedefault
    boot
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title		Other operating systems:
    root
    
    
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/hda1
    title		Microsoft Windows XP Professional
    root		(hd0,0)
    savedefault
    makeactive
    chainloader	+1

  2. #2
    Banned Kakashi509's Avatar
    Join Date
    Jul 2005
    Location
    Jacking your car
    Posts
    557

    Default

    how about you uninstall Linux then?

  3. #3
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    That probably wouldn't help anything since then I wouldn't have any OS to boot into. GRUB is written onto the MBR.

  4. #4
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Code:
    total 168
    -rw-r--r--  1 root root     15 2005-07-29 10:42 device.map
    -rw-r--r--  1 root root   7744 2005-07-29 10:42 e2fs_stage1_5
    -rw-r--r--  1 root root   7504 2005-07-29 10:42 fat_stage1_5
    -rw-r--r--  1 root root   8320 2005-07-29 10:42 jfs_stage1_5
    -rw-r--r--  1 root root   3719 2005-07-29 22:23 menu.lst
    -rw-r--r--  1 root root   3719 2005-07-29 21:45 menu.lst~
    -rw-r--r--  1 root root   6976 2005-07-29 10:42 minix_stage1_5
    -rw-r--r--  1 root root   9216 2005-07-29 10:42 reiserfs_stage1_5
    -rw-r--r--  1 root root    512 2005-07-29 10:42 stage1
    -rw-r--r--  1 root root 108104 2005-07-29 10:42 stage2
    -rw-r--r--  1 root root   9256 2005-07-29 10:42 xfs_stage1_5

  5. #5
    Prinny God Recognized Member Endless's Avatar
    Join Date
    Aug 2000
    Location
    Prinny Moon
    Posts
    2,641
    Contributions
    • Former Cid's Knight

    Default

    Mine looks like this:

    Code:
    default 0
    timeout 30
    splashimage=(hd0,6)/grub/splash.xpm.gz
    
    title=Windows XP
    root (hd0,1)
    chainloader +1
    
    title=Gentoo
    root (hd0,6)
    kernel /vmlinuz root=/dev/hda8 init=/linuxrc ramdisk=8192 splash=verbose,theme:emergence vga=791 real_root=/dev/hda8 video=1280x800
    initrd /fbsplash-emergence-1024x768

    And then there is Death

  6. #6
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    I would backup your grub config file, and try this one in its place:

    Code:
    default		0
    timeout		10
    
    title		Ubuntu, kernel 2.6.10-5-386 
    root		(hd0,2)
    kernel		/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro
    initrd		/initrd.img-2.6.10-5-386
    
    title		Microsoft Windows XP Professional
    root		(hd0,0)
    makeactive
    chainloader	+1

  7. #7
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Dr Unne's config didn't change anything. I still get the autoboot to Linux.

  8. #8
    Prinny God Recognized Member Endless's Avatar
    Join Date
    Aug 2000
    Location
    Prinny Moon
    Posts
    2,641
    Contributions
    • Former Cid's Knight

    Default

    Try removing makeactive? (works on mine)


    Also, I saw you posted on the ubuntu forums aswell. xD

    Edit: what's in hda2?
    Last edited by Endless; 07-30-2005 at 08:58 PM.

    And then there is Death

  9. #9
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Yeah, Unne saw too.

    Is makeactive the bootable flag?

  10. #10
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    makeactive "Sets the active partition on the root disk to GRUB's root device. This command is limited to primary PC partitions on a hard disk." Whatever the heck that means. Maybe grub looks for a partition with the bootable flag and sets its root to that.

    http://maglite.epfl.ch/~fsalvi/docs/...entry-commands

  11. #11
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    hda2 is the extended partition which houses the logical partitions on the drive (30GBs). Can Win95 Ext'd handle LBA?

  12. #12
    Prinny God Recognized Member Endless's Avatar
    Join Date
    Aug 2000
    Location
    Prinny Moon
    Posts
    2,641
    Contributions
    • Former Cid's Knight

    Default

    I think I see what it is. Try root (hd0,1) for the windows entry.

    And then there is Death

  13. #13
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Nope, nothing. It's like the file isn't being read.

  14. #14
    Prinny God Recognized Member Endless's Avatar
    Join Date
    Aug 2000
    Location
    Prinny Moon
    Posts
    2,641
    Contributions
    • Former Cid's Knight

    Default

    You do mount /boot every time you go edit menu.lst, right? Also, just to make sure, do this:
    mv menu.lst grub.conf
    ln -s grub.conf menu.lst

    And then there is Death

  15. #15
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    You can always try this too: http://ubuntuforums.org/showthread.php?t=52224

Posting Permissions

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