LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2002, 12:07 PM   #1
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Rep: Reputation: 15
Angry Dual booting XP and Mandrake 8.2


I had XP installed on my computer. I then partitioned my hd so I could put linux on. I now have linux up and running, but I can't switch back to XP. When I boot using lilo, there's no option to use XP, and it won't let me edit the lilo.conf file because whenever I try to login as the root user, it won't let me type a password.
 
Old 12-08-2002, 12:31 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Here's an option...

First off, you are really gonna need to be able to be root sometimes. You might wanna get that fixed first rather than doing what I am about to say. Anyway, how to edit a file without knowing root's pass:

Put in your install CD. When you come to the first screen where it says Press F1 for help, or Enter to continue, press F1. Then type:
rescue

This will boot into rescue mode. Choose the option to mount the drive to temp space or whatever the similar option is.

From there you can use a command line text editor that you have installed to edit the /etc/lilo.conf file, only it won't be located at /etc/lilo.conf but rather the mount point and then /etc/lilo.conf so if the option is to mount it at /tmp then the file to edit will be /tmp/etc/lilo.conf

A quick note on command line text editor, and I hope this doesn't start a war on them. You probably have vi installed, I think this is like a mandatory thing or something, this is not extremely newbie friendly. You might, for now, wanna give another text editor a run just to get through this, but should in the long run learn to use vi since it's SO standard, every distro seems to come with it installed on the most basic of installs. So for now, try using mc or pico to edit that file, if niether is installed, reboot, go back into the install process, install pine or midnight commander, then boot back into rescue mode and edit the file.

There might even be a rescue option to edit lilo directly, but I can't remember for sure right now.

HTH

Cool
 
Old 12-08-2002, 03:57 PM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,046

Rep: Reputation: 42
I hope that this isn't too lowbrow but is there an option for NT at Lilo bootup? Choose that ... that's what I get on my laptop with Hecks-pee and mandrake 8.2.
Good luck
 
Old 12-08-2002, 04:25 PM   #4
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
If only it were that simple esteeven, if only...

Ok, I can now get into the lilo.conf file through the terminal, but I don't know how to save my changes. I noticed that instead of having dos for the 'other' category, it had floppy. Is that what I should change?

Last edited by Sfpiano; 12-08-2002 at 04:45 PM.
 
Old 12-08-2002, 05:56 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Nah, you should add this entry:
Code:
other = /dev/hda1
  label = WinXP
  table = /dev/hda
Replacing the partition/drive letter/number with yours.

Cool
 
Old 12-08-2002, 06:07 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
you can also boot with the xp cdrom and pick rescue
or something like that and it will make xp the only bootable
thing,
or boot with a dos floppy with fdisk on it and
fdisk /mbr
or install freebsd's booteasy. its a dos utility you
run called bootinst.exe
just some different ideas.
i would boot with a knoppix cdrom and fix things
up with that.
i also prefer windows nt bootloader
the following command is similar to what
you would use to make a file for the nt bootloader
to use.
dd if=/dev/hda5 of=/hda1/work/redhat bs=512 count=1

here's my winnt boot.ini that i use, just to give you an
idea

[boot loader]
timeout=3
default=c:\work\redhat
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00"$
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00 $
c:\bootsect.dos="MS-DOS"
c:\work\redhat="Redhat"
c:\work\deb="Debian-Demolinux"
c:\work\peanut.lnx="Peanut"
c:\work\gentoo="Gentoo"
c:\work\mand8="M8"
 
Old 12-10-2002, 09:09 PM   #7
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
Well, I figured out how to change the lilo.conf file, but now I have another problem. When I try to boot XP, it says xmnt2002 - program not found and autochk - program not found. Yet I looked in my windows/system32 folder and those two files were there. Does anybody know what could be causing this?
 
Old 12-10-2002, 10:19 PM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i would guess that xp is freaking out about not
being the active partition anymore, or there is another
dos type drive there that it thinks is c. thats the problem
with those stupid drive letters. if i accidently leave
2 hard drives hooked up when i occasionally boot
windows 2000, it changes the c: drive to h:, and then
next time i boot, it just keeps saying it can't find anything.
i made a backup of that satanic.registry, i mean system.titanic, or system.reg or whatever it is, and i
copy it back whenever it butt plugs itself.
 
Old 12-10-2002, 11:24 PM   #9
JoC
Member
 
Registered: Dec 2002
Location: Kitchener, ontario , can
Distribution: RedHat 8.0
Posts: 44

Rep: Reputation: 15
sfpaino

when you installed your boot loader were you given the option to give your windows partition or drive a boot label? if you did not give your windows partion a boot label the boot loader will not see it becuz the name is blank. i did the same thing recently installing RH7.2 i tried what everyone here said about editing your /etc/lilo.conf file or grub which ever and it did not work it would give the error you got or just sit there! try reinstalling mandrake or just your boot loader if you can ( sorry i am still a noob and am not sure if you can or not ) and make sure you put a boot label in for your windows partition this is the screen you have to do it at!

http://www.redhat.com/docs/manuals/l...-bootload.html
 
Old 12-11-2002, 01:29 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Hi there, post the output of this (as root, from a terminal):
fdisk -l (FDISK -L lowercase)

To paste, simply highlight the text, and click the middle button/wheel to paste.

I am curious as to your drive setup.

Cool
 
Old 12-11-2002, 07:17 PM   #11
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
JoC: I have mandrake, and it doesn't give you that option at install (at least I dont think it does)

MasterC:
It says "bash: syntax error near unexpected token `-l(F' "


Also, is there a way to copy text out of the console?
 
Old 12-11-2002, 07:29 PM   #12
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
Also, is there a way to copy text out of the console?

To paste, simply highlight the text, and click the middle button/wheel to paste.

sorry. i had to do that.


also if you can't figure out the cut, paste thing,
you can
fdisk -l > butter.cup
and the file butter.cup will have
the info we need

Last edited by whansard; 12-11-2002 at 07:36 PM.
 
Old 12-11-2002, 07:47 PM   #13
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
Ahha, I didn't know you had to use the middle mouse button to paste in a regular window, I was just using ctrl-V, thanks.

Disk /dev/ide/host0/bus0/target0/lun0/disc: 240 heads, 63 sectors, 10337 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 2099 9807 58280008+ 17 Hidden HPFS/NTFS
/dev/ide/host0/bus0/target0/lun0/part2 9808 10337 4006800 f Win95 Ext'd (LBA)
/dev/ide/host0/bus0/target0/lun0/part3 * 69 2098 15346768+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part4 1 68 514048+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part5 9808 10337 4006768+ b Win95 FAT32

Partition table entries are not in disk order
 
Old 12-11-2002, 08:44 PM   #14
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
shouldn't that first partition be type 7
not 17?
Did you use some kind of partition program like
partition magic?
I think i get it though.
winnt was installed first, and you left free space
at the beginning of the drive, so when nt was installed,
it considered itself the first partition, then you
created the linux partitions before it on the drive,
which makes windows consider itself the third partition.
Does this sound like what happened?
I know some tricks around this if thats what it is..
 
Old 12-11-2002, 08:48 PM   #15
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
I had windows installed when I got the computer. Then I used Partition Magic to partition my hard drive. I put linux in the front, and the swap in the very front, because it told me that was the best place to put it. If you could fix this I would be so thankful.
 
  


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 booting fedora core 2 and mandrake: can't boot mandrake any more mgyamada Fedora 1 10-04-2004 08:39 AM
Help!! Dual booting xp and Mandrake 8.2 Rexof345 Linux - Newbie 3 05-14-2004 09:11 PM
Mandrake 8.2, dual booting MAGOVIA Linux - Newbie 1 03-28-2004 03:28 AM
Dual booting XP and mandrake once again... impulse Linux - Newbie 9 06-26-2003 08:18 PM
Dual booting using XP and mandrake 8.1 (need help!!) rdiggidy Linux - Software 4 04-07-2002 06:33 PM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration