Possible Repost (Sorry) Windows 7 vs Ubuntu

Brian Cluff brian at snaptek.com
Mon Jun 6 02:05:53 MST 2011


The update-grub command (which just points to grub-mkconfig) just 
assembles grub's config file.  The MBR remains unchanged until you do a 
grub-install, so your drives should be 100% intact unless you've done 
something to them trying to "fix" them.

That being said, other OSes are added to the grub menu via the os-prober 
package.  If you don't want them to show up at all, you can simply 
remove that package... but I'll bet you want at least one of them to 
show up.

Larry is probably right in that the os-prober is simply finding some 
left over remnant from a previous windows install that probably doesn't 
do anything, so you can just safely ignore it and just use the menu item 
that does work.

Brian Cluff


On 06/05/2011 11:29 PM, Dazed_75 wrote:
> Carlton,
>
> Doing  the sudo update=grub would have replaced the MBR on sda unless
> you specified otherwise.  That should not be a problem unless you
> actually WANT to be unplugging and plugging drive to change what boots.
> The Win7 loader it found for sdb is probably an artifact of how it was
> formatted.  It should not work if it is a data drive as you say.  It is
> possible to remove that entry from the grub menu but you need to do it
> correctly.
>
> I am not sure you are up to this but here is link to a discussion of
> doing this.
> http://www.bodhilinux.com/forums/index.php?/topic/1028-how-to-grub2-hide-windows-recovery-partition/
>
> If you are not sure of yourself doing this, ypu could bring your system
> to an installfest and I can do it for you.
>
> Larry
>
> On Sun, Jun 5, 2011 at 5:52 PM, Carlton Brooks <linux at carltonbrooks.net
> <mailto:linux at carltonbrooks.net>> wrote:
>
>     I have 3 HARD DRIVES. Drive 1 (sda) is a Windows 7 Drive. Drive 2 (sdb)
>     is a data drive. Drive 3 (sdc) is an Ubuntu 11.04 drive.
>
>     I just upgraded to 11.04 by disconnecting sda and sdb. I then installed
>     11.04. I then reconnect all the drives
>
>     After install I did a sudo update-grub. It displayed the following
>
>     Generating grub.cfg ...
>     Found linux image: /boot/vmlinuz-2.6.38-8-generic
>     Found initrd image: /boot/initrd.img-2.6.38-8-generic
>     Found memtest86+ image: /boot/memtest86+.bin
>     Found Windows 7 (loader) on /dev/sda1
>     Found Windows 7 (loader) on /dev/sdb1
>     done
>
>     I have no idea why 2 Windows.
>
>     Then ran fdisk -l. It displayed the following
>
>     Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
>     255 heads, 63 sectors/track, 121601 cylinders
>     Units = cylinders of 16065 * 512 = 8225280 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disk identifier: 0xda607973
>
>        Device Boot      Start         End      Blocks   Id  System
>     /dev/sda1   *           1      121601   976759008+   b  W95 FAT32
>
>     Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
>     255 heads, 63 sectors/track, 121601 cylinders
>     Units = cylinders of 16065 * 512 = 8225280 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disk identifier: 0xda607971
>
>        Device Boot      Start         End      Blocks   Id  System
>     /dev/sdb1   *           1          13      102400    7  HPFS/NTFS
>     Partition 1 does not end on cylinder boundary.
>     /dev/sdb2              13      121601   976656384    7  HPFS/NTFS
>
>     Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
>     255 heads, 63 sectors/track, 121601 cylinders
>     Units = cylinders of 16065 * 512 = 8225280 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disk identifier: 0x0009ca99
>
>        Device Boot      Start         End      Blocks   Id  System
>     /dev/sdc1   *           1      120558   968373248   83  Linux
>     /dev/sdc2          120558      121602     8386561    5  Extended
>     /dev/sdc5          120558      121602     8386560   82  Linux swap /
>     Solaris
>
>     Now when I boot up it shows the grub menu, and lists all the choices,
>     but when the Windows sda1 is picked it reboots. When sdb1 is picked it
>     says I have a windows error.
>
>     I beleive I have corrupted or destroyed the Windows MBR or Boot Record.
>     I have attempted to fix it using the Windows disk but still does not
>     work.
>
>     Any help would be appreciated.
>
>     Carlton Brooks
>
>
>
>     ---------------------------------------------------
>     PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>     <mailto:PLUG-discuss at lists.plug.phoenix.az.us>
>     To subscribe, unsubscribe, or to change your mail settings:
>     http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
>
> --
> Dazed_75 a.k.a. Larry
>
> The spirit of resistance to government is so valuable on certain
> occasions, that I wish it always to be kept alive.
>    - Thomas Jefferson
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list