Page 18 of 94 FirstFirst ... 816171819202868 ... LastLast
Results 171 to 180 of 931

Thread: Grub 2 Basics

  1. #171
    Join Date
    Aug 2009
    Location
    oakland, ca
    Beans
    32
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Grub 2 Basics

    Quote Originally Posted by foxy123 View Post
    This is my fstab:
    Code:
    # / was on /dev/sda9 during installation
    UUID=9018bfe2-9de3-4692-9883-fc2f875e6455 /               ext3    relatime,errors=remount-ro 0       1
    
    # /boot was on /dev/sda8 during installation
    UUID=c3eb67b1-7f8f-419b-a462-c79a6c76e5de /boot           ext2    relatime        0       2
    
    # /home was on /dev/sda5 during installation
    UUID=4802e809-ecaa-4932-bd01-4a816c0bbd4f /home           ext3    relatime        0       2
    
    # /media/test_boot was on /dev/sda7 during installation
    UUID=0c98fbe4-ed7c-4134-994a-07d49074e137 /media/test_boot ext2    relatime        0       2
    
    # /test was on /dev/sda6 during installation
    UUID=6ad1f928-50b9-4aea-9495-95df46d08d58 /test           ext3    relatime        0       2
    I am a bit lost with all this partition numbers
    You know you don't have to use UUID in your fstab .. IMO using the volume label in fstab saves a lot of time and headache if you deal with several kernels..looks like you have a test partition or two in there.. I'd recommend just use the LABEL="volumeLabel" syntax instead of UUID=.... you could also just use /dev/sda(X) but those change around as do UUIDs if you resize or move or delete a partition.

  2. #172
    Join Date
    Apr 2008
    Beans
    11,707

    Re: Grub 2 Basics

    Package: mbr

    Replacement for ms-sys, so from even a live CD:

    Code:
    sudo apt-get install mbr
    I think prior to Jaunty requires either multiverse or universe repos. Then:

    Code:
    sudo install-mbr /dev/sdX
    Of course X must be replaced with actual destination.

    I've successfully used that with both XP and Win 7, I have no Win Vista to try it on.

    I found that here:

    http://www.dociletree.co.za/fixing-w...-8041-live-cd/

    I lurve things that just work

  3. #173
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Grub 2 Basics

    sudo install-mbr /dev/sdX
    kansasnoob: did you post this in the wrong thread??

    Anyway, I don't recommend "install-mbr" for installing a windows type MBR. It disk signature, which can cause problems in some rare cases. I usually recommend lilo:

    Code:
    sudo  apt-get install lilo
    sudo lilo -M /dev/sdX mbr

  4. #174
    Join Date
    Apr 2008
    Beans
    11,707

    Re: Grub 2 Basics

    Quote Originally Posted by meierfra. View Post
    kansasnoob: did you post this in the wrong thread??

    Anyway, I don't recommend "install-mbr" for installing a windows type MBR. It disk signature, which can cause problems in some rare cases. I usually recommend lilo:

    Code:
    sudo  apt-get install lilo
    sudo lilo -M /dev/sdX mbr
    Well, I only stumbled upon that here:

    http://www.dociletree.co.za/fixing-w...-8041-live-cd/

    I've since tried that with both XP and Win 7, not because they were unbootable but because I wanted to check it out.

    So, I still sometimes (seldom) use lilo for external drives, but how would that help to boot a win OS where grub has failed?

  5. #175
    Join Date
    Apr 2008
    Beans
    11,707

    Re: Grub 2 Basics

    Quote Originally Posted by meierfra. View Post
    kansasnoob: did you post this in the wrong thread??

    Anyway, I don't recommend "install-mbr" for installing a windows type MBR. It disk signature, which can cause problems in some rare cases. I usually recommend lilo:

    Code:
    sudo  apt-get install lilo
    sudo lilo -M /dev/sdX mbr
    Also in retrospect I should have been more descriptive. I'm recovering from a small fire in my utility room and ........ well, sometimes I'm just kind of abrupt and stupid!

    It's good to see you around. I'd love to see more of you. Have you any idea whatever happened to caljohnsmith?

  6. #176
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Grub 2 Basics

    "lilo -M /dev/sdX mbr" just installs some code in the MBR which will load the boot sector of the partition with the boot flag (it does not install the full blown lilo boot loader). So it is very similar to "install-mbr /dev/sdX" and "fixmbr X:".

  7. #177
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    I have added a "Password Protection" section to this guide (Section 10). It details the method to add very basic password protection to the entries in Grub 2's menu.

    Grub 2 has the capability of allowing specific user access to designated menuentries by tailoring each menuentry item. This is beyond the scope of this guide. I hope to create a Password HOWTO will more advanced password options as time permits.
    Back to Xorg...

    Retired.

  8. #178
    Join Date
    Apr 2008
    Beans
    11,707

    Re: Grub 2 Basics

    Following up on my blurb yesterday about the package "mbr". As I said, it's worked for me with both XP and Win 7, but I totally trust Meierfra's experience over my own.

    If Meierfra says my method sometimes fails I believe that. Also I did try from Live CD the suggestion of:

    Code:
    sudo apt-get install lilo
    Code:
    sudo lilo -M /dev/sda mbr
    And I had no problem reverting to either grub or grub2 as the boot-loader so I think it's safe to say that Meierfra is once again right!

    So, my thoughts, pitch both "ms-sys" and "mbr" to the curb, and choose "lilo" to restore the Windows mbr if nothing but the Ubuntu Live CD is available.

    Sorry for the somewhat inappropriate blurb yesterday.

  9. #179
    Join Date
    Nov 2009
    Beans
    9

    Re: Grub 2 Basics

    Hi all,

    Last week I've installed karmic, which comes with grub-setup (GRUB) 1.97~beta4 as default loader.

    As default, after an unsuccessful shutdown (let's say, a power fail or press power button while starting up to force a premature shutdown) GRUB2 will show the menu without a countdown. It will stay like that until the enter key is pressed.

    The problem: it's a media player without a keyboard. Only has a remote control and it works only after the driver is loaded. So, if I have an unsuccessful boot, I will need to get my desktop's keyboard and plug it to the media box just to press enter.

    Even if I force the menu display by commenting the line "GRUB_HIDDEN_TIMEOUT=0", there is no countdown if the previous boot failed.

    If this happens when I'm not at home, my wife and kids can't boot the media box.

    So, let me ask: there is any option to ignore if the last boot was or wasn't ok and always load Linux?

    Thanks in advance.

  10. #180
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    @MCunha
    Just rename /boot/grub/grubenv to /boot/grub/grubenv.backup, boot again to try if everything is OK, and, then You can delete /boot/grub/grubenv.backup. You need to do this as a root.
    Code:
    sudo mv /boot/grub/grubenv /boot/grub/grubenv.backup
    Code:
    sudo rm /boot/grub/grubenv.backup

Page 18 of 94 FirstFirst ... 816171819202868 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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