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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-07-2006, 08:26 PM
|
#1
|
Member
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274
Rep:
|
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
|
|
|
03-07-2006, 08:40 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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="
|
|
|
03-07-2006, 08:47 PM
|
#3
|
Member
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274
Original Poster
Rep:
|
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.
|
|
|
03-07-2006, 08:58 PM
|
#4
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
That might be. I feel like I read that somewhere.... Hmmm...
|
|
|
03-08-2006, 02:25 AM
|
#5
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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
|
|
|
03-12-2006, 11:42 AM
|
#6
|
Member
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|