Find the answer to your Linux question:
Page 2 of 7 FirstFirst 1 2 3 4 5 6 ... LastLast
Results 11 to 20 of 67
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    May 2009
    Posts
    34

    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'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		10
    
    ## 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 options 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 specific 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_2_6_8=root=/dev/hdc1 ro
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=5b23158e-6e77-4e14-8e52-84e1d9647f4a ro
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=5b23158e-6e77-4e14-8e52-84e1d9647f4a
    
    ## 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
    
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash
    
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ##      lockold=true
    # lockold=false
    
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery) single
    # altoptions=(recovery mode) single
    
    ## 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
    
    ## specify if running in Xen domU or have grub detect automatically
    ## update-grub will ignore non-xen kernels when running in domU and vice versa
    ## e.g. indomU=detect
    ##      indomU=true
    ##      indomU=false
    # indomU=detect
    
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    
    ## ## End Default Options ##
    
    title		Ubuntu 9.04, kernel 2.6.28-11-generic
    uuid		5b23158e-6e77-4e14-8e52-84e1d9647f4a
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=5b23158e-6e77-4e14-8e52-84e1d9647f4a ro quiet splash 
    initrd		/boot/initrd.img-2.6.28-11-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    uuid		5b23158e-6e77-4e14-8e52-84e1d9647f4a
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=5b23158e-6e77-4e14-8e52-84e1d9647f4a ro  single
    initrd		/boot/initrd.img-2.6.28-11-generic
    
    title		Ubuntu 9.04, memtest86+
    uuid		5b23158e-6e77-4e14-8e52-84e1d9647f4a
    kernel		/boot/memtest86+.bin
    quiet
    
    ### 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/sda1
    title		Windows NT/2000/XP (loader)
    rootnoverify	(hd0,0)
    savedefault
    makeactive
    chainloader	+1

  2. #12
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Just to clarify... this is a laptop, correct?
    And you ONLY get the error when you move you lappy around with you? Do you take the external drive with you?
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #13
    Just Joined!
    Join Date
    May 2009
    Posts
    34
    Well, the moment my external is not plugged in this happens. Error 21. Yeah it's a laptop.

    Internal hard disk is 250 GB with 2 partition. Windows OS on a 40 GB, rest of it for my misc files.

    External hard disk is 1 TB. about 830GB for misc, and 100GB for Ubuntu and Swap file.

  4. #14
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    Quote Originally Posted by Kaistar View Post
    Hi! My first call for help!

    I installed Ubuntu 9.04 on my external, and the Grub Loader is installed on my internal laptop hard disk.

    The problem is that now whenever I bring my laptop around, it fails to boot because of Error 21. I believe it can't load the grub Loader or something. Is there a way to fix this so that I can choose?
    The reason for the error is when you installed Ubuntu you installed grub to the MBR of the first hard drive (the internal hard drive). The easiest way to fix this is to use Supergrub ... boot from it with your external drive disconnected and use the fix Windows boot option. This should write Windows bootloader code to the MBR and allow system boot.
    Check the system boots correctly then reconnect the external hard drive, boot from a live CD and reinstall grub (but to the MBR of the external hard drive). Open a terminal and type
    Code:
    sudo grub
    root (hd2,4)
    setup (hd2)
    quit
    Now restart the system and check the BIOS is set to boot from the USB drive first ... that way you should get
    boot straight to Windows with external drive disconnected
    option to boot Linux or Windows when the external drive is connected.

  5. #15
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Remember when I said... 'Looking for something that's not there'?
    GRUB is looking for Ubuntu by default... no external, no Ubuntu, Error 21.
    Let's make it look for Windows by default. Do this in the terminal:
    Code:
    sudo gedit /boot/grub/menu.lst
    Where it says default 0 you'll want to make it default 3. Save it just like you would in notepad in Windows.
    After that, reboot without external, see if it works. Let me know.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  6. #16
    Just Joined!
    Join Date
    May 2009
    Posts
    34
    @Jonathan: Thanks for the suggestion dude. I did previously at first try to install it onto my external but when I tried to boot from USB it said no boot loader found. Which was why I installed onto my internal.

    @Jayd: Oh-ho-ho-ho. I'm going to try it and will report back in a short while. If it works...

    I have more questions! Hahaha! I'm so excited that I'm finally using Ubuntu. Damn I should be studying for my Finals this coming week but instead I'm playing with Ubuntu here...

  7. #17
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    And now we play...
    the waiting game...
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  8. #18
    Just Joined!
    Join Date
    May 2009
    Posts
    34
    Nope. Failed.

    Same error. Tried it multiple times too, just to make sure i wasn't hallucinating.

  9. #19
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    Quote Originally Posted by jayd512 View Post
    Remember when I said... 'Looking for something that's not there'?
    GRUB is looking for Ubuntu by default... no external, no Ubuntu, Error 21.
    Let's make it look for Windows by default. Do this in the terminal:
    Code:
    sudo gedit /boot/grub/menu.lst
    Where it says default 0 you'll want to make it default 3. Save it just like you would in notepad in Windows.
    After that, reboot without external, see if it works. Let me know.
    Hi Jayd512 ... stage 1 is looking for stage 1.5 or 2 at which point the menu.lst info will be used. I don't think changing menu.lst will help.

    If boot from grub on internal is really required then a small boot partition will do the job ... but my previous post should be more straight forward ... (assuming boot from external is supported by BIOS).

    Ed: just seen above post ... give Supergrub a try - if BIOS does not support boot from USB then a boot partition on one of the internal drives is required.
    But I recommend you use info in post #14 and only create a boot partition on an internal drive if you need to

  10. #20
    Just Joined!
    Join Date
    May 2009
    Posts
    34
    Hey Jonathan,

    I'm going to attempt your suggestion, however can I just use my Windows disc and go into recovery console and type fixboot?

    I don't have any access to empty discs right now.

    Also, could you perhaps explain how to install the Grub into the External HDD? Which step of the installation etc?

Page 2 of 7 FirstFirst 1 2 3 4 5 6 ... LastLast

Posting Permissions

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