LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to switch back and forth to windows/linux (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-switch-back-and-forth-to-windows-linux-485785/)

pungvarg 09-21-2006 05:36 PM

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?

Brian1 09-21-2006 05:56 PM

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

pungvarg 09-21-2006 06:01 PM

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)

Kristijan 09-21-2006 06:05 PM

pungvarg,

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

-Kristijan

pungvarg 09-21-2006 06:08 PM

Quote:

Originally Posted by Kristijan
pungvarg,

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

-Kristijan

nothing. same message

Brian1 09-21-2006 06:09 PM

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

crash_override_me 09-21-2006 06:11 PM

in ur /boot/grub/menu.lst

change #hiddenmenu to hiddenmenu

also increase the timeout:
timeout 30

JimmyinPA 09-21-2006 06:21 PM

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.

pungvarg 09-21-2006 06:24 PM

both of theese give me an access denied message (and yes I am in roots)

pungvarg 09-21-2006 06:26 PM

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

Brian1 09-21-2006 06:37 PM

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

pungvarg 09-21-2006 06:47 PM

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

Brian1 09-21-2006 06:59 PM

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

Alan B 03-27-2007 11:48 AM

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


All times are GMT -5. The time now is 05:17 PM.