LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I get back to XP after I installed Suse 10.1? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-get-back-to-xp-after-i-installed-suse-10-1-a-468700/)

linaxp 07-28-2006 08:33 PM

Quote:

Originally Posted by pljvaldez
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.



WOOOOOOOOOOOOOOOOOW,

i dont know what i have been doing alllllll night, but I just copied and pased what you wrote and it opened.

I wrote the exact same thing like 1000 times before and it did not work.



I dont think i am finished yet. I guess i have to type that code now.

linaxp 07-28-2006 08:36 PM

this is what the file says again:

____________________________________________________________________________________________________ __
# 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
____________________________________________________________________________________________________ __

pljvaldez 07-28-2006 08:38 PM

The trick is that this time you were the root (super) user. That's what the su - does. Just be sure to type exit from the command prompt when you're done (you're not supposed to stay root for longer than you need to).

linaxp 07-28-2006 08:39 PM

Quote:

Originally Posted by pljvaldez
The trick is that this time you were the root (super) user. That's what the su - does. Just be sure to type exit from the command prompt when you're done (you're not supposed to stay root for longer than you need to).



I was in root before too.

Anyways, thanks to everyone.

Let me see if I can modify it now.

linaxp 07-28-2006 08:53 PM

can someone please check this and see if i have it all correct?

----------------------------------------------------------------------------------------------------
# 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

###Don't change this comment - YaST2 identifier: Original name: Windows XP###
title Microsoft Windows XP
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda2
initrd /boot/initrd

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

konsolebox 07-28-2006 09:09 PM

Quote:

Originally Posted by linaxp
title Microsoft Windows XP
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda2
initrd /boot/initrd

are you booting a linux titled "Microsoft Windows XP"?

shouldn't this be something like:

Quote:

Originally Posted by linaxp
title Microsoft Windows XP
root (hd0,0) #same partition?
makeactive
chainloade r+1

just thinking..

linaxp 07-28-2006 09:22 PM

Quote:

Originally Posted by konsolebox
are you booting a linux titled "Microsoft Windows XP"?

shouldn't this be something like:



just thinking..

One question before trying it.
Why is it "(hd0,0)"? What are the zeroes for?

konsolebox 07-28-2006 09:33 PM

in (hdX,Y) the X is the number equivalent of hard disk letter minus one, example hda = hd0

the Y is the partition number - 1, example hda1 = hd0,0

myates1980 07-28-2006 09:43 PM

open a console and type this:

su [ENTER]
[type your root password]
[ENTER]
vi /boot/grub/menu.lst

use the downarrow key till you get to the bottom of the file and type this:

title Windows XP
root (hd0,1)
savedefault
makeactive
chainloader +1

hit [ESC]
type: :
type: wq
hit [ENTER]

reboot

I hope this works.

konsolebox 07-28-2006 09:53 PM

Quote:

Originally Posted by myates1980
title Windows XP
root (hd0,1)
savedefault
makeactive
chainloader +1

perhaps you can also exclude savedefault if you don't want windows xp to be the default entry when booting.

linaxp 07-28-2006 10:19 PM

Quote:

Originally Posted by konsolebox
perhaps you can also exclude savedefault if you don't want windows xp to be the default entry when booting.


ok, i wrote what myates1980 wrote, i restarted the computer and at first i was happy that Xp was one of the choices, but when i pressed enter on it, there was an error. it said that something is not "executable". I think that in menu.lst, it should be specified where XP is.

should "hdo,1" be made into something else which directs it to C/Windows?

konsolebox 07-28-2006 10:26 PM

Quote:

Originally Posted by linaxp
should "hdo,1" be made into something else which directs it to C/Windows?

shouldn't that be hd0,1? anyway you can look at your current partition tables at /proc/partitions. base your windows partition on what you think is its size.

then convert the name to grub's format.

pljvaldez 07-29-2006 12:24 AM

linapx,

What is the output of fdisk -l (that's L, not 1)? This will help us figure out what (hdx,y) should be.

linaxp 07-29-2006 09:40 AM

Quote:

Originally Posted by pljvaldez
linapx,

What is the output of fdisk -l (that's L, not 1)? This will help us figure out what (hdx,y) should be.


I can't try it now. I think I typed something wrong and when I tried it after restarting the pc, I got an error message which said that there is no operating system.

Right now I am back to XP after reinstalling it. I'll put Linux on again and see what happens.

Thank you very much guys

konsolebox 07-29-2006 10:13 AM

do you mean you'll install a new system? perhaps you can still get your linux system back. can you boot a livecd? ...

boot to your livecd then
Code:

mkdir -p /mnt/system
mount /dev/hda1 /mnt/system
chroot /mnt/system /bin/bash

from there you can try to install grub again.


All times are GMT -5. The time now is 08:36 AM.