LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-12-2003, 03:42 AM   #1
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Rep: Reputation: 0
How do i boot back to Windows


I installed Mandrake 9.2 with a hitch, but now it only boots to Linux, how do I boot back into Windows XP? In the startup it doesnt ask if I want Linux or Windows, just automaticaly boots to Linux. How can I boot back to Windows?
 
Old 12-12-2003, 04:08 AM   #2
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
Login into Mandrake and edit the lilo.conf file to add an entry for ur Windows partition and then run /sbin/lilo and reboot the machine. You should get the windows option in Lilo prompt.
Click here for more.

Also, you can define your default OS and the delay time. In your case, the windows partition should be hda1.

Last edited by diptanshu_parui; 12-12-2003 at 04:12 AM.
 
Old 12-12-2003, 04:20 AM   #3
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, i can get into the lilo.conf file fine, but what should i type in to get windows to boot up? Im a total noob and this is sorta my first time with linux
 
Old 12-12-2003, 04:22 AM   #4
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
no problem, as newbie few weeks back I faced the same problem.

Please post the contents of your lilo.conf file.
 
Old 12-12-2003, 04:24 AM   #5
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=ht resume=/dev/hdb5 splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=ht resume=/dev/hdb5"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=nomount hdd=ide-scsi acpi=ht resume=/dev/hdb5 failsafe"
read-only
other=/dev/fd0
label="floppy"
unsafe

I read somewhere that windows was supposed to be on the boot loader at start up too but its not there, i swear i am gonna cry if i cant get back to windows
 
Old 12-12-2003, 04:34 AM   #6
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
Just a question, how did you partition while installing Mandrake ?
 
Old 12-12-2003, 04:35 AM   #7
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Um, i think i just threw in a linux swap partition and on my empty 2nd hd, but looking at the lili.conf i think it may have just installed on some empty space on my 1st hd,
 
Old 12-12-2003, 04:47 AM   #8
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
Try adding this to your lilo.conf (refer to the portion in bold.) and don't forget to run /sbin/lilo from your command prompt before re-booting. I am assuming that your windows partition existed and still exists on hda1.


******************************************************
boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw

image=/boot/vmlinuz
label="linux"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=ht resume=/dev/hdb5 splash=silent"
vga=788
read-only

image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=ht resume=/dev/hdb5"
read-only

image=/boot/vmlinuz
label="failsafe"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=nomount hdd=ide-scsi acpi=ht resume=/dev/hdb5 failsafe"
read-only


other=/dev/hda1
label=NT
table=/dev/hda


other=/dev/fd0
label="floppy"
unsafe

Last edited by diptanshu_parui; 12-12-2003 at 04:50 AM.
 
Old 12-12-2003, 04:54 AM   #9
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Ok i added that stuff but it wont let me safe cuz it says i dont have write permisson(!?!). Also, I found the boot loader option menu and managed to add a windows boot from hda1 to the list, but then it says it didnt find a valid boot signiture on the first sector. what does this mean?
 
Old 12-12-2003, 05:00 AM   #10
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
I am assuming that your system had Windows installed first and then you installed Linux. If that is the case, Windows partition should ideally have been on hda1, but from your lilo.conf file it seems that linux resides on hda1 now. "root=/dev/hda1"

Do you have more than one hd ? Had you left empty space on your first hd for Linux ? Did you have Windows on hd 1 & 2 both?
 
Old 12-12-2003, 05:03 AM   #11
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I do have 2 hds but the 2nd was completely empty. I had Windows XP installed on the first hd but ya it looks like linux took it over or something. But Windows is still on there and im just trying to access it. Is there a way to just uninstall Linux for now and force my computer to boot windows?
 
Old 12-12-2003, 05:26 AM   #12
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
Your scenario is different to what I faced. I had just a single hd and then I had kept empty space for Linux on it and the installed Linux. While partitioning, it occupied the empty space left. And that was definitely, not hda1, coz hda1 is where my windows C-drive is.

I really doubt uninstalling will help.
 
Old 12-12-2003, 05:28 AM   #13
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
ya i dont really want to uninstall since id like to try linux out. I guess all i really want to do is to get Windows on my boot list. Any more ideas on how i can do this?
 
Old 12-12-2003, 05:47 AM   #14
diptanshu_parui
Member
 
Registered: Oct 2003
Location: Mumbai, India
Distribution: RedHat Linux 9.0, SuSE 9.0, Mandrake 9.2
Posts: 35

Rep: Reputation: 15
Please go to Control Center on Linux and then to Information --> Partitions and check and post the partition details. You will know from here that how much space your Linux partition is occupying and you will come to know whether the Windows partition has been over written or not.

Please post the result of your partition details.
 
Old 12-12-2003, 05:55 AM   #15
pinpalsapu
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
i have 3 partitions on my 1st hd, 2nd has no partitions and is blank.

1st Partition

Mount Point: /
Device: hda1
Type: Journalised FS: ext3 (0x483)
Start: Sector 63
Size: 3.3GB(6%), 7100667 Sectors
Cylinder 0 to 441
Formatted
Mounted
Partion booted by default
(for MS-DOS boot, not for lilo)

2nd Partition

Mount Point: swap
Device: hda5
Type: Linux Swap (0x82)
Start: sector 7100793
Size: 3.1GB(5%), 6682977 sectors
Cylinder 442 to 857
Formatted
Mounted

3rd Partition

Mount Point: /home
Device: hda6
Type: Journalised FS: ext3 (0x483)
Start: sector 13783833
SizeL 49GB(88%) 103394277 sectors
Cylinder 858 to 7293
Formatted
Mounter
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant switch back to or double-boot windows carocrazy123 Linux - Hardware 3 10-15-2005 07:35 PM
AH!! I need windows back :( Talon107 Linux - Newbie 21 08-04-2004 05:37 PM
setting the boot back to windows noahfields Linux - Newbie 3 05-18-2004 09:02 AM
How do i boot back to Windows pinpalsapu Linux - Newbie 3 12-13-2003 06:20 PM
Help! - Deleted boot option for Windows from LILO! - HOW DO I GET IT BACK?! CrossfireCurt Linux - General 2 06-16-2002 11:49 AM


All times are GMT -5. The time now is 06:40 PM.

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