LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2006, 08:26 PM   #1
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Rep: Reputation: 30
LILO - Windows


I had one hard drive in my computer with Linux installed. I removed that hard drive and installed a different one. One that new hard drive, I installed Windows. I put the old hard drive back in (as a master) along side the new one (as a slave). I can boot to Linux fine. How can I edit lilo to boot to windows (as an option). I thought I could add an entry with the line boot=/dev/hdd1, but that didn't work. I received the error "Error loading operating system". Any ideas? /dev/hdd1 is the right partition. I also tried /dev/hdd, but that didn't work either.

Ryan
 
Old 03-07-2006, 08:40 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
from linux type fdisk -l which should show you all the drives and partitions. If you only have two drives, it's probably /dev/hdb1.

I believe in lilo the proper format is other=/dev/hdb1 instead of "boot="
 
Old 03-07-2006, 08:47 PM   #3
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
I'm sorry, here is my lilo.conf file...

Code:
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

default="linux"
boot=/dev/hdc
map=/boot/map
keytable=/boot/us.klt
menu-scheme=wb:bw:wb:bw
prompt
nowarn
timeout=10
message=/boot/message
image=/boot/vmlinuz
        label="linux"
        root=/dev/hdc1
        initrd=/boot/initrd.img
        append="resume=/dev/hdc5 splash=silent"
        vga=788
image=/boot/vmlinuz
        label="linux_custom"
        root=/dev/hdc1
        initrd=/boot/customKernel
        append="resume=/dev/hdc5 splash=silent"
        vga=788
image=/boot/vmlinuz
        label="linux-nonfb"
        root=/dev/hdc1
        initrd=/boot/initrd.img
        append="resume=/dev/hdc5"
image=/boot/vmlinuz
        label="failsafe"
        root=/dev/hdc1
        initrd=/boot/initrd.img
        append="failsafe resume=/dev/hdc5"
other=/dev/hdd1
        label="windows"
Here is fdisk -l

Code:
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        2662    21382483+  83  Linux
/dev/hdc2            2663        9729    56765677+   f  W95 Ext'd (LBA)
/dev/hdc5            2663        2865     1630566   82  Linux swap / Solaris
/dev/hdc6            2866        9729    55135048+  83  Linux

Disk /dev/hdd: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1        2433    19543041    7  HPFS/NTFS
Could it be that my boot.ini file is screwed up because I installed Windows with the hard drive in by itself (as a master) and now it is a slave?

Last edited by RySk8er30; 03-07-2006 at 08:48 PM.
 
Old 03-07-2006, 08:58 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
That might be. I feel like I read that somewhere.... Hmmm...
 
Old 03-08-2006, 02:25 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Don't know if it makes a difference, but my LILO entry for Windows has an additional line:

other = /dev/hda1
label = Windows
table = /dev/hda
 
Old 03-12-2006, 11:42 AM   #6
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
I couldn't seem to find an answer via lilo. I did some research on the web and found some good solutions for using Grub. You have to map your hard drive as the primary drive using grub. Here is my /boot/grub/menu.lst file...

title windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

If anyone has questions, let me know.
 
  


Reply



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
No windows in LILO ilhbutshm Linux - General 8 11-22-2003 03:13 AM
lilo and windows marek Slackware 7 08-31-2003 03:03 AM
LILO and Windows ME jbarreir Linux - Newbie 1 08-30-2003 07:13 PM
lilo and windows xp Comreak Linux - Software 5 04-03-2003 12:57 PM
Windows ME and Lilo EvoKen Linux - Software 4 06-26-2001 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration