[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 12:00:03 +0200, Sjoerd Hiemstra wrote:

> 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 ' '`"

Woks perfectly so :) Thanks man!

Indeed, the first "Vista" partition is some weird "Windows" ntfs thingy, 
when i try to boot it i get a white on black windows error message. Never 
saw somethings like that. Probably related to the black magic of the 
recovery stuff.

The second "Vista" partition is the recovery stuff, when i boot on it, i 
get the Compaq interface to restore or backup the system.

Now need to find a way to fix that "Bad primary partition 2" :)

Kind regards,
David Van Mosselbeen


Reply to: