Results 1 to 10 of 14

Thread: hiding partitions in Grub 2

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Sydney
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    hiding partitions in Grub 2

    anyone help on how to hide a partition in grub 2.

    cannot find anywhere on how to set this up.
    have a test system that has.
    Win XP
    Vista
    and had ubuntu 9.04 with grub 1

    in the grub menu.lst

    had

    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/sda2
    title Windows XP Professional
    unhide (hd0,1)
    hide (hd0,2)
    rootnoverify (hd0,1)
    savedefault
    makeactive
    chainloader +1


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda3
    title Windows Vista
    unhide (hd0,2)
    hide (hd0,1)
    rootnoverify (hd0,2)
    savedefault
    makeactive
    chainloader +1



    This was so win xp didn't see vista and stuff up and vista didn't see win xp
    also so straight boot to both os not using linux boot loader then the stupid vista boot loader.

    I cannot find any info on how to setup this in the new grub.cfg

    or were to set this up.

  2. #2
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,676
    Distro
    Ubuntu Development Release

    Re: hiding partitions in Grub 2


  3. #3
    Join Date
    Nov 2009
    Location
    Sydney
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: hiding partitions in Grub 2

    none of these post help all about change background pictures etc.
    have not found any useful info on how to get it working. yet.
    no man pages on grub 2.

    Please help someone out there must have this working already.

  4. #4
    Join Date
    Apr 2006
    Location
    Galax,Va. USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Question Re: hiding partitions in Grub 2

    I'm also having problems hiding a backup drive from the grub 2 menu. I looked at all the info I can find but still can't come up with an answer on how to hide a partition or drive from the probing.
    Iguana

    Registered Linux User #490719

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

    Re: hiding partitions in Grub 2

    @ dpg77
    I am not familiar with hiding the drives so I don't think the following would apply to you.

    @ Eddie Wilson,

    If all you want to do is exclude a particular partition from showing up in the menu, one solution might be buried in Grub 2 Title Tweaks. This post shows how you can change what is displayed in the menu by using scripting to hide or alter these items. Look at the 30_os-prober section.

    It would take a bit of work to come up with the exact script entries, but it can be done. If I have time, I will try to experiment with it, but everyone else is encouraged to take up the challenge and present the script entry which would hide a specific partition.

    Another option would be to change /usr/bin/os-prober to prevent it from looking at a particular partition.
    Back to Xorg...

    Retired.

  6. #6
    Join Date
    Apr 2006
    Location
    Galax,Va. USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: hiding partitions in Grub 2

    Thanks, I'll see what I can do.
    Iguana

    Registered Linux User #490719

  7. #7
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: hiding partitions in Grub 2

    Closed, necromancy.

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
  •