Skip to contentSkip to conversation

Windows

DISCUSSION Viswesh S 2 participants 2 messages Jul 30, 2008

lore
Share & tools
lore

Viswesh S

author
#0 lore raw

Hi,
With grub2,what are the things I should take care, if I have another hard disk (ide , primary) with windows. My initial boot device is a sata one with linux.
This is my device map
(hd0)   /dev/sda
(hd1)   /dev/hda

My fdisk
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System /dev/sda1   *           1        3647    29294496   83  Linux /dev/sda2            3648        4133     3903795   82  Linux swap / Solaris /dev/sda3            4134       10322    49713142+  83  Linux /dev/sda4           10323       19457    73376887+   5  Extended /dev/sda5           10323       19457    73376856   83  Linux Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System /dev/hda1   *           1        9729    78148161    7  HPFS/NTFS /dev/hda2            9730       19458    78140416    7  HPFS/NTFS

This is my grub.cfg for windows
menuentry "GNU/Linux, linux 2.6.15-51-amd64-k8" {
    linux   (hd0,1)/boot/vmlinuz-2.6.15-51-amd64-k8 root=/dev/sda1 ro initrd  (hd0,1)/boot/initrd.img-2.6.15-51-amd64-k8
}
menuentry "GNU/Linux, linux 2.6.15-51-amd64-k8 (single-user mode)" { linux   (hd0,1)/boot/vmlinuz-2.6.15-51-amd64-k8 root=/dev/sda1 ro single initrd  (hd0,1)/boot/initrd.img-2.6.15-51-amd64-k8
}
menuentry "Windows" {
    chainloader (hd1,1)+1
}
Is all this is sufficient or is there anything else I should add. Viswesh

Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/

#1 lore raw
Quoted 5 lines · Viswesh S
menuentry "Windows" {
    chainloader (hd1,1)+1
}

Is all this is sufficient or is there anything else I should add.

I think you are better off describing the problem, not asking others to guess what could be wrong without knowing what the problem is.

Signature · 2 lines
Regards,
Pavel Roskin