<html><pre>
Hi,

I need some advices for mandrakes rc.sysinit script.
I admit that I'm not a programmar nor an Unix crack at all. ( .. and my english isn't 
that good, as well)
I got several Problems with updating my Mandrake 8.0 partially(!) :-(  to Mandrake 8.2
(I think that was no good Idea, but with sane 1.0.7 I can scan now with my Umax 2000u 
usb scanner!
And there were other updates too depending on kernel 2.4.18 and glibc-2.2.5  and 
gcc-3.03.
So I had to upgrade my machine but my ISDN is too slow to get the whole Distribution)

The main problem now is to get those messages at bootup the machine:

-bash: /etc/sysconfig/system: Permission denied
Einh�ngen lokaler Dateisysteme: [failed]                         #en:   "Mounting 
local filesystems: "
Einh�ngen des loopback Dateisystems: [failed]                #en:   "Mounting loopback 
filesystems: "

After logging in the most things are looking good.

At the beginning I had errors like unresolved symbols or
busybox: Device or recource is busy and
ERROR: /bin/insmod exited abnormally!
after login by typing ifconfig there was no output (no loopback!) and mount
mounted only
/dev/hdb3 on / type reiserfs (rw),
none on /proc and /proc/bus/usb,
but I solved it by renaming /lib/modules/2.4.18-6mdk in /lib/modules/2.4.18-6mdk_old
compiling a new kernel from the proper sources with reiserfs as modul
( make mrproper xconfig dep clean modules modules_install bzImage)
rm /boot/initrd.img and
mkinitrd /boot/initrd-2.4.18-6mdk.img 2.4.18-6mdk         # mkinitrd: version 3.1.6-mdk
mv ./arch/i386/boot/bzImage /boot/vmlinuz-xyz
editing /etc/lilo.conf
and typing lilo ...

Now I got by typing ifconfig:
    lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:481 errors:0 dropped:0 overruns:0 frame:0
          TX packets:481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:37254 (36.3 Kb)  TX bytes:37254 (36.3 Kb)

but local filesystems are not mounted on boot. Typing mount -a mounts all other 
filesystems properly.
A lot of the initscripts and services depend on mounted loopback and other filesystems.

###################

So, my question now is:

        1) What version of mount do I need to get the option -0 (zero) working
        2) Do I have to change all the mount -0 (zero not O or o) lines in the 
rc.sysinit script ?

Here some lines of my rc.sysinit and outputs of dmesg and other - I hope - useful 
informations:

 INIT: version 2.78 booting

 [root@# ls -ld /etc
drwxr-xr-x   70 root     root         7192 Apr 13 13:09 /etc/

 [root@# ls -ld /etc/sysconfig
drwxr-xr-x    6 root     root          928 Apr 11 05:46 /etc/sysconfig/

 [root@# ls -l /etc/sysconfig/system
-rwx------    1 root     root           45 Jan 12 02:23 /etc/sysconfig/system*

Einh�ngen lokaler Dateisysteme: [failed]
Einh�ngen des loopback Dateisystems: [failed]

_____________________________________________________________________________
/etc/rc.d/rc.sysinit:

 #snipp----
action "Mounting local filesystems: " mount -a -t nonfs,ncpfs -0 
no_netdev,noloop,noencrypted

progress 6
 #----snapp

 #snipp----
# Mount loopback
action "Mounting loopback filesystems: " mount -a -0 loop

progress 7
 #----snapp

 #snipp----
# A return of 2 or higher means there were serious problems.
        if [ $rc -gt 1 ]; then
            echo_failure
            aurora_direct
                quiet off
                echo
                echo
                gprintf "*** An error occurred during the file system check.\n"
                gprintf "*** Dropping you to a shell; the system will reboot\n"
                gprintf "*** when you leave the shell.\n"

                PS1="(Repair filesystem) \#"; export PS1
                sulogin

            aurora_end
            gprintf "Unmounting file systems\n"
            umount -a
            mount -n -0 remount,ro /                                  #<----           
mount -n -0
            gprintf "Automatic reboot in progress.\n"
            reboot -f
        elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
                action "Checking filesystem quotas: " /sbin/quotacheck -v -R -a
        fi
fi
 #----snapp
_______________________________________________________________________________

konsole output:

[root@# mount -V
mount: mount-2.11b
[root@# uname -r
2.4.18-6mdk
[root@# dmesg | grep  Mandrake
Linux version 2.4.18-6mdk ([EMAIL PROTECTED])
(gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #1 Sam Apr 13 03:24:19 
EDT 2002
[root@# mount -0
mount: Ung�ltige Option -- �0�
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a                 : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say  man 8 mount .

I appreciate any suggestions
regards

gerhard

This is a crosspost. I posted it in alt.os.linux.mandrake the 13.4.2002

</html></pre>
______________________________________________________________________________
Sie wollen mehr? Mehr Speicher, mehr Mail, mehr Erlebnis, mehr Leistung, 
mehr Pr�mie unter http://club.web.de/?mc=021102


Reply via email to