LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-10-2006, 05:23 PM   #1
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Rep: Reputation: 0
Question dual boot custom homemade problem of mine :)


Hi all!

Long time no see, look at this
Welcome back iznogud
You last visited: 12-01-04 at 3:09 pm
New posts: 868,397
Log Out

Well,

I am coming back with a problem It is about boot loader - neither grub nor lilo are helping me. this is my configuration&situation like five days ago:

hdc is a quantum fireball 6gb hdd with single partition. it was C drive and it has had MBR on it, though i've never used it as an OS partition, but as a temp storage.

sda is a maxtor 80gb hdd, with two partitions: D with winXP system on it, and E as a file repository.

everything was working just fine, until... i installed SuSE 10.0 onto the first, smaller quantum drive. as i was going through the installation, it seemed suspicious that grub never asked me about booting windows - and once i finished installation, i realized i can't boot into my windows box anymore. not that i need it sooooo bad, but i'd still like to be able to boot windows w/out reinstalling the system again. however, from SuSE i am perfectly able to browse D and E partitions - under windows folder drives are mounted and files accessible. nothing seems to be damaged, except that i cannot configure them back to get them working with dual boot. i have run yast's boot loader trying several configurations, but whenever i try to add windows partition, it gets stuck on (chain loading hd1/0), 1 and - that's it. i can't boot back into the windows box. i can browse drives, i can't boot windows. i've tried reading around and phoned couple of linxperts before i posted but this seems to be a custom problem, so don't be angry at my n00b question

thank you all in advance for help, greetings

p.s. i've got more problems, like not being able to set up 3d on my ati radeon 9550, but i go one thing at a time

post post scriptum: another thing i forgot to mention is that i don't have a floppy drive at all (never bought it nor i want it). i also have two ide drives - cd-rw and dvd-rw, respectivly E and F drives before, in windows. i was thinking (though, haven't tried it before consulting with you experts) how about if i try yast's boot loaders' option of "restore MBR of the hard disk" and than run suse from CD, and reconfigure LILO? though, i am not sure if it'd work. what happens if i try restore with windows cd.... hm. there is several options, but i don't want to go through reinstallations of either of my systems, i just want to make them work, so before i mess with those radical solutions, i thought someone would have some... easier solution.

thanks for all the attention to my fuzzy post, and for all the help, in advance, thanks a lot.

p.p.p.s.
when i try and change at boot time to my windows at sda1 or sda2 or sda5, i just get stuck with the screen saying "chainloader (hd1,1)+1" and that's it.

Last edited by iznogud; 04-10-2006 at 05:30 PM.
 
Old 04-10-2006, 08:02 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
You have same problem
 
Old 04-11-2006, 01:22 AM   #3
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
ok, emerson, thanks a lot - your input was wery helpful, though i am not there yet, bear with me a little longer. with this

title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

i was able to boot the right partition, however i got "ntloader is missing" error in windows. so, for windows i should copy ntldr and ntdetect.com to the root of the primary disk - which is right now - suse disk and first partition is used for swap and second one for native linux partition...

what now? is there an easier solution than wiping both drives and redoing it properly?
 
Old 04-11-2006, 05:50 AM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
Are you sure you are booting right partition? Looks like you are booting correct HDD but not partition. GRUB names first partition 0, second 1, etc. You may need to set rootnoverify (hd1,1). If you cannot get it working please post output of
Code:
fdisk -l
 
Old 04-11-2006, 06:04 AM   #5
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Emerson
Are you sure you are booting right partition? Looks like you are booting correct HDD but not partition. GRUB names first partition 0, second 1, etc. You may need to set rootnoverify (hd1,1). If you cannot get it working please post output of
Code:
fdisk -l
i tried that already before asking here, thought of it by myself, when i changed it to (hd1,1) it was stuck displaying ...

title Windows
rootnoverify (hd1,1)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

and when i went back to (hd1,0) i got "ntldr is missing" again. what do you think about using recovery console to retrieve windows partition and get it working, than to use suse cd to reinstall grub and try to re-configure it to work with both OSes? my doubt is in the fact that ntldr is supposed to go to the root of the first drive but i am pretty sure it is larger than MBR, therefore if i go through recovery i might damage suse installation, and than i am stuck with reinstalling it... if i hav e to reinstall, i'd rather do it with the windows than linux, cuz my winbox was getting cranky before and linux is fresh and updated like, yesterday..
 
Old 04-11-2006, 06:57 AM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
Still waiting for output of fdisk -l ...
 
Old 04-11-2006, 07:17 AM   #7
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
no problem, i will post it as soon as i get home.
 
Old 04-11-2006, 09:51 AM   #8
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
Disk /dev/hdc: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 129 1036161 82 Linux swap / Solaris
/dev/hdc2 * 130 784 5261287+ 83 Linux

Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 * 1913 9963 64669657+ f W95 Ext'd (LBA)
/dev/sda5 1913 9963 64669626 7 HPFS/NTFS
linux:~ #

now, what do i do? i tried setting both sda1 and sda2 as boot, didn't work (sda2 or sda5 is file partition, sda1 is system i want but can't boot)

Last edited by iznogud; 04-11-2006 at 09:53 AM.
 
Old 04-11-2006, 10:10 AM   #9
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
OK, Windows is hd1,0 for GRUB then. The error you get is about missing/damaged Windows bootup files which are boot.ini, ntloader and ntdetect.com if I recall correctly. Are these files present in sda1? In case they are damaged I'd recommend disconnecting your Linux HDD temporarily, boot up using XP CD and use Windows recovery procedure to fix your Windows installation. Also I suggest you connect your Linux HDD as hda. There is no need to reinstall anything. All you need to do is edit /boot/grub/device.map and /etc/fstab to reflect the change.
 
Old 04-11-2006, 10:18 AM   #10
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
no, files aren't present. really wierd thing is .... history of installation. i have had originally 6gb + 40gb both ide drives, with win2000 installation on the smaller, hdc drive. later i bought larger sata disk, and replaced 40 gig with 80 gig drive (sda device). once i was done with installing xp onto first partition of the new drive, i realized that mbr, ntldr and netdetect.com remained on the c drive, which was smaller one (hdc drive). that didn't bother me, but i couldn't have taken it out - if i tried, i'd get "ntldr missing" error (so i realized files are on the c drive). i couldn't fix the installation even from recovery console if i'd take C (smaller) disc out. i simply let it stay in the computer and didn't really use it except for the temp small drive for downloads, sharing, etc. now i installed suse onto that drive...

ok, seems i am able to hit the right partition with the GRUB, i think now i need to look for help soewhere on the windows forums i need to move NTLDR and netdetect.com onto the D drive and it should work fine, i think.
 
Old 04-11-2006, 10:22 AM   #11
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Emerson
Also I suggest you connect your Linux HDD as hda. There is no need to reinstall anything. All you need to do is edit /boot/grub/device.map and /etc/fstab to reflect the change.
I am done with device.map, now i have to try to fix this thing with ntldr. Thanks a million, you were very helpful.
 
Old 04-12-2006, 05:44 AM   #12
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
eemmmmm.... i can't boot either disk now. i booted up rescue disk, what do you think - is it gonna work again if i just edit device.map again? problem is - it says it can't find a kernel at sda2 anymore...
 
Old 04-12-2006, 05:59 AM   #13
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
Your kernel is on hda2, not sda2. Looks like you got it wrong in device.map. You have one IDE disk and one SATA. Your BIOS is set to boot from IDE (keep it this way). This means your IDE disk must be hd0 for GRUB and SATA disk is hd1.
 
Old 04-12-2006, 06:22 AM   #14
iznogud
LQ Newbie
 
Registered: Nov 2004
Location: sarajevo
Distribution: Slackware, SuSE, puppy
Posts: 17

Original Poster
Rep: Reputation: 0
Sorry, wrong letter, lapsus keyborda. It was saying it coulnd't find kernel at /dev/hda2... could i just go back and edit device.map so that my boot device is dev/hdc2 ? To return it to yesterdays state - to have at least something bootable? Or if you know, from here, what would I edit in device.map or first.1st so my machine would boot linux again?

It still feels like I am in for reinstallation...of both systems, unfortunately. Can't figure this out, if it keeps me until weekend like this, I will just simply go and reinstall. I'll rather spend 3 hrs with reinstalling everything and get it working than to drag this for days and still not get it functional...
 
Old 04-12-2006, 06:40 AM   #15
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
First, run fdisk -l again to see if your IDE is really hda now. Then, you need to check if everything is OK in menu.lst (grub.conf). There must be correct root=/dev/hda2 in kernel command line. Reinstalling everything because of misconfigured bootloader isn't feasible IMO.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 03:13 PM
Options for computer (not mine) which will not boot. Shay Slackware 3 12-15-2003 04:45 PM
Big, Old Problem of Mine gauge73 Linux - Networking 9 12-11-2003 11:25 AM
Homemade Boot/root disk trouble Scerj Linux - General 2 05-20-2001 06:52 PM
my homemade boot disks can't load kernel Scerj Linux - General 1 02-15-2001 03:41 PM


All times are GMT -5. The time now is 07:18 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
Open Source Consulting | Domain Registration