Page 79 of 94 FirstFirst ... 2969777879808189 ... LastLast
Results 781 to 790 of 931

Thread: Grub 2 Basics

  1. #781
    Join Date
    May 2011
    Beans
    80
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Grub 2 Basics

    Yes okay that is a way, hm I have to reinstall it but I think that the option was in there.
    I will check that.

    But if Ubuntu does not have this option it should be one of the last Distros
    which does not have the ability to choose to not install grub.

    So a possibilty could be to first install ubuntu and then the others.

    Another workaround could be to install the grub4dos if you have a Ntfs or
    Fat-partition and tell within the menu.lst to boot your first distro's partition
    from there by adding an entry to your current grub.conf.
    And when your first installation is succesfully booted, you reinstall
    that grub to your f.e. sda and update grub. It is just an idea, do you think this could work?

  2. #782
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by grubu View Post
    Another workaround could be to install the grub4dos if you have a Ntfs or
    Fat-partition and tell within the menu.lst to boot your first distro's partition
    from there by adding an entry to your current grub.conf.
    And when your first installation is succesfully booted, you reinstall
    that grub to your f.e. sda and update grub. It is just an idea, do you think this could work?
    Yes, it could probably work.

    For my own system, I find it easiest for now just to allow the installation to do it's thing, then boot into the OS whose Grub I want to use and run "sudo grub-install /dev/sdX". That then points the sdX MBR (sda, sdb, etc) to the correct partition/Grub 2.
    GRUB2

    Retired.

  3. #783
    Join Date
    May 2011
    Beans
    80
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Grub 2 Basics

    For my own system, I find it easiest for now just to allow the installation to do it's thing, then boot into the OS whose Grub I want to use and run "sudo grub-install /dev/sdX". That then points the sdX MBR (sda, sdb, etc) to the correct partition/Grub 2.
    Yeah, great! That's the way to do it.

    As we then would have an extended partition with five or more
    /boot /root & /home partitions won't affect what we want,
    I would then prefer volume-names in our /etc/fstab's like
    ubuntu-boot; ubuntu-root; ubuntu-home
    debian-boot; debian-root; debian-home
    gentoo-boot; gentoo-root; gentoo-home
    fedora-boot; fedora-root; fedora-home
    slitaz-boot; slitaz-root
    what do you think?

  4. #784
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by grubu View Post
    Yeah, great! That's the way to do it.

    As we then would have an extended partition with five or more
    /boot /root & /home partitions won't affect what we want,
    I would then prefer volume-names in our /etc/fstab's like

    what do you think?
    I use labels for all my fstab entries. The main reason is I am frequently installing/removing OS's for Grub troubleshooting purposes and reformat partitions.

    Keeping the same label name for an OS prevents me from having to change the OS's fstab settings (in all the installations) when the partition UUID changes, and allows me to run the "sudo mount -L <label>" wherever the OS happens to reside on that particular day.
    GRUB2

    Retired.

  5. #785
    Join Date
    May 2011
    Beans
    80
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Grub 2 Basics

    Yeah, of cause that was what I wanted to say by 'volume-names'
    these are just labels as I also think that uuid's will get us confused sometime.

    Another question is if it would be possible to tell via the update-grub
    something like just update grub by rescanning partition (hd0,7) and
    no other partitions f.e. if you need to update them later?
    Last edited by grubu; July 24th, 2011 at 09:00 PM.

  6. #786
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by grubu View Post
    Another question is if it would be possible to tell via the update-grub something like just update grub by rescanning partition (hd0.7) and no other partitions f.e. if you need to update them later?
    Being able to specify a partition exclusion is in the works and may have already been incorporated in Grub 1.99 - I've seen the patch but don't know if it has been incorporated yet. It isn't in any of the current Ubuntu releases.

    In my "Tweaks" thread I have several sections which describe how to hide various partitions. A much easier method, at least until it becomes available directly through Grub 2, is via the Grub-Customizer app. Links to both are in my signature line.

    Another option if you only want it to scan only the OS's partition (and no others) is to disable os-prober's script:
    Code:
    sudo chmod -x /etc/grub.d/30_os-prober
    or even better (since it retains the keystatus check), add this to /etc/default/grub:
    GRUB_DISABLE_OS_PROBER=true
    If you wanted to disable grub from updating itself on any specific installation you can use the "dkpg-divert" command, but this is getting into more advanced territory and users need to weigh (and/or research) the advantages/disadvantages of this method. If doing this, I strongly suggest having a reliable custom grub menu available first.

    Code:
    dpkg-divert --rename --add /usr/sbin/update-grub  # changes name to update-grub.distrib
    ln -s /bin/true /usr/sbin/update-grub # runs /bin/true as update-grub so no errors generated
    GRUB2

    Retired.

  7. #787
    Join Date
    May 2011
    Beans
    80
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Grub 2 Basics

    Thank you for this very useful additional information,

    I also found something which might help us in some cases.

    Quote Originally Posted by Herman View Post
    Code:
    grub-mkrescue --output=rescue.iso /boot/grub
    from here: http://ubuntuforums.org/showthread.php?t=1470874

    Did you try this out already?
    Last edited by grubu; July 24th, 2011 at 09:22 PM.

  8. #788
    Join Date
    Apr 2008
    Location
    Brazil & Uruguay
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Grub 2 Basics

    I guess GRUB 2 has a lot of advantages from the "digital" point of view. But there are some days I miss the old one we can edit and arrange more easily...

  9. #789
    Join Date
    May 2011
    Beans
    80
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Grub 2 Basics

    Yes, we have to learn the exact syntaxes again, but hopefully grub3 will
    come in the same periode of time. So we can use the new knowledge
    for many many years

    Gonzalo_VC, maybe you missed the other thread of drs305 at
    http://ubuntuforums.org/showthread.php?t=1549847

    it is about iso-booting with grub2.
    Togehter with this thread it inspired me a lot.

    I think the Grub 2 Basic thread is a good start for building our minds on grub2 together.

    Now to me it seems that the combined know-how just has to be tested on either
    a real or virtual harddisk.

    So I would just say: Let us all don't mind on any question regarding grub2 and bring it to its limits.

    At the moment it seems that the only limit is:
    The number of partitions an extended-partition could take + 3 primary partions.
    Last edited by grubu; July 25th, 2011 at 12:06 AM.

  10. #790
    Join Date
    May 2011
    Beans
    80
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Grub 2 Basics

    Hello,

    I just wanted to post a small thing which might help you to control the grub2's display a little easier:

    Code:
    sudo apt-get install startupmanager
    startupmanager
    then try to configure just anything to your needs and reboot to test, for me all workes fine with 1024x768,
    which is absolutely enough for me. Just for a verify, the 'grub-install -v' gives me a line-output of:
    grub-install (GNU GRUB 1.98-1ubuntu12) anyway I don't think that it is version-dependend.

Page 79 of 94 FirstFirst ... 2969777879808189 ... 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
  •