LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2004, 01:09 AM   #1
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Rep: Reputation: 15
not finding dependencies


A while ago I tried to install Slackware on my Mandrake/98 box, anywho after I re-formatted and started from scratch I tried to add Mandrake last to see if that would work. It kind of did. Slack and 98 are fine but Drake was really messed up. I didn't take a serious look at why until just now. I think I've got the culprit but I'm not sure what the best/safest solution is. I get a lot of errors trying to start Drake, it can't find the sound card or the network card or a whole bunch of other stuff. The errors I get all have the same theme: it can't find the modules at /lib/modules/2.4.22/modules.dep, I get a "file does not exist" error. This is because the file is at /lib/modules/2.4.22.10-mdk/modules.dep. So what's the best way to fix it? rename the directory? Will that brake something else? A symlink? Can the system process symlinks at an early point of the boot process before everything is up and running? Any help/hints/links would be appreciated.
 
Old 08-29-2004, 01:12 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
if u look at ur grub.conf/lilo.conf
it is the name if 'initrd' image that is giving problems there

u need to se that is the name of initrd image u r using
that refers to the directory in /lib/modules

regards
 
Old 08-29-2004, 01:58 AM   #3
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
I changed the image to /boot/vmlinuz-2.4.22-10mdk and initrd to boot/initrd-2.4.22-10mdk but still the same errors. The way I installed it all I set aside completely seperate partitions for Slack and Drake so there would be no overlap and I removed reference to the non-relavent partitions from each system so they won't see each other. Could booting from the Slack LILO to start the Drake setup be the problem? Others have told me that it is safe to have the two setups on the same partition but I'm always afraid that one setup will overwrite something from the other. If I wind up putting the two on the same partition to solve this have you any advice on how to get it done safely? My first attempt cost me everything on every partition, FATs included.
 
Old 08-29-2004, 02:08 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
what i do while usding multiple linux is
i un lilo from one linux say RH9.0
here in the boot partiton i have copied the vmlinuz and initrd images from the peanut linux boot partiton to my RH9.0 boot partion
and in the lilo in RH9.0
i have the entry of these peanut

image=/boot/vmlinuz-2.4.26
label=peanut linux
initrd=/boot/initrd-2.4.26.img
read-only
append="root=/dev/hda4"

where hda4 is the root partiton of peanut

so when i boot lilo of RH 9.0 it takes the vmlinuz and initrd images from /boot of RH9.0 boot partiton and since root-=/dev/hda4 is specified so it looks for the modules section in /lib/modules of /dev/hda4 drive.

Also this can be done without copying the above , they can be maped, to their root partions, but i haven't done that yet so i cannot tell more on that

so u need to change the way it was earlier and do this copying images from ur other linux root partitons

regards
 
Old 08-29-2004, 02:34 AM   #5
Travers
Member
 
Registered: Jul 2004
Location: Des Moines
Distribution: Gentoo
Posts: 111

Rep: Reputation: 15
K, you want to load the 2.4.22.10-mdk kernel, right? Well your boot loader is setup right now; it wasen't setup right. You were loading the Slackware kernel before. Now you've got Drake. The slackware kernel looks like it didn't have a modules.dep file. So, that's the reason you were getting the errors--the kernel couldn't load modules that depend on other modules.

Solution: run the depmod command and reboot. I think... Let us know how that goes.
 
Old 08-29-2004, 02:43 AM   #6
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
Here's my Lilo.conf as it is, it does not solve the problem. I'm getting the same errors as I was before.
Quote:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot="/dev/hda"
message = /boot/boot_message.txt
prompt
timeout="50"
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 800x600x256
vga="771"
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# DOS bootable partition config begins
default=Slackware

other = /dev/hda1
label="Win98"
table = /dev/hda
# DOS bootable partition config ends
# Linux bootable partition config begins

image="/boot/vmlinuz"
root="/dev/hda7"
label="Slackware"
read-only
# Linux bootable partition config ends

image="/boot/vmlinuz-2.4.22-10mdk"
label="Mandrake"
initrd="/boot/initrd-2.4.22-10mdk.img"
append="root=/dev/hda9"
# read-only

It's 2:45 AM my time. I need sleep. I'll give the depmod a shot tomorrow and post my results then. Thanks for the help.
 
Old 08-29-2004, 02:52 AM   #7
Travers
Member
 
Registered: Jul 2004
Location: Des Moines
Distribution: Gentoo
Posts: 111

Rep: Reputation: 15
Lol only 1.48 AM here. Sleep by day, code by night. I'm going to look into this some more for you. I love a challenge. Could we get your kernel ring buffer, please? Use: dmesg > the-path-and-name-of-some-file-for-dmesg-output

Also, I want the directory contents of /lib/modules/2.4.22.10-mdk/ and all subfolders as well. Use: tree /lib/modules/2.4.22.10-mdk/ > output-file
 
Old 08-29-2004, 08:54 PM   #8
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
Sorry for the delay. Dmesg output is as follows:
Quote:
Linux version 2.4.22 (root@midas) (gcc version 3.2.3) #6 Tue Sep 2 17:43:01 PDT 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000bfec000 (usable)
BIOS-e820: 000000000bfec000 - 000000000bfef000 (ACPI data)
BIOS-e820: 000000000bfef000 - 000000000bfff000 (reserved)
BIOS-e820: 000000000bfff000 - 000000000c000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
191MB LOWMEM available.
On node 0 totalpages: 49132
zone(0): 4096 pages.
zone(1): 45036 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=Mandrake ro root=309
Initializing CPU#0
Detected 1210.826 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 2418.27 BogoMIPS
Memory: 191200k/196528k available (1813k kernel code, 4940k reserved, 614k data, 116k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After generic, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: Common caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: AMD Athlon(tm) Processor stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf10e0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/0686] at 00:07.0
PCI: Found IRQ 3 for device 00:0c.0
PCI: Sharing IRQ 3 with 00:07.2
PCI: Sharing IRQ 3 with 00:07.3
Applying VIA southbridge workaround.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
vesafb: framebuffer at 0xe0000000, mapped to 0xcc80d000, size 937k
vesafb: mode is 800x600x8, linelength=800, pages=254
vesafb: protected mode interface info at c000:551c
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdcMA, hddio
hda: WDC WD400JB-00CRA1, ATA DISK drive
blk: queue c03a9d80, I/O limit 4095Mb (mask 0xffffffff)
hdc: MATSHITA CD-RW CW-7586, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78165360 sectors (40021 MB) w/8192KiB Cache, CHS=4865/255/63, UDMA(100)
hdc: attached ide-cdrom driver.
hdc: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 >
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 1736.000 MB/sec
32regs : 994.000 MB/sec
pII_mmx : 2835.200 MB/sec
p5_mmx : 3617.600 MB/sec
raid5: using function: p5_mmx (3617.600 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.5+(22/07/2002)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 116k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,9), internal journal
Adding Swap: 497972k swap-space (priority -1)
Adding Swap: 514040k swap-space (priority -2)
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
FAT: freeing iocharset=iso8859-1
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
FAT: freeing iocharset=iso8859-1
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,7)) ...
for (ide0(3,7))
ide0(3,7):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,8)) ...
for (ide0(3,8))
ide0(3,8):Using r5 hash to sort names
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,11), internal journal
EXT3-fs: mounted filesystem with ordered data mode.

floppy driver state
-------------------
now=1982 last interrupt=1893 diff=89 last called handler=c01ebb00
timeout_message=lock fdc
last output bytes:
1a 90 1680
0 90 1680
3 80 1680
c1 90 1680
10 90 1680
7 80 1680
0 90 1680
8 81 1680
f 80 1680
0 90 1680
1 90 1680
8 81 1680
3 80 1684
81 90 1684
10 90 1684
7 80 1684
1 90 1684
8 82 1893
7 80 1895
1 90 1895
last result at 1893
last redo_fd_request at 1682
71 0
status=82
fdc_busy=1
DEVICE_INTR=c01ebb00
cont=c0327340
CURRENT=c039c1e0
command_status=-1

floppy1: floppy timeout called
floppy1: unexpected interrupt
floppy1: sensei repl[0]=71 repl[1]=0
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
FAT: freeing iocharset=iso8859-1
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
FAT: freeing iocharset=iso8859-1
Tree output is non existent because I apparently don't have tree in Drake, so I'm going to see if I can remember how to make my Drake partitions seen by Slack and then Tree it from there. Should be back with the data soon.
 
Old 08-29-2004, 09:32 PM   #9
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
Tree output... is going to be 50 miles long. I compressed it but I can't add attachments. I could email it to anyone who thinks looking at it could help. Here's the top of the directory structure at least:

|-- modules.dep
|-- modules.description
|-- modules.generic_string
|-- modules.ieee1394map
|-- modules.isapnpmap
|-- modules.parportmap
|-- modules.pcimap
|-- modules.pnpbiosmap
|-- modules.usbmap


With many a subdirectory below.
 
Old 08-29-2004, 09:59 PM   #10
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
Depmod gave me a "cannot open file for writing" error. I then realized this was because it was looking for /modules/2.4.22/modules.dep instead of /modules/2.4.22-10mdk/modules.dep so I "depmod 2.4.22-10mdk" and all it gave back were a million "unresolved symbols in..." lines. Not sure where to go from here.
 
Old 08-29-2004, 11:31 PM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
HI

did u try u out copying vmlinuz and systems.map and initrd from mandrake partiton to ur slackware partitons
if not then
start slacware
mount /dev/hda9 /mnt/tmp

go to /mnt/tmp
go to boot
cp vmlinuz.initrd. system.map from there
to /boot of sklacware
edit lilo.conf accrodingly.
see the name of the initrd is same as in /lib/modules/2.4..... of ur mandrake
rpartiton

regards
 
Old 08-29-2004, 11:44 PM   #12
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
I already copied over initrd and vmlinuz but not system map. I'll give that a shot now. Fingers crossed.
 
Old 08-29-2004, 11:50 PM   #13
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
Nope, no change. Not sure what to do now.
 
Old 08-29-2004, 11:52 PM   #14
Travers
Member
 
Registered: Jul 2004
Location: Des Moines
Distribution: Gentoo
Posts: 111

Rep: Reputation: 15
Are you sure you're booting mandrake? Because 1st line of ring buffer: Linux version 2.4.22 . Should be -mdk or whatever. If you are running the mandrake kernel, depmod will default to it -- it defaults to running kernel. Just type depmod, no other jazz like paths or file names. I know there's a command to check the currnet running kernel... uname. Use uname and tell us what it says.
 
Old 08-29-2004, 11:57 PM   #15
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
I'm in Slack as I type this, can't get on the net from Mandrake, but I know it's Drake when I choose Drake from LILO. KDE is completely Drake, no sign of Slackware in it. I'll see what depmod and uname say to me now and brb.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding module dependencies PR0T0N Linux - General 1 02-12-2004 03:22 AM
Finding module dependencies???? aaronmcwilliams Linux - Software 4 01-07-2004 02:43 AM
finding dependencies Abe_the_Man Linux - Newbie 2 09-27-2003 11:36 PM
Finding Dependencies??? DiZASTiX Linux - Software 3 05-13-2003 09:44 PM
finding module dependencies jakublgz Linux - Newbie 9 07-28-2002 01:11 PM


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