LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   not finding dependencies (https://www.linuxquestions.org/questions/linux-newbie-8/not-finding-dependencies-223773/)

OC_eobard 08-29-2004 12:09 AM

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.

masand 08-29-2004 12:12 AM

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

OC_eobard 08-29-2004 12:58 AM

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.

masand 08-29-2004 01:08 AM

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

Travers 08-29-2004 01:34 AM

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.

OC_eobard 08-29-2004 01:43 AM

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. :)

Travers 08-29-2004 01:52 AM

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

OC_eobard 08-29-2004 07:54 PM

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: hda:DMA, hdb:pio
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pio
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.

OC_eobard 08-29-2004 08:32 PM

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.

OC_eobard 08-29-2004 08:59 PM

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.

masand 08-29-2004 10:31 PM

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

OC_eobard 08-29-2004 10:44 PM

I already copied over initrd and vmlinuz but not system map. I'll give that a shot now. Fingers crossed.

OC_eobard 08-29-2004 10:50 PM

Nope, no change. Not sure what to do now.

Travers 08-29-2004 10:52 PM

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.

OC_eobard 08-29-2004 10:57 PM

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.


All times are GMT -5. The time now is 02:04 PM.