hns - 日記自動生成システム - Version 2.19.9

先月 2006年10月 来月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2006年10月11日(水) 旧暦 [n年日記] [更新:"2006/10/14 07:07:43"]

#1 [NetBSD][kuro-box][sandpoint] kuro-box を自動起動(が半分失敗)

  1. /root/netbsd.sh を用意する
    #!/bin/sh
    echo 'Starting NetBSD in 10 seconds'
    echo '    ^C to interrupt'
    ###
    for i in 0 1 2 3 4 5 6 7 8 9; do
      echo -n $i '';
      sleep 1;
    done;
    ###
    cd /
    umount -a; sync;sync;sync; \
    insmod /root/nbloader_v3.o \
    kernel=/root/netbsd-GENERIC.KUROBOX.bin \
    bootdev=0xa0000000
    
  2. 起動時にこれを読むようにする
    ttyp0:makoto@kuro-hg 9:42:26/061011(...etc/rc.d)> cd rc2.d
    ttyp0:makoto@kuro-hg 9:42:40/061011(...rc.d/rc2.d)> ln -s /root/netbsd.sh S80netbsd.sh
    
    実は、この操作は NetBSD 上から Linux の root を mount して行った
何が失敗かと言って、
  • 中断が出来ない
  • ext2fs の整合性がこわれたのか NetBSD から mount 不可になってしまった
    ttyp0:root@kuro-hg 9:48:10/061011(~)# mount /dev/wd0e /mnt
    mount_ext2fs: /dev/wd0e on /mnt: incorrect super block
    
    ttyp0:root@kuro-hg 9:49:24/061011(~)# fsck_ext2fs -n /dev/rwd0e
    ** /dev/rwd0e (NO WRITE)
    BAD SUPER BLOCK: INCOMPATIBLE FEATURE BITS IN SUPER BLOCK
    
    LOOK FOR ALTERNATE SUPERBLOCKS? no
    
これは pkgsrc/sysutils/e2fsprogs を入れることで解決した気がする:
ttyp0:root@kuro-hg 12:18:59/061011(/tmp)# /usr/pkg/sbin/fsck.ext2  /dev/wd0e
e2fsck 1.32 (09-Nov-2002)
/dev/wd0e: recovering journal
/dev/wd0e contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/wd0e: 5841/32128 files (0.9% non-contiguous), 102537/128488 blocks
ttyp0:root@kuro-hg 12:19:15/061011(/tmp)# mount /dev/wd0e /mnt
ttyp0:root@kuro-hg 12:19:23/061011(/tmp)# ls /mnt
bin/        etc/        lib/        mnt/        root/       share/      usr/        www/
dev/        home/       lost+found/ proc/       sbin/       tmp/        var/
ttyp0:root@kuro-hg 12:19:25/061011(/tmp)# 

samba に問題あり。TNF 版でも同じなのか ..:

設定
ttyp0:root@kuro-hg 10:02:07/061011(~)# tail -4 /etc/rc.conf

samba=YES
nmbd=YES
smbd=YES
開始
ttyp0:root@kuro-hg 10:02:04/061011(~)# /etc/rc.d/samba start
Starting nmbd.
/usr/pkg/sbin/nmbd: Unsupported relocation type 6 in non-PLT relocations

Starting smbd.
/usr/pkg/sbin/smbd: Unsupported relocation type 6 in non-PLT relocations
以前の日記
Following patch fixes this problem
Index: Makefile
===================================================================
RCS file: /e/s900/cvsync/pkgsrc/net/samba/Makefile,v
retrieving revision 1.165
diff -u -r1.165 Makefile
--- Makefile    1 Oct 2006 14:58:38 -0000       1.165
+++ Makefile    11 Oct 2006 02:11:43 -0000
@@ -57,6 +57,7 @@
 
 CONFIGURE_ARGS+=       --with-swatdir=${PREFIX}/share/samba/swat
 CONFIGURE_ARGS+=       --with-libsmbclient
+CONFIGURE_ARGS+=       --disable-pie
 
 .include "../../converters/libiconv/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-libiconv=${BUILDLINK_PREFIX.iconv}




最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)