Received: from correo.unicaja.es (correo.unicaja.es [195.76.110.2]) by pisoft.it (8.8.5/8.8.5) with ESMTP id HAA30363 for ; Thu, 4 Feb 1999 07:34:27 +0100 Received: from failure.dhis.org (BE-213-MALA-X4.red.retevision.es [62.81.94.213]) by correo.unicaja.es (AIX4.2/UCB 8.7/8.7) with ESMTP id HAA24740 for ; Thu, 4 Feb 1999 07:26:09 +0100 (NFT) Received: by failure.dhis.org via sendmail from stdin id (Debian Smail3.2.0.101) for andreoli@pisoft.it; Thu, 4 Feb 1999 07:28:03 +0100 (CET) Date: Thu, 4 Feb 1999 07:28:03 +0100 From: "Luis M. Cruz" To: Michele Andreoli Subject: Bugs in mulinux-3r2 Message-ID: <19990204072803.A201@failure.ddns.org> X-Mailer: Mutt 0.95i X-Operating-System: Linux failure.ddns.org 2.2.1 X-UIDL: e017979fdba6fdcfd826aec2a1a90233 Status: RO X-Status: A Hi! I think I've found two bugs in mulinux-3r2... First one is that ne2k-pci needs the 8390 module too. So the lines case ${CARD} in ne ) load_modules 8390 ;; at setup/fun/eth.fun should be: case ${CARD} in ne | ne2k-pci) load_modules 8390 ;; By the way, I think you shouldn't set MODULE_PARAMETERS for default because if you don't want nor need to set parameters the only way is not to write anything and this makes the config script to assume the default ones that usually don't work. Al least, the ne and ne2k-pci can usually get the correct parameters without help, you don't need to set them for it. Now... the second bug, that have made me to loose an hour to find why the rebuilding failed. I tried to personalice mulinux and when i booted the disk it failed trying to mount /usr filesystem. Bzip2 said me that it was corrupted... :-? So i rebuilt it again and i saw this... BOOT=640, ROOT=505, USR=620, Total 1759 -37 k-bytes (uncompressed) free. Hei! It didn't feet! I tried two or three times to delete some files from usr, but nothing.... it continued failing... Then i tried to rebuild the original USR, ROOT and BOOT: I rm'ed all files, untared mulinux again, mu -u, mu -r. And i saw that ROOT.gz was 3K bigger than the original one and BOOT.raw almost 55Kb bigger than the original BOOT!!!! Well.... after half an hour or so I found that you tried to get the file size with 'du -k'. But the result of this depends on the block size of the filesystem where the file is, because it says the number of blocks used by the file * size of blocks in kb, even if the last block is not fully occupied. [root]/usr/src/mulinux# ls -l ROOT.gz -rw-r--r-- 1 root root 511934 feb 3 18:40 ROOT.gz [root]/usr/src/mulinux# du -k ROOT.gz 504 ROOT.gz But 511924bytes / 1024 are... 500Kb, not 504... If you want to get the size in Kb's you should use 'du -h'. [root]/usr/src/mulinux# du -h ROOT.gz 500K ROOT.gz To get rid of the K you can use 'sed -e "s/K//"'. So, the filesize function could be: filesize() { set -- `du -h $1 | sed -e "s/K//"` echo $1 } And in line 254... set -- `du -h -s $TREE/startup | sed -e "s/K//"` Now, it reminds 29 Kb free on the diskette instead of lacking 37 Kbs. Well... that's all folks! -- Saludos del General... _______ _ .-.-. .-. .-.---.---. --------- Coordinador de LiMa --------- ( ____ ) \| | | | | | | ) _ ) Asociación de usuarios de LiNUX de Málaga | |_ / _ \ | |_| \_/ | \ _) http://iaeste.cie.uma.es/lima | _ )/_/ \_\|___)\___/|_|\_\___) ----------------------------------------- | |Correo-E: |_|Web: http://www.failure.ddns.org Clave pública PGP: http://www.failure.ddns.org/clave.zip