LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08:33 PM   #16
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 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.
 
Old 07-28-2006, 08:36 PM   #17
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
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
____________________________________________________________________________________________________ __

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

Rep: Reputation: 271Reputation: 271Reputation: 271
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).
 
Old 07-28-2006, 08:39 PM   #19
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 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.
 
Old 07-28-2006, 08:53 PM   #20
linaxp
LQ Newbie
 
Registered: Jul 2006
Location: New York, USA
Distribution: Suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
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

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

Last edited by linaxp; 07-28-2006 at 08:56 PM.
 
Old 07-28-2006, 09:09 PM   #21
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
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..
 
Old 07-28-2006, 09:22 PM   #22
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
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?
 
Old 07-28-2006, 09:33 PM   #23
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
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
 
Old 07-28-2006, 09:43 PM   #24
myates1980
Member
 
Registered: Jul 2006
Location: Lancaster, PA
Distribution: Slackware, FreeBSD,
Posts: 43

Rep: Reputation: 15
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.
 
Old 07-28-2006, 09:53 PM   #25
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
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.
 
Old 07-28-2006, 10:19 PM   #26
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
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?
 
Old 07-28-2006, 10:26 PM   #27
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
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.
 
Old 07-29-2006, 12:24 AM   #28
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
linapx,

What is the output of fdisk -l (that's L, not 1)? This will help us figure out what (hdx,y) should be.
 
Old 07-29-2006, 09:40 AM   #29
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 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

Last edited by linaxp; 07-29-2006 at 09:56 AM.
 
Old 07-29-2006, 10:13 AM   #30
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
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.
 
  


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


All times are GMT -5. The time now is 07:53 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