Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
I have several os's installed win xp, 98 and rh 8.0 on hda (hard drive one) and just yesterday rh fedora core 1 on hdb (second hd). As part of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2004
    Location
    UK
    Posts
    8

    trouble with grub


    I have several os's installed
    win xp, 98 and rh 8.0 on hda (hard drive one)
    and just yesterday rh fedora core 1 on hdb (second hd).
    As part of the Fedora installation i chose not to reinstall grub (I already have it installed( i have 2 rh 8.0 kernel running and didnt want to mess up these!). I assumed configuring grub would be easy!
    I installed fedora and tried to configure grub to boot with no joy.
    My old grub.conf file
    default=2
    timeout=10
    splashimage=(hd0,6)/grub/splash.xpm.gz
    title Red Hat Linux (2.4.20-28.
    root (hd0,6)
    kernel /vmlinuz-2.4.20-28.8 ro root=LABEL=/ hda=ide-scsi
    initrd /initrd-2.4.20-28.8.img
    title Red Hat Linux (2.4.18-14)
    root (hd0,6)
    kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hda=ide-scsi
    initrd /initrd-2.4.18-14.img
    title DOS
    rootnoverify (hd0,0)
    chainloader +1


    I thought adding the following would be OK -
    title Fedora Core 1 (2.4.22-1.2115.nptl)
    root (hd1,0)
    kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdb=ide-scsi
    initrd /initrd-2.4.22-1.2115.nptl.img


    be this causes problems.

    My hw browser gives the following for what is installed

    /dev/hde
    hde1 win98
    hde2 extended
    hde5 ntfs
    hde6 ntfs
    hde7 ext3 /*/boot for the two rh 8.0 kernels */
    hde8 swap
    hde9 ext3

    Fedora on the other harddrive

    /dev/hdg
    hdg1 ext3
    hdg2 swap
    hdg3 exr3

    both hard drives are on a raid controller(highpoint370) (raid is NOT configured)

    What is the configuration required for my grub.conf file?
    everything I try will not work!

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    hde and hdg? In that case, it seems that you should try (hd2,0) instead of (hd1,0) in the GRUB config.

    If that doesn't work, would you mind posting the exact error message?

  3. #3
    Just Joined!
    Join Date
    Jan 2004
    Location
    UK
    Posts
    8
    (hd2,0) does not work.
    I ran dmesg for the failed boot and everything is fine (it all looks as it should - I'll post this if you request).
    The problems start when red hat starts to load.

    the following errors occur amoung successful items

    modprobe: can't open dependencies file /lib/modules/2.4.22-1.2115.nptl/modules.dep (no such file or directory)

    finding module dependencies: depmod: Can't open /lib/modules/2.4.22-1.2115.nptl/modules.dep for writing [FAILED]

    Mounting local files systems: mount:fs type vfat not supported by kernel [FAILED]

    modprobe: can't open dependencies file /lib/modules/2.4.22-1.2115.nptl/modules.dep (no such file or directory)

    Checking for new hardwaremodprobe: modprobe: Can't open dependencies file /lib/modules/2.4.22-1.2115.nptl/modules.dep (no such file or directory)

    this then occurs three times

    modprobe: can't open dependencies file /lib/modules/2.4.22-1.2115.nptl/modules.dep (no such file or directory)

    and a final failure

    Mounting other filesystems: mount: fs type vfat not supported by the kernel [FAILED]


    It then boots directly into RH8 with X slightly screwed.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I see. That's not a problem with GRUB, though.

    It seems that your module dependency database has been screwed up. What happens if you run "depmod -a" to regenerate it?

  6. #5
    Just Joined!
    Join Date
    Jan 2004
    Location
    UK
    Posts
    8
    ran depmod -a and get the following response

    depmod: Can't open /lib/modules/2.4.22-1.2115.nptl/modules.dep for writing

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That's interesting... Run the following command:
    Code:
    strace -o depmod.strace depmod -a
    That will produce a file called depmod.strace. It would a really good thing if you could post it here.

    By the way, you ran depmod as root, right?

  8. #7
    Just Joined!
    Join Date
    Jan 2004
    Location
    UK
    Posts
    8
    Yes I ran depmod as root.
    ran the strace and here is the output to the depmod.stace file

    execve("/sbin/depmod", ["/sbin/depmod", "-a"], [/* 18 vars */]) = 0
    uname({sys="Linux", node="localhost.localdomain", ...}) = 0
    brk(0) = 0x80c493c
    open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=60780, ...}) = 0
    old_mmap(NULL, 60780, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
    close(3) = 0
    open("/lib/i686/libc.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0 \0 Z\1B4\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1288460, ...}) = 0
    old_mmap(0x42000000, 1294148, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000
    old_mmap(0x42135000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x135000) = 0x42135000
    old_mmap(0x4213a000, 8004, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4213a000
    close(3) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40023000
    munmap(0x40014000, 60780) = 0
    uname({sys="Linux", node="localhost.localdomain", ...}) = 0
    brk(0) = 0x80c493c
    brk(0x80c593c) = 0x80c593c
    brk(0) = 0x80c593c
    brk(0x80c6000) = 0x80c6000
    open("/etc/modules.conf", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=649, ...}) = 0
    stat64("/etc/modules.conf", {st_mode=S_IFREG|0644, st_size=649, ...}) = 0
    stat64("/etc/conf.modules", 0xbfffbb40) = -1 ENOENT (No such file or directory)
    fstat64(3, {st_mode=S_IFREG|0644, st_size=649, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
    read(3, "alias parport_lowlevel parport_p"..., 4096) = 649
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0x40014000, 4096) = 0
    mmap2(NULL, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
    query_module(NULL, 0, NULL, 0) = 0
    query_module(NULL, QM_MODULES, { /* 2 entries */ }, 2) = 0
    query_module("ext3", QM_INFO, {address=0xe081b000, size=70532, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=3}, 16) = 0
    query_module("ext3", QM_SYMBOLS, { /* 3 entries */ }, 3) = 0
    query_module("jbd", QM_INFO, {address=0xe080d000, size=51732, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=3}, 16) = 0
    brk(0) = 0x80c6000
    brk(0x80c7000) = 0x80c7000
    query_module("jbd", QM_SYMBOLS, 0x80c5c20, 1024, 1594) = -1 ENOSPC (No space left on device)
    query_module("jbd", QM_SYMBOLS, { /* 43 entries */ }, 43) = 0
    brk(0) = 0x80c7000
    brk(0x80cb000) = 0x80cb000
    query_module(NULL, QM_SYMBOLS, 0x80c6260, 16384, 53463) = -1 ENOSPC (No space left on device)
    brk(0) = 0x80cb000
    brk(0x80d8000) = 0x80d8000
    query_module(NULL, QM_SYMBOLS, { /* 1572 entries */ }, 1572) = 0
    brk(0) = 0x80d8000
    brk(0x80d9000) = 0x80d9000
    brk(0) = 0x80d9000
    brk(0x80da000) = 0x80da000
    brk(0) = 0x80da000
    brk(0x80db000) = 0x80db000
    brk(0) = 0x80db000
    brk(0x80dc000) = 0x80dc000
    brk(0) = 0x80dc000
    brk(0x80dd000) = 0x80dd000
    brk(0) = 0x80dd000
    brk(0x80de000) = 0x80de000
    brk(0) = 0x80de000
    brk(0x80df000) = 0x80df000
    brk(0) = 0x80df000
    brk(0x80e0000) = 0x80e0000
    brk(0) = 0x80e0000
    brk(0x80e2000) = 0x80e2000
    lstat64("/lib/modules/boot", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/2.4.22-1.2115.nptl", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/2.4", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/kernel", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/fs", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/net", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/scsi", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/block", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/cdrom", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/ipv4", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/ipv6", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/sound", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/fc4", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/video", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/misc", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/pcmcia", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/atm", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/usb", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/ide", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/ieee1394", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    lstat64("/lib/modules/mtd", 0xbfffc7d0) = -1 ENOENT (No such file or directory)
    open("/lib/modules/2.4.22-1.2115.nptl/modules.dep", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
    write(2, "depmod: ", = 8
    write(2, "Can\'t open /lib/modules/2.4.22-1"..., 66) = 66
    write(2, "\n", 1) = 1
    _exit(-1)

  9. #8
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    It seems your entire module directory is lost. Do you have /lib/modules/2.4.22-1.2115.nptl?

  10. #9
    Just Joined!
    Join Date
    Jan 2004
    Location
    UK
    Posts
    8
    Yes its there

  11. #10
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    In that case, the only explanation that I can find for that error message is indeed that depmod wouldn't be run as root. One thing that is sure is that this is really strange... Can you post the output of the following commands (running as root)?
    Code:
    ls -la /lib/modules/2.4.22-1.2115nptl
    uname -a
    id
    ls -l /sbin/depmod
    cat /proc/mounts

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •