LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-28-2006, 07:10 PM   #1
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Rep: Reputation: 0
How can I get back to XP after I installed Suse 10.1?


About 2 days ago I was playing with XP. Then I got the Linux Magazine which had the Suse 10.1 inside in. So I installed it on my computer and I am currently using it.

The problem that I have with my computer and Linux is that GRUB does not let me pick between Suse and XP. I know this because when the pc starts, GRUB starts up and directs me to Linux.

So, basically, how can I configure GRUB so I can pick between XP and SUSE?

And if you have some more time, how can I reach the 2 other partitions which I have on the drive? (In total I have 3 partition on one physical hard drive. One partition is XP, the other is SUSE and the third is nothing, just music and stuff).


Thank you very much in advance.

Last edited by linaxp; 07-28-2006 at 07:12 PM.
 
Old 07-28-2006, 07:16 PM   #2
deleted08
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Rep: Reputation: Disabled
hi

i don't know much, but did you put your suse on a different partition to xp?

and normally, when the initial boot scan is up, it says press any key to change Operating System or something like that
 
Old 07-28-2006, 07:17 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by linaxp
The problem that I have with my computer and Linux is that GRUB does not let me pick between Suse and XP. I know this because when the pc starts, GRUB starts up and directs me to Linux.

So, basically, how can I configure GRUB so I can pick between XP and SUSE?
Edit the /boot/grub/menu.lst Assuming XP is on your first partition, add a section like
Code:
root (hd0,0)
chainloader +1
makeactive
boot
Quote:
Originally Posted by linaxp
And if you have some more time, how can I reach the 2 other partitions which I have on the drive? (In total I have 3 partition on one physical hard drive. One partition is XP, the other is SUSE and the third is nothing, just music and stuff).
Use the mount command. man mount will tell you more. Or your file manager (Konqueror or Nautilis) might have an icon in the tree for you to right click and select "Mount Drive". Be careful if it is NTFS, you only want to mount the drive read-only (linux can't write reliably to NTFS).
 
Old 07-28-2006, 07:22 PM   #4
myates1980
Member
 
Registered: Jul 2006
Location: Lancaster, PA
Distribution: Slackware, FreeBSD,
Posts: 43

Rep: Reputation: 15
In the directory /boot/grub there is a file called "menu.lst" add this to it:

title Windows XP
root (hd0,0) #assuming that this is the partition windows is on
savedefault
makeactive
chainloader +1

make sure you have the correct partition device id under the root field, or it'll boot you into one of the other partitions.
 
Old 07-28-2006, 07:35 PM   #5
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by myates1980
In the directory /boot/grub there is a file called "menu.lst" add this to it:

title Windows XP
root (hd0,0) #assuming that this is the partition windows is on
savedefault
makeactive
chainloader +1

make sure you have the correct partition device id under the root field, or it'll boot you into one of the other partitions.

I found the file, but I can't open it. I double click on it. I don't know how to open it any other way. And it also has this "X" on it. When I double click, i get an error message which says "Couldn't display "/boot/grub/menu.lst"."

And, I know this may seem too much, but can you please tell me exactly what I have to write including any symbols. I have been using SUSE for 2 days, never before.


Thanks
 
Old 07-28-2006, 07:38 PM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
are you root? try and find your way into a terminal and type su then open the file with gedit or kedit
kedit /boot/grub/menu.lst

Last edited by AAnarchYY; 07-28-2006 at 07:41 PM.
 
Old 07-28-2006, 07:38 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can't open it because you need to have root access. Try right clicking and selecting "Open as Super User" or something like that. Or if that fails, there should be a program somewhere on your start menu that says "Open program as root" or the like. With that you can open a normal text editor and then open the file.
 
Old 07-28-2006, 07:47 PM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
maybe it's just a link to /boot/grub/grub.conf. do you have /boot/grub/grub.conf?

try cat-ing them in a terminal instead. like xterm or konsole.

Code:
cat /boot/grub/menu.lst
cat /boot/grub/grub.conf
 
Old 07-28-2006, 08:12 PM   #9
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by konsolebox
maybe it's just a link to /boot/grub/grub.conf. do you have /boot/grub/grub.conf?

try cat-ing them in a terminal instead. like xterm or konsole.

Code:
cat /boot/grub/menu.lst
cat /boot/grub/grub.conf

This did something, but I dont know what. I think it just read the file "menu.lst".

WHat it says is exactly what i get to choose from in the beginning: Linux, Floppy, or Failsafe.

For linux it says:
"###Don't change this comment = YaST2 identifier: Original name: Linux###
title SUSE Linux 10.1
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 vga=0*31a splash=silent showops
initrd /boot/initrd"

Then there is something similar for Floppy and Failsafe.

I think i get the fact that i have to write something similar to this in the "menu.lst" file and then save it, but I still can't open the file. When I open gedit and try to open it from there, it tells me "Could not open the file "/boot/grub/menu.lst" Access was denied."

When i tried "cat /boot/grub/grub.conf", i didnt get anything because i dont have that file.
 
Old 07-28-2006, 08:17 PM   #10
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
It looks to me like you may have installed Suse right on top of your XP partition.

You might just HAVE to become a Linux user.
 
Old 07-28-2006, 08:18 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, try from a command line typing su - which should prompt for your root password. Then type gedit /boot/grub/menu.lst. This should open the menu.lst file as the root user. After you modify the file, save it and close gedit. Then type exit to become your regular user again. Your prompt should change from a "#" to a "$" and should say your "username@machinename" at the front of your prompt.
 
Old 07-28-2006, 08:18 PM   #12
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by rickh
It looks to me like you may have installed Suse right on top of your XP partition.

You might just HAVE to become a Linux user.
Ouch! I just saw that too...
 
Old 07-28-2006, 08:20 PM   #13
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
please post the whole file. i'm getting a feeling that you have a 3rd party software that's managing the grub config.
 
Old 07-28-2006, 08:23 PM   #14
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rickh
It looks to me like you may have installed Suse right on top of your XP partition.

You might just HAVE to become a Linux user.

Thats what i thought at first, but then i went to Yast>Expert Partitioner and it shows me that I have the NTFS partition(XP), the Linux native and the extended.

/dev/hda1 11.7 GB - Linux
/dev/hda2 13.8 GB - HPFS/NTFS
/dev/hda3 103.2 GB - Extended
/dev/hda5 102.3 GB - HPFS/NTFS

the last 2 are the same.
 
Old 07-28-2006, 08:30 PM   #15
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by konsolebox
please post the whole file. i'm getting a feeling that you have a 3rd party software that's managing the grub config.

this is what i get when i write "cat /boot/grub/menu.lst"


-----------------------------------------------------------------------------------------------

linux-afyb:/home/sashko # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Thu Jul 27 02:17:36 UTC 2006

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,0)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux 10.1
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 vga=0x31a splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux 10.1
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd
linux-afyb:/home/sashko #


-----------------------------------------------------------------------------------------------
 
  


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
linux deleted, windows installed, but i want back zetsui Linux - General 11 07-29-2006 10:36 PM
Touchpad in suse goes back. alime SUSE / openSUSE 1 05-13-2005 03:54 PM
Suse 9.1 reverting back to XFree 3.9.x from CD Mal_Function Linux - Newbie 3 06-08-2004 08:09 AM
What do I back up in RH9 before installing SUSE? rkhartley Linux - Newbie 5 12-29-2003 08:40 AM
Get grub back in suse mindstormsguy Linux - Software 2 11-22-2003 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

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