LinuxQuestions.org
Visit Jeremy's Blog.
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 09-21-2006, 04:36 PM   #1
pungvarg
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Rep: Reputation: 0
how to switch back and forth to windows/linux


hi, when i start up linux runs, but I would like to be able to choose between windows and linux how do I do that?
 
Old 09-21-2006, 04:56 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Do you mean run windows at the same time as linux is running?
Or do you mean you need a option to select at boot?
Are you using grub or lilo boot manager?
If so then post /boot/grub/grub.conf. Lets see if the windows option exist and see what is causing it not to show. Also post /sbin/fdisk -l and point out which one is the windows partition.
Might as well post linux distro brand and version.

Brian1
 
Old 09-21-2006, 05:01 PM   #3
pungvarg
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I've got Fedora core 5
I need a opition at boot I am using grub
ps. trying to reach grub.conf give's me a access denied message (i am in root)

Last edited by pungvarg; 09-21-2006 at 05:03 PM.
 
Old 09-21-2006, 05:05 PM   #4
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
pungvarg,

Try running grubconf from the command line and see how that goes.

-Kristijan
 
Old 09-21-2006, 05:08 PM   #5
pungvarg
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kristijan
pungvarg,

Try running grubconf from the command line and see how that goes.

-Kristijan
nothing. same message
 
Old 09-21-2006, 05:09 PM   #6
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Should be able to do as root using a command like this ' cat /boot/grub/grub.conf ' as root, or use and editor if you choose. Did you change to root as ' su ' or ' su - '. If just su then you are as root but using the users enviroment variables. If you su - then you are root with root's enviroment variables.

You need something like this for windows.
Code:
title Winblows XP Amatuer
        rootnoverify (hd0,0)
        chainloader +1
The hd0,0 is refernece to the (first drive, first partition) or also known as /dev/hda1
 
Old 09-21-2006, 05:11 PM   #7
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
in ur /boot/grub/menu.lst

change #hiddenmenu to hiddenmenu

also increase the timeout:
timeout 30
 
Old 09-21-2006, 05:21 PM   #8
JimmyinPA
LQ Newbie
 
Registered: May 2006
Location: Central PA
Distribution: Mandriva2006
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by pungvarg
I've got Fedora core 5
I need a opition at boot I am using grub
ps. trying to reach grub.conf give's me a access denied message (i am in root)
You are in root (in /, in the filesystem)?

Or are you logged in as root (Prompt says something like "root@computer:/" )?

[Sorry, I'm booted in Win98 at the moment, so I can't just pull up a terminal to check the exact format]

If the prompt says "username other than root"@computer:/, then you need to:
Code:
<Command Prompt>su
And, when prompted enter your password for root(the user, not the directory), then go back to the previous suggestions.

EDIT:

Oh, what is the text of the message, that will help. Sometimes it's possible to misinterpret the message, and unknowingly steer people away from the actual issue.

EDIT #2

Ok, just switched back into linux:

The Prompt as root should be (I'm in Mandriva, with a BASH shell):
Code:
 [root@computer /]#
The "#" is a quick way to tell if you're root.

Last edited by JimmyinPA; 09-21-2006 at 05:32 PM.
 
Old 09-21-2006, 05:24 PM   #9
pungvarg
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Original Poster
Rep: Reputation: 0
both of theese give me an access denied message (and yes I am in roots)
 
Old 09-21-2006, 05:26 PM   #10
pungvarg
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by crash_override_me
in ur /boot/grub/menu.lst

change #hiddenmenu to hiddenmenu

also increase the timeout:
timeout 30
how do I change that??

it reads like this when typing "cat /boot/grub/grub.conf"
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/hda5
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_FC5.img
title Other
rootnoverify (hd0,0)
chainloader +1

Last edited by pungvarg; 09-21-2006 at 05:39 PM.
 
Old 09-21-2006, 05:37 PM   #11
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Why root cannot edit I do not know. Post permissions and onwer of the file.
Menu.1st is usually a softlink to grub.conf in Redhat / Redhat Clones like Fedora.
I guess if you can't edit the file as root then you need to boot with the install CD and use the command ' linux rescue ' to boot up in rescue mode. Let is mount the system partitions and then using the vi editor edit ' vi /mnt/sysimage/boot/grub/grub.conf '.

Brian1
 
Old 09-21-2006, 05:47 PM   #12
pungvarg
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
Why root cannot edit I do not know. Post permissions and onwer of the file.
Menu.1st is usually a softlink to grub.conf in Redhat / Redhat Clones like Fedora.
I guess if you can't edit the file as root then you need to boot with the install CD and use the command ' linux rescue ' to boot up in rescue mode. Let is mount the system partitions and then using the vi editor edit ' vi /mnt/sysimage/boot/grub/grub.conf '.

Brian1
hey! doing that I could write. how does I save?? (do you notice I am very tired (its 00:45 a'clock) and this is my first time using linux
 
Old 09-21-2006, 05:59 PM   #13
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
To exit from and save in vi. To edit open the file and hit the ' i ' key to enter insert edit mode. Once editing is done hit the esc key to exit editing mode. Then hold down the shift key and hit the ' z ' key twice to save and exit.

Brian1
 
Old 03-27-2007, 10:48 AM   #14
Alan B
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
Same problem

I have exactly the same problem as pungvard. I am told that I do not have permission to open '/boot/grub/grub.conf' although I am logged on as root. However, I do not have the sheild in the top right hand corner of the window to show me that I do not need to keep logging on as root. How do I manange to get this condition? Also, what are all of the steps required to edit /menu 1st/ ?
Alan B
 
  


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
windows, I want to switch to linux rob1983 Linux - Newbie 35 11-26-2006 07:48 AM
Can't switch back to Windows jcthei Linux - Software 4 02-14-2006 07:38 AM
Cant switch back to or double-boot windows carocrazy123 Linux - Hardware 3 10-15-2005 06:35 PM
how to switch back to kernel 2.4? spade Linux - Newbie 1 03-09-2004 11:04 AM
Accouting software holding back linux switch chado Linux - Software 6 11-20-2003 06:37 PM


All times are GMT -5. The time now is 05:18 AM.

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