LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 05-04-2004, 09:19 AM   #1
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Rep: Reputation: 15
Can't get linux (Disto SUSE 8.2 and XP to dual boot, it goes straight into Linux


Right,
Im new to Linux.
I had XP installed on my 120GB hard drive.
I had C: (sda1), D: (sda5): and G: (sda2)
XP was on D: (sda5), SuSE 8.2 is on what would be C: (sda1) I also have sda 2 which was for other files.. (not so important)

Right so I installed linux and I know XP is still there because when I put the XP cd in on start up, it has a partition still named XP.

Basically I want to be able to access XP, as I need to mirgrate files and other things over to Linux (because Linux is way way better )

I have been trying to read how you set up a boot partition and set up LILO or GRUB but I dont understand them and the commands I dont seem to get to work.. (I checked in YaST2 and LILO is installed but no commands will access it for some reason..

Maybe I am putting the commands in, in the wrong place..

Anyways anyone that can help me set it up, I would be very grateful...

Cheers
Ben

Last edited by unrealhippie; 05-04-2004 at 09:21 AM.
 
Old 05-04-2004, 09:29 AM   #2
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
Post ur /etc/lilo.conf please
 
Old 05-04-2004, 12:14 PM   #3
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Original Poster
Rep: Reputation: 15
when I go in "run command..." and type /etc/lilo.conf I get nothing and when I manually search for it, it is not there...

but if I type /ect/grub.conf I get
root (hd0,0)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst
quit

Last edited by unrealhippie; 05-04-2004 at 12:17 PM.
 
Old 05-04-2004, 02:09 PM   #4
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Original Poster
Rep: Reputation: 15
bump

really need to be fully functional with all files for Thursday.. HELP PLEASE..
 
Old 05-04-2004, 06:56 PM   #5
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
then u must be using GRUB

add this to /etc/grub.conf

Code:
# For booting Windows NT or Windows95
title Windows
rootnoverify (hd0,0)
makeactive
chainloader  +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
 
Old 05-05-2004, 11:53 AM   #6
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Original Poster
Rep: Reputation: 15
right what about for XP.. SO ALL I HAVE TO DO is change the conf, no partitioning or anything?

adding this:

# For booting Windows NT or Windows95
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos

didnt do anything (added with root so I could save)

also I want to get at XP.. argh im going to be working late on this..

To confirm again, so partitions or anything are needed right??

So my grub.conf reads:

root (hd0,0)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst
# For booting Windows NT or Windows95
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
quit

Last edited by unrealhippie; 05-05-2004 at 12:16 PM.
 
Old 05-05-2004, 01:48 PM   #7
Grasshopper
Member
 
Registered: Nov 2003
Location: CT, USA
Posts: 55

Rep: Reputation: 15
Quote:
Really need to be fully functional with all files for Thursday.. HELP PLEASE..
If you really need to get at Windows and have yet to properly configure GRUB then you could at least access the files through /mnt/windows (Suse should have ntfs file system support, although it may be mounted in a different place - just look for something like that) or if you need to be able to boot into Windows you could make a boot disk.

To make a simple Windows XP boot disk you need to copy the following files from your root directory (usually C:\ - or if you're accesing them from the linux side /mnt/windows) to a floppy diskette:
ntldr
NTDETECT.COM
boot.ini

Restart your computer with the floppy diskette in your disk drive.

At least this way you can still boot your Windows installation until you work the kinks out of GRUB.

Remember to post back if this works and include any other info poignant to your solution so others can benefit from your experience
 
Old 05-05-2004, 03:05 PM   #8
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Original Poster
Rep: Reputation: 15
the is a /mnt/ but no /mnt/windows.. the folder is empty..! help.. also would like proper access so can some1 just sell me how my grub should be - please!
 
Old 05-05-2004, 04:24 PM   #9
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
in suse, it must be /windows/c,d....
 
Old 05-06-2004, 02:18 AM   #10
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Original Poster
Rep: Reputation: 15
huh, what do you mean?

there is no /windows..

there is a /mnt/ but its empty..!

argh.. can you just tell me the correct conf of grub to let me choose between SuSE and XP.. please
 
Old 05-06-2004, 09:41 AM   #11
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
dude urs is sda, not hda , so the entries in grub might have to be scd0 or something ???

hey Linux GURUS, this man really needs help urgently !!!
HELP HIM!!!

Last edited by vinay_s_s; 05-06-2004 at 02:43 PM.
 
Old 05-06-2004, 02:21 PM   #12
unrealhippie
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 8.2
Posts: 23

Original Poster
Rep: Reputation: 15
anyone else out there that can help me..

btw thanks for trying to help vinay_s_s
 
Old 05-06-2004, 06:50 PM   #13
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Tell me if this is correct:

1. XP was originally installed on a single hard drive that was divided into three partitions; the C: drive (/dev/sda1) and D: (/dev/sda5) and G: (/dev/sda2).
2. Suse is now installed in /dev/sda1.
3. You want to access data in D: (/dev/sda5) and/or G: (/dev/sda2)
4. Ultimately you want to set up a dual boot between XP and Suse.

If the above is correct, here are my comments:

A. If you installed Suse into the same partition that previously held the XP C: drive, meaning /dev/sda1, then anything in C: has been overwritten. Since C: is the default location for XP, I suspect you may have wiped out your XP system files (unless you explicitly installed XP to the D: or G: drive)
B. If that is true, you won't be able to set up a dual boot, because XP is no longer on that machine.
C. That may be bad news, but the good news is that any data on D: and G: will still be accessible. What you'll need to do is to create a new "mountpoint" and then manually mount that partition to it. To illustrate:
* Create the mountpoint by running (as root): mkdir /mnt/old_d_drive
* Mount the partition holding the D: drive to your new mountpoint: mount /dev/sda5 /mnt/old_d_drive
* Confirm that it worked: ls -l /mnt/old_d_drive
* If so, copy the files of interest over to wherever you want to put them. Note that you can do the exact same thing with the G: drive too.

Hopefully that should solve the short term problem of accessing the data. As far as setting up this machine as a dual boot, that's a task for another day. You definitely will have to reinstall XP, in addition to possibly reinstalling Suse too, and then configuring your LILO or GRUB. Again, all of this post is based on the assumptions I made at the top. If they are incorrect then the following comments should be disregarded. Good luck with it either way -- J.W.
 
Old 05-06-2004, 10:05 PM   #14
aL BeasTie
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
dual BOOT XP

the problem is despite what drive you install Windows on, it puts it's boot information on C:
eg. boot.ini io.sys etc.

so when you installed linux you lost this.

I'm unsure the best method to dual-boot linux and XP

from experience XP aslways needs to be the last OS installed, as it automatically sets up the dual boot menu etc. If XP is on first you have to mess around a bit and repair the boot.ini - unsure if linux can be installed second using this method.

check out radified.com - he has very good/in depth install procedure for XP, dual/multi boot OS and a partitioning strategy guide as well as a few other guides. it will have the best way to get XP and linux going.
 
Old 05-07-2004, 02:46 AM   #15
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Re: dual BOOT XP

Quote:
Originally posted by aL BeasTie
...from experience XP aslways needs to be the last OS installed, as it automatically sets up the dual boot menu etc. If XP is on first you have to mess around a bit and repair the boot.ini - unsure if linux can be installed second using this method.
No.

It's possible to install Linux first and then install XP, but it is MUCH, MUCH easier to install Windows first, then Linux. The reason for this is that the Windows installation procedure overwrites the MBR, and if that's where you've installed lilo, you'll lose the dual boot function (or, at least you can reinstall it). -- J.W.
 
  


Reply



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
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
dual boot windows xp and suse linux 9.0 partitioning problem spodops Linux - Newbie 3 10-31-2004 03:38 PM
Dual Boot XP/SuSE Linux, FDISK question ece30675 Linux - Distributions 9 10-02-2004 09:44 AM
XP Suse Linux 9.1 dual boot skippy_1 Linux - Newbie 3 09-24-2004 09:01 PM
Dual Boot Win2000/SuSE Linux DDke Linux - Software 3 10-10-2002 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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