LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-10-2008, 02:40 PM   #1
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Rep: Reputation: 31
dual boot problem on debian lenny and windows


Hi people

( I hope I do not ask unclear questions )

today I installed debian/lenny on an machine. So it is dual-boot with WinXP. I installed debian in same environment many times but grub did not recognize debian on first /dev/hda1 partition and now I am not able to boot it. In /boot/grub/menu.lst I have:

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.22-3-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-3-686 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.22-3-686

title Debian GNU/Linux, kernel 2.6.22-3-686 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-3-686 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.22-3-686

### END DEBIAN AUTOMAGIC KERNELS LIST

title WinXP
rootnoverify (hd0,0)
makeactive
chainloader +1

fdisk -l


fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x18d818d7

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1044 8385898+ 7 HPFS/NTFS
/dev/hda2 1045 2609 12570862+ 7 HPFS/NTFS
/dev/hda3 2610 3582 7815622+ 83 Linux
/dev/hda4 3583 9729 49375777+ 5 Extended
/dev/hda5 3849 8200 34957408+ 83 Linux
/dev/hda6 8201 9173 7815591 83 Linux
/dev/hda7 9174 9538 2931831 83 Linux
/dev/hda8 9539 9729 1534176 83 Linux
/dev/hda9 3583 3848 2136582 82 Linux swap / Solaris

Partition table entries are not in disk order ----confusing for me.

I tried to reinstall grub but without success.

grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type unknown, partition type 0x7
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type unknown, partition type 0x82

grub> root (hd0,0)
Filesystem type unknown, partition type 0x7

grub> grub> setup (hd0,0)

Error 17: Cannot mount selected partition

...

I really do not know what to change/do in order to make it works.

Thanks in advance for your suggestions.
 
Old 03-10-2008, 03:26 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 358

Rep: Reputation: 39
try deleting the "makeactive" line in your menu.lst and assuming your windows partition is really (hd0,0), then try adding (hd0,0) to the chainloader section.

mine looks like this and it works:

Code:
title Windows XP Professional
    rootnoverify (hd0,2)
    chainloader (hd0,0)+1
good luck,
rabbit2345

Last edited by rabbit2345; 03-10-2008 at 03:30 PM.
 
Old 03-10-2008, 03:41 PM   #3
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by rabbit2345 View Post
try deleting the "makeactive" line in your menu.lst and assuming your windows partition is really (hd0,0), then try adding (hd0,0) to the chainloader section.

mine looks like this and it works:

Code:
title Windows XP Professional
    rootnoverify (hd0,2)
    chainloader (hd0,0)+1
good luck,
rabbit2345
Thanks for reply, I tried the same situation...
after choosing WinXp and pressing enter in grub menu, just short flash is there and returning to main grub menu

I installed debian many times, for same situations but this is very strange to me .
 
Old 03-10-2008, 09:45 PM   #4
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 358

Rep: Reputation: 39
ok,

Try changing the rootnoverify (hd0,2) to (hd0,0)

the rootnoverify should be your linux boot partition? i think, that's how it is on mine

the chianloader line is your windows partition

try that, then post the results

good luck,

rabbit2345
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot Lenny-testing and Vista notgigolo Linux - Newbie 2 03-18-2008 08:10 AM
Boot from Raid Debian Lenny pliqui Debian 9 11-22-2007 11:17 AM
dual boot etch and lenny plesaleza Debian 6 09-02-2007 01:21 AM
Debian windows installer GRUB dual boot problem zerocle Debian 16 02-04-2007 03:34 AM
Dual boot (Debian, Windows) skinter Linux - Newbie 7 06-14-2005 12:06 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration