SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
root@dheeraj:~# lilo
Warning: /dev/hdd is not on the first disk
Fatal: open /dev/vmlinuz: No such file or directory
i typed lilo alright.but this is the output...what to do..theres no hdd directory on my system .what to do?even..vmlinuz is not present on /dev/do i need to create a new vmlinuz file in the /dev/ directory??
U might correct following lines from the muster posted by carboncopy above, if it not worked.
Code:
vga=791
image = /boot/vmlinuz
append=" hda=ide-scsi"
root = /dev/hdd9
label = slw-old
read-only
# Below presumed ur window partition is on 1st partition of hdd, if u have
# multiple windows say w2k on hdd1, wme on hdd2, then u can also boot
# them with that without any other addition ! Once u choosed "window"
# it brings u to window bootmanager, from there out u can select either
# w2k or wme, just like when u dual booting w2k,wme without lilo ..
other = /dev/hdd1
label = windows
# This is for booting ur diskett, put it in floppy-drive first
other=/dev/fd0
label=floppy
unsafe
Add/edit ur /etc/lilo.conf according to wut necessary, then type:
# lilo -v -v
If no error, lilo will tell u at that .., if any error just grab them here ..
Note:
Installing on MBR is secure enough, wut hairy is when u installed corupted image/vmlinux there, then it may cause u not be able to boot it. But with the above config, u have 3 alternatives in this worse case. U will still be able to boot windows or ur floppy (this can be ur linuxBootDisk as well as bootable msdos or window95/98 diskett. If u dun like lilo, u can boot with ur msdos/w95/w98 rescue diskett, then just type in command prompt "fdisk /mbr", then lilo will be away from ur mbr. U can also clean mbr from within linux with the command "dd if=/dev/null of=/dev/hdd bs=512".
Check the manual for "dd" in this case, am not sure with the bs=xxx, since I've very seldom have to do it, am happy enough with lilo ..
-----
Out of LILO topic, performance on installing IDE-devices:
ide-channel1 on linux referred as /dev/hda & /dev/hdb
ide-channel2 on linux referred as /dev/hdc & /dev/hdd
In channel1 /dev/hda is the master & /dev/hdb is the slave.
In channel2 /dev/hdc is the master & /dev/hdd is the slave.
ide channels (1 & 2) can work independently because they used different cables.
But those master & slave of each channel share the same sequence of cable,
so if one is transfering data the other has to wait, therefore u should always put the faster device on master n the slower on slave.
Harddisk Data Transfer throughput is in megaBit/s, cdrom is in kiloBit/s, so cdroms are far slower than harddisks. Therefore if u have to share them in the same channel, then u will put cdrom as slave harddisk as master. If u dun have more then 2 devices, then put them on their own channel (both as master), that is faster.
Conventionally the fastest harddisk will be installed on /dev/hda, the slower in /dev/hdc, cdrom in /dev/hdd. If u have the 3 HDs then the 2nd fastest in /dev/hdb, the slowest in /dev/hdc, n cdrom in /dev/hdd.
So u can see that u have not installed ur hardisk n cdrom optimaly ..
I suggest, u just feel free try to play anything around with ur installations, make backup of ur data in windows n linux. If u have them all, by next installation I suggest reinstall ur harddisk n cdrom, ask someone with knowledge, bcoz u might have to configure ur harddisk n cdrom to be master or slave with jumper, and to stick ur harddisk cable over ..
After that install ur windows OSes first b4 install Linux, if u want to have windows on ur compi. By next time installing slack, try to configure lilo, at the end of setup, after u have created ur bootdiskett as u has done it b4, just use the default option if u don't know things there. If thing goes wrong u know u can boot with diskett, then compare/edit /etc/lilo.conf , run lilo -v -v. If not worked post into here ..
Last edited by linuxJaver; 10-12-2003 at 10:45 PM.
OOT question:
Can u boot into windows ? Just gonna get confirmed whether ur bios is configured to boot from HD in hdc/hdd.
U seemed to have ur harddisk on /dev/hdd, that is out of normal practice, who have installed ur compi for u ?
I don't know for wut that jumper "cable select" on harddisk, cdrom good is ? Any one knows ? Wut is the jumper configurations of ur Harddisk n CDROM, forget it if u don't know ..
Last edited by linuxJaver; 10-12-2003 at 10:38 PM.
this is my newly modified lilo.when i did lilo -v -v at the prompt,every thing is runnin fine but a syntax error is occuring ..i have given the details below.....
LBA32
boot = /dev/hdd #write to MBR
append = "hda=ide-scsi" #for your cd-writer
timeout = 300 #timeout before default is choosen
vga = 791
image = /boot/vmlinuz
boot = /dev/hdd9 # / partition
label = slack.old
read-only
other = /dev/hdd1 # windows
label = windows
now when i compiled the lilo........................
root@dheeraj:~# lilo -v -v
LILO version 22.4.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 27-Jan-2003 and compiled at 19:45:45 on Mar 9 2003.
raid_setup returns offset = 00000000 ndisk = 0
Reading boot sector from /dev/hdd
Warning: /dev/hdd is not on the first disk
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 16 sectors (0x3000 dataend).
Syntax error at or above line 10 in file '/etc/lilo.conf' ----------------what is this???????????????
Removed temporary file /boot/map~
root@dheeraj:~#
"# ls -la /boot" looked something like this, those above is the content of yer home directory. Try this "# cd /boot; ls -Al". Then edit the above post. Btw, have u got lilo run ? Wut "lilo -v -v" said ?
so what to do?i have changed slack.old to slack-old.still the error at line 10 is showing up what todo?
i will reboot the system and we'll c what will happen..
when i compiled the lilo ....i found that the same error is occuring..now its in line 14..what to do?is there anyone out there??
Code:
root@dheeraj:~# lilo -v -v
LILO version 22.4.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 27-Jan-2003 and compiled at 19:45:45 on Mar 9 2003.
raid_setup returns offset = 00000000 ndisk = 0
Reading boot sector from /dev/hdd
Warning: /dev/hdd is not on the first disk
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 16 sectors (0x3000 dataend).
Boot image: /boot/vmlinuz -> vmlinuz-ide-2.4.20
Setup length is 10 sectors.
Mapped 2288 sectors.
Added vmlinuz
Syntax error at or above line 14 in file '/etc/lilo.conf'
Removed temporary file /boot/System.map~
i think the problem is not with the table.however,i tried compiling lilo after modifying the content and removing the table part.nothing changed..i have read some document or something to get this..or may be some h/w configuration of mine is not favourable for loading lilo....
hey can anyone gimme some tutorial or something to read on related to lilo?is there any site or something where all the info about linux is available?i have already tried slackware.com but therez not much written abut lilo there.please help me out.....
I'm trying to findout how to swap the hdd to be hda or hdc (visa versa), bcoz I saw on one of the previous error stating, that problem with not able to install lilo on MBR, btw have tried to install lilo on superblock (boot=/dev/hdd9) ?
It is possible for swaping hda with hdb, but dun know about hdd, read /usr/doc/lilo-22.5.7.2/sample/lilo.sample.conf , I found a little description about bios there.
Quote:
Sequence of that file that of interest:
disk=/dev/hda bios=0x80
disk=/dev/hdb bios=0x81
disk=/dev/hdc bios=0x82
disk=/dev/sda bios=0x83 <-- I've hoped this to be /dev/hdd
# The D: drive has a Win98 installation
# Fake booting from drive C: with the map-drive options
other=/dev/hdb1
label=win_98
#map-drive=0x80 to=0x81 # obsolete, but still allowed
#map-drive=0x81 to=0x80 #
boot-as = 0x80 # Lilo 22.5.5 syntax
If this worked, it still suggest u to change ur hardware installation like mentioned on my 2nd post, some time later. It is just not clean installation ..
Last edited by linuxJaver; 10-13-2003 at 05:25 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.