Author Topic: added 3rd sata drive---grub problems.. (solved)  (Read 668 times)

Offline pirate

  • Hero Member
  • *****
  • Posts: 523
  • aka-pirate
added 3rd sata drive---grub problems.. (solved)
« on: January 05, 2011, 01:25:49 PM »
added 3rd sata drive---windows will not boot from grub..
window will boot from F12 boot menu

Bios disk order
WD 500gb = sda----linux
Seagate 150gb = sdb---windows
WD 80gb = sdc----linux

-------------------------------------------------------------
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,1)/boot/gfxmenu
default 0

title PCLinuxOS 2010
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=PCLinuxOS_2010 root=UUID=951f21fd-43c9-454f-86a5-b7c88874d874 vmalloc=256M resume=UUID=57046729-7b40-4084-93ea-e9314eadfee2 splash=silent vga=788
initrd (hd0,1)/boot/initrd.img

title linux-nonfb
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=951f21fd-43c9-454f-86a5-b7c88874d874 vmalloc=256M resume=UUID=57046729-7b40-4084-93ea-e9314eadfee2
initrd (hd0,1)/boot/initrd.img

title failsafe
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=951f21fd-43c9-454f-86a5-b7c88874d874 failsafe vmalloc=256M
initrd (hd0,1)/boot/initrd.img

title linux
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=951f21fd-43c9-454f-86a5-b7c88874d874 vmalloc=256M resume=UUID=57046729-7b40-4084-93ea-e9314eadfee2 splash=silent vga=788
initrd (hd0,1)/boot/initrd.img

title 2.6.33.7-pclos1.pae
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos1.pae BOOT_IMAGE=2.6.33.7-pclos1.pae root=UUID=951f21fd-43c9-454f-86a5-b7c88874d874 vmalloc=256M resume=UUID=57046729-7b40-4084-93ea-e9314eadfee2 splash=silent vga=788
initrd (hd0,1)/boot/initrd-2.6.33.7-pclos1.pae.img

title pclos2
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=pclos2 root=UUID=a4376a9f-f72b-4735-aaa2-e2385e943ba3  resume=UUID=57046729-7b40-4084-93ea-e9314eadfee2 splash=silent vga=788
initrd (hd0,4)/boot/initrd.img


title Gnome
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=Gnome root=UUID=23e9d4e5-ba55-4c0b-ad12-030c98d11b67  resume=UUID=57046729-7b40-4084-93ea-e9314eadfee2 splash=silent vga=788
initrd (hd0,5)/boot/initrd.img


title windows
root (hd1,0)----have tried hd0,0---have tried hd1,0---have tried hd2,0
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1
savedefault
---------------------------------------------------------------------------------
[root@jim pirate]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8d399bc0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    11775644     5887791   82  Linux swap / Solaris
/dev/sda2        11775645   171399167    79811761+  83  Linux
/dev/sda3       171399168   226322431    27461632   83  Linux
/dev/sda4       226323720   976768064   375222172+   5  Extended
/dev/sda5       226323783   443956274   108816246   83  Linux
/dev/sda6       443956338   667741724   111892693+  83  Linux
/dev/sda7       667741788   976768064   154513138+  83  Linux

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x235f0603

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          63   156296384    78148161   83  Linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8eabea6f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   109402649    54701293+   7  HPFS/NTFS
/dev/sdb2       109404160   312580095   101587968    7  HPFS/NTFS

---------------------------------------------------------------------------------

[pirate@jim ~]$ blkid
/dev/sda3: LABEL="Music" UUID="4410a4b5-cbdb-427d-80a7-84fd9cbea547" TYPE="ext4"
/dev/sda5: LABEL="pclos-sdb5" UUID="a4376a9f-f72b-4735-aaa2-e2385e943ba3" TYPE="ext4"
/dev/sda6: LABEL="gnome-sdb6" UUID="23e9d4e5-ba55-4c0b-ad12-030c98d11b67" TYPE="ext4"
/dev/sda7: LABEL="data-sdb7" UUID="78c3321f-a0b7-4f8f-b5b8-6d20bbf6e301" TYPE="ext4"
/dev/sda1: UUID="901a8495-c68e-4eb2-a083-d042b87b8eb9" TYPE="swap" LABEL="500"
/dev/sda2: LABEL="pclos-root" UUID="951f21fd-43c9-454f-86a5-b7c88874d874" TYPE="ext4"
/dev/sdb1: LABEL="XP" UUID="603870DC3870B2A0" TYPE="ntfs"
/dev/sdb2: LABEL="win7" UUID="1E47D2306D314544" TYPE="ntfs"
/dev/sdc1: LABEL="Library-sdc1" UUID="042a751c-d85a-4ecd-ab68-7233387ffb73" TYPE="ext4"
[pirate@jim ~]$

« Last Edit: January 05, 2011, 02:40:24 PM by desperado »
The best way to save face is keep the bottom half shut.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: added 3rd sata drive---grub problems..
« Reply #1 on: January 05, 2011, 01:45:56 PM »



title windows
root (hd1,0)----have tried hd0,0---have tried hd1,0---have tried hd2,0
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1
savedefault



When you change the root line you also have to change the map lines. This should work.

title windows
rootnoverify (hd2,0)
map (0x82) (0x80)
map (0x80) (0x82)
makeactive
chainloader +1
savedefault

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

smcs_steve

  • Guest
Re: added 3rd sata drive---grub problems..
« Reply #2 on: January 05, 2011, 02:36:19 PM »
Quote
Bios disk order
WD 500gb = sda----linux
Seagate 150gb = sdb---windows
WD 80gb = sdc----linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8eabea6f
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   109402649    54701293+   7  HPFS/NTFS
/dev/sdb2       109404160   312580095   101587968    7  HPFS/NTFS

I would have thought hd1 ?
What partition is Windows OS installed to /dev/sdb1 -- (hd1,0)  or  /dev/sdb2 -- (hd1,1) ?
I see you active (boot) partition is set to /dev/sdb1
(forgive me if I've run off track here)
>Steve

Offline pirate

  • Hero Member
  • *****
  • Posts: 523
  • aka-pirate
Re: added 3rd sata drive---grub problems..
« Reply #3 on: January 05, 2011, 02:39:52 PM »



title windows
root (hd1,0)----have tried hd0,0---have tried hd1,0---have tried hd2,0
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1
savedefault



When you change the root line you also have to change the map lines. This should work.

title windows
rootnoverify (hd2,0)
map (0x82) (0x80)
map (0x80) (0x82)
makeactive
chainloader +1
savedefault


old-polack to the rescue again...Thank You Mr.old-polack

The best way to save face is keep the bottom half shut.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: added 3rd sata drive---grub problems..
« Reply #4 on: January 05, 2011, 02:48:36 PM »
Quote
Bios disk order
WD 500gb = sda----linux
Seagate 150gb = sdb---windows
WD 80gb = sdc----linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8eabea6f
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   109402649    54701293+   7  HPFS/NTFS
/dev/sdb2       109404160   312580095   101587968    7  HPFS/NTFS

I would have thought hd1 ?
What partition is Windows OS installed to /dev/sdb1 -- (hd1,0)  or  /dev/sdb2 -- (hd1,1) ?
I see you active (boot) partition is set to /dev/sdb1
(forgive me if I've run off track here)
>Steve

Assuming the the posted Windows stanza is the one that previously worked, and the only change was the adding of a drive, (as was specified) only the drive number needs changing. The partitions on the Windows drive would not have changed.

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

smcs_steve

  • Guest
Re: added 3rd sata drive---grub problems.. (solved)
« Reply #5 on: January 05, 2011, 02:53:28 PM »
Assuming the the posted Windows stanza is the one that previously worked, and the only change was the adding of a drive, (as was specified) only the drive number needs changing. The partitions on the Windows drive would not have changed.

OK...   no need to use such colorful language...   ;)
I think I'll go sulk in the sand box a while!

>Steve   ;D