LinuxQuestions.org
Review your favorite Linux distribution.
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 01-30-2007, 03:31 AM   #1
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Rep: Reputation: 0
Debian windows installer GRUB dual boot problem


I am a total newb when it comes to linux, i am doing my best to find my way through it though. I finally gave linux a chance using the debian windows installer. After the long install process, my computer finally booted into linux and I was happy to see everything worked okay, except when I rebooted and tryed to boot into windows it wasnt on the list of options. so i did some research, added

title Windows
rootnoverify(hd0,0)
savedefault
makeactive
chainloader+1
boot

when I select that in GRUB i get an "ERROR : No kernel loaded(or something close to that"

I have tried everything I can think of to fix this and i have no idea what to do, someone help me please, all i want is back into windows :-( thanks ahead of time everyone.
 
Old 01-30-2007, 03:47 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
all you really need is something like:

title Windows 2K/XP/2003 (hda1) or whatever partition windows is on
chainloader (hd0,0)+1
 
Old 01-30-2007, 03:53 AM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Try:
Code:
title Caution: Concentrated Evil
rootnoverify (hd0,0)
makeactive
chainloader +1
... the spaces are important.

If this doesn't work we need details available from a terminal under linux.
We need the exact error message;
fdisk -l (checking those partitions) output;
 
Old 01-30-2007, 03:53 AM   #4
720iD
LQ Newbie
 
Registered: Jan 2007
Location: UK Liverpool - Wigan
Distribution: changes daily
Posts: 5

Rep: Reputation: 0
i had similar problem yesterday which i resolved with Super Grub Disk. i found this is a really useful tool. it will restore windows MBR or restore grub and find all OS's. it has just set my ubuntu / windows grub automatically.

i am a total noob to and i had installed ubunbtu then had to reinstall WinXP due to problem on that OS. windows completly erased all traces of ubuntu boot.

i had play with Super Grub Disk for a couple of minutes figured out what it was doing and set it to auto restore. i now have a nice clean grub but showing me three ubuntu kernels and a WinXP os.
 
Old 01-30-2007, 04:34 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Isn't the normal grub-install supposed to do this?
In debian type
grub-install
It should detect other partitions and OS.
 
Old 01-30-2007, 05:58 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Isn't the normal grub-install supposed to do this?
grub-install is supposed to do this. However, it has been known to stuff up (and w know not what else the OP isn't telling us.)
 
Old 01-30-2007, 03:50 PM   #7
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for all of your guys' quick responses! I added spaces in between stuff and now I get this error instead.

Error 13: Unreadable or invalid format (or something like that.....)

Quote:
Disk /dev/hdc: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 2382 19133383+ 83 Linux
/dev/hdc2 2383 2491 875542+ 5 Extended
/dev/hdc5 2383 2491 875511 82 Linux swap / Solaris

Disk /dev/sda: 520 MB, 520093696 bytes
1 heads, 32 sectors/track, 31744 cylinders
Units = cylinders of 32 * 512 = 16384 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 2 31744 507888 e W95 FAT16 (LBA)
this is my fdisk -l output, it looks to me that it deleted my windows partition, is that what happened or because of this new windows installer thing is it installed on the same partition and mounted on a linux drive at boot. well I hope this helps, thanks guys! your help is great

I also tried to use super grub disk but I havent figured out how to install it yet, it looks like alot of their downloads are messed up on their web site

Last edited by zerocle; 01-30-2007 at 03:52 PM.
 
Old 01-31-2007, 01:35 AM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Do I read this right - sda1 is FAT16 (Win95)?!

Quote:
Error 13: Unreadable or invalid format (or something like that.....)
error 13 is "Inconsistent filesystem structure" Doesn't sound like you - there are plenty of "invalid" or "inconsistent" type errors that GRUB can issue, so the exact wording of the error is vital.

Anyway - it looks like

(hd0) = hdc
(hd1) = sda

look in /boot/grub/device.map to be sure.
 
Old 01-31-2007, 09:18 AM   #9
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
alright I will check for the exact error when I get home, but as I interpret what you just said, all I have to do is change my "rootnoverify (hd0,0)" to "rootnoverify (hd1,0)"? does that make sense since I only have 1 hard drive?

oh and i rebooted the computer the exact error message was
"Error 13: Invalid or unsupported executable format"

Last edited by zerocle; 01-31-2007 at 12:48 PM.
 
Old 02-01-2007, 03:06 AM   #10
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
fdisk reports that you have two hard drives, one is IDE in the secondary master position (linux) and the other is either SATA or usb-external (with windows).

Check: /boot/grub/device.map (copy to your reply.)

Anyway, if I am right, you'll also need the map command...

Last edited by Simon Bridge; 02-01-2007 at 03:09 AM.
 
Old 02-01-2007, 07:51 AM   #11
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
with SDA being 520 MB I would guess it's a USB Flash drive.. doubtful its a Hard drive.
 
Old 02-01-2007, 10:33 AM   #12
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
first of all, let me say thank you guys so much for helping me with this, I really appriciate it.

secondly, i have no idea whats going on with this computer lol, there were no flash drives plugged in, so i doubt it was that, and the computer doesnt even have sata on the mobo. I will put up the device.map as soon as I can, I ran into some issues with a vista install on another computer last night so i couldnt work on linux but i should have more time tonight.

Again, thank you guys so much for your help!
 
Old 02-02-2007, 02:06 AM   #13
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
There are a load of gotchas on the vista install... word is to install it as a dual-boot with XP to make sure everything goes first.

Something weird is happening for you because you have:
/dev/hdc1 *Linux
/dev/hdc2 Extended
/dev/hdc5 Linux swap / Solaris

/dev/sda1 * W95 FAT16 (LBA)

The entire hdc is occupied by linux. If you expected to share a single drive with windows, then you have no windows. Think of it as a bonus

This is the secondary master IDE drive. Unusual, one expects the sole HDD to be hda. So that is the table you need to explain.
 
Old 02-02-2007, 02:07 AM   #14
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by Simon Bridge
grub-install is supposed to do this. However, it has been known to stuff up (and w know not what else the OP isn't telling us.)
I've used grub-install several hundred times, never had any problems
The only problems came from MY errors.

I suggest the OP to try grub-install which is the first thing to try. Editing file is the second way of doing it.
If the disks and partitions are recognized, it should work.

I've heard that windows and vista on dual boot don't coexist well though


edit:

Quote:
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 2382 19133383+ 83 Linux
/dev/hdc2 2383 2491 875542+ 5 Extended
/dev/hdc5 2383 2491 875511 82 Linux swap / Solaris

Disk /dev/sda: 520 MB, 520093696 bytes
1 heads, 32 sectors/track, 31744 cylinders
Units = cylinders of 32 * 512 = 16384 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 2 31744 507888 e W95 FAT16 (LBA)
Did the partition program in debian saw your windows or did you install ON windows?
humm you have made a complete switch then

Last edited by nx5000; 02-02-2007 at 02:10 AM.
 
Old 02-03-2007, 03:28 PM   #15
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
heres my device.map, I dont have to know linux to know what this means lol crap, normally I wouldnt have a problem running linux, but this is for an arcade machine and I dont know how well linux works with that, ugh

(hd0) /dev/hdc
 
  


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
Grub 1.5 Error 21 when installing Debian/Windows dual-boot VinceIP Debian 15 01-30-2007 04:13 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
after installer install no Debian kernel to boot in GRUB st1cky_rice Debian 4 01-16-2006 03:42 PM
Problem with GRUB when trying to dual boot Mandrake 10.1 and Windows XP. JakeMH Linux - Newbie 4 02-25-2005 06:40 AM
dual boot & debian installer w42w42 Debian 4 02-21-2004 11:41 PM


All times are GMT -5. The time now is 02:42 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