Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-18-2001, 11:04 AM   #1
Member (6 bit)
 
Join Date: Apr 2000
Location: Oak Park, MI
Posts: 33
Question

My PC dual boots Caldera OpenLinux 1.3 and Windows 98. I modified lilo.conf to list Win98 as the default image, ran "lilo" from a command line and received the following message "read /dev/hda : No such file or directory". Linux continues to boot as the default OS. Here is a copy of my lilo.conf.

#
# general section
#
boot = /dev/hda
map = /boot/map
install = /boot/chain.b
prompt

# wait 20 seconds (200 10ths) for user to select the entry to load
timeout = 2000

#
#default entry
#

image = /dev/hda1
label = win98
root = /dev/hda1
read-only
loader = /boot/chain.b

other = /vmlinuz
label = linux
root = /dev/hda2
append = " "

What am I missing?
TDub is offline   Reply With Quote
Old 03-18-2001, 03:22 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Can you tell us how it is setup? How many partitions and which OS is on what. If you didn't know it, here is how it works. hda1 is equivalent to C: in windows. hda2 could be equivalent to D: on windows unless you had two hard drives, then your D on windows would be hdb1 in Linux.
mairving is offline   Reply With Quote
Old 03-18-2001, 07:30 PM   #3
Member (6 bit)
 
Join Date: Apr 2000
Location: Oak Park, MI
Posts: 33
I have three partitions. Here is the setup.

hda = Linux swap

hda1 = Win98

hda2 = Linux root
TDub is offline   Reply With Quote
Old 03-19-2001, 05:32 AM   #4
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Did you try running it verbose?

/sbin/lilo -v

Pls post results.
Statica is offline   Reply With Quote
Old 03-19-2001, 04:41 PM   #5
Member (6 bit)
 
Join Date: Apr 2000
Location: Oak Park, MI
Posts: 33
[root@TDub001 twashing]# lilo -v
LILO version 20, Copyright 1992-1997 Werner Almesberger

Reading boot sector from /dev/hda
Merging with /boot/chain.b
read /dev/hda: No such file or directory
TDub is offline   Reply With Quote
Old 03-19-2001, 05:05 PM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
I wonder if there is maybe an Antivirus program loading on startup. You should see something like this when you run lilo:
/boot/boot.0300 exists - no backup copy made

[Edited by mairving on 03-19-2001 at 06:13 PM]
mairving is offline   Reply With Quote
Old 03-19-2001, 05:26 PM   #7
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
I have a few queries off your system:
Firstly in the lilo local section (your global section looks fine incidentally) why does it point to /vmlinuz? is it a stock installation? Unless am mistaken all stock installs take it to /boot/vmlinuz check to see if u have /vmlinuz.

Is /dev/hda on your system?


Did u edit it by hand? Did u try changing it using linuxconf?

[Edited by Statica on 03-19-2001 at 06:37 PM]
Statica is offline   Reply With Quote
Old 03-19-2001, 07:27 PM   #8
Member (6 bit)
 
Join Date: Apr 2000
Location: Oak Park, MI
Posts: 33
I didn't see an anti-virus program loading in the system startup scripts. This is a stock installation and I used vi to edit lilo.conf. My system has /boot/vmlinuz and /vmlinuz. One appears to be a hard link to the other. My system contains /dev/hda and the permissions are identical to the other special files in the directory. I could not find the linuxconf executable on my system. Where is it usually located?
TDub is offline   Reply With Quote
Old 03-23-2001, 07:50 AM   #9
Member (7 bit)
 
Join Date: Jul 2000
Location: Australia
Posts: 97
image = /dev/hda1
label = win98
root = /dev/hda1
read-only
loader = /boot/chain.b

other = /vmlinuz
label = linux

I think this part is a bit mixed up.

The image option is for the linux boot image.
the other option is for other OS you want LILO to boot up.

If you want a window$ to be the default OS to boot you need to add the "default = win98"


Try this instead :

#
# general section
#
boot = /dev/hda
map = /boot/map
#( Tell lilo win98 is the default OS to boot )
default = win98
prompt

# wait 20 seconds (200 10ths) for user to select the entry to load
timeout = 2000

#
#default entry
#
#( Note : I'm assuming this is the right path to # your boot image )
image = /vmlinuz
label = linux
root = /dev/hda2
read-only

other = /dev/hda1
label = win98


Hope this helps. Cheers

Additional note : I've removed the loader options because by the looks of your setup you are booting from the first hardisk so the loader option is not needed. If I'm wrong you could always put it back.

[Edited by earlboy on 03-23-2001 at 08:57 AM]
earlboy is offline   Reply With Quote
Old 03-23-2001, 05:40 PM   #10
Member (6 bit)
 
Join Date: Apr 2000
Location: Oak Park, MI
Posts: 33
Earlboy,

I modified lilo.conf as you recommended but Linux still booted as the default OS. Here is the output of lilo -v -t.

LILO version 20, Copyright 1992-1997 Werner Almesberger

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Boot image: /vmlinuz
Added linux
Boot other: /dev/hda1, loader /boot/chain.b
Added win98 *
The boot sector and the map file have *NOT* been altered.
TDub is offline   Reply With Quote
Old 03-23-2001, 05:55 PM   #11
Member (6 bit)
 
Join Date: Apr 2000
Location: Oak Park, MI
Posts: 33
I am posting the output of fdisk -l below to ensure that I am describing my partitions accurately.

Disk /dev/hda: 240 heads, 63 sectors, 556 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 418 3160048+ b Win95 FAT32
/dev/hda2 419 540 922320 83 Linux native
/dev/hda3 541 556 120960 82 Linux swap


TDub is offline   Reply With Quote
Old 03-23-2001, 08:04 PM   #12
Member (7 bit)
 
Join Date: Jul 2000
Location: Australia
Posts: 97
Hmmmm, that is a bit odd. Try running linuxconf and configure the OS you want to be the default one to boot.
There is an option in linuxconf for default boot configuration.
earlboy is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:09 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2