[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Partitioning a drive with Windows 7 already installed



On Tue, 26 Oct 2010 10:35:44 +0300 Andrei Popescu wrote:
> AFAICT there is currently no way to tell update-grub that some (or
> even all) of the partitions found by os-prober are not needed in the
> menu.

Well, at least you could edit /etc/grub.d/30_os-prober.
Line 35 reads:

     OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"

Run os-prober and determine which lines of its output you want to
include or exclude.
Examples:
only include the line that contains sda3:

     OSPROBED="`os-prober | grep sda3 | tr ' ' '^' | paste -s -d ' '`"

exclude the line that contains sdb4:

     OSPROBED="`os-prober | grep --invert-match sdb4 | tr ' ' '^' | paste -s -d ' '`"


Reply to: