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

  • 11/02() TES (25.2k)引落
  • 11/05(水) 不燃ごみ
  • 11/08() 16:00-22:00 JIDX Phone
  • 11/14(金) r 誕生日
  • 11/15() 木之本会議
  • 11/19(水) CQ Ham Radio
  • 11/19(水) mym + ki.nu 誕生日
  • 11/19(水) 不燃ごみ
  • 11/19(水) 別冊 CQ
  • 11/22() 0900 -- WW DX CW
  • 11/23() 0900-1500 東京 UHF
  • 11/25(火) Interface
  • 11/30() NTT 東 払込期日
  • 12/01(月) atactl check
  • 403 JNUG 総会/BOF 2017/07/08 (土)
  • 402 用途別 Emacs ( C, LaTeX, 日本語 )
  • 380 cvsweb の移行
  • 370 tamago 辞書登録
  • 368 CROSS (cross/i386-mingw32, cross/powerpc-linux ) Framework --- binutils + gcc
  • 363 Wanderlust+HyperEstraier
  • 360 evbppc 用 patch / 玄箱
  • 335 /dev/battery is missing hack | libgcc_s_pic.a is missing | samba の -PIE 問題335 ntpd monitor
  • 325 tcode頁の更新
  • 322 software |hardware
  • 321 emacs-22 | IPv6
  • 320 bulk build (Mac OS X 10.4 and NetBSD/macppc)
  • 310 Wanderlust の Namazu の挙動
  • 290 WordPress 1.2 -> 1.5 migration
  • 220 Wanderlust で日本語題名の wl-summary-print-buffer
  • 215 NetBSD/ofppc
便利なツール
Emacs
らくらく 入門
rakuraku-emacs-cover

先月 2025年11月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2025年10月25日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [raid] recover from disk error

2T x 2 is raid1 mirrored
  1. One day, I've found the one of the mirror pair got disk error
  2. Add spare (the box has four slots, and two disk were in the slot)
      (disk label as the same as others)
      raidctl -a /dev/wd2a raid0
    
  3.   raidctl -F /dev/wd0a raid0
    
    This starts process to add spare disk
  4. It took 30 days to complete spare setup
  5. I was hesitating what to do for several days
  6. One day the box does not give any response
  7. Reboot
  8. Asking root device: wd0a
    (and stopped)
  9. (force to shutdown)
  10. Remove suspicious unit
  11. Boot ... fine

u# /sbin/raidctl -s raid0
Components:
           /dev/wd1a: optimal
           /dev/wd0a: optimal
No spares.
Component label for /dev/wd1a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 377401575, Mod Counter: 512
   Clean: No, Status: 0
   sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 3907029088
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Soft
   Last configured as: raid0
Component label for /dev/wd0a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 377401575, Mod Counter: 512
   Clean: No, Status: 0
   sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 3907029088
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Soft
   Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.


2025年10月23日(木) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [PC] dd does not duplicate Windows 11 boot disk ?

  • PC = Windows 11
  • boot external sd0 with NetBSD install image
  • insert another bootable candidate SATA disk (with USB) 500GB
  • dd if=/dev/wd0d of=/dev/sd0 bs=64m
  • unrecorded error at the end

boot disk:

# gpt show wd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048     532480      1  GPT part - EFI System
     534528      32768      2  GPT part - Windows reserved
     567296  456042615      3  GPT part - Windows basic data
  456609911       1929         Unused
  456611840    1560576      4  GPT part - Windows recovery
  458172416       2048         Unused
  458174464   41943040      5  GPT part - de94bba4-06d1-4d40-a161-bfd50179d6ac
  500117504        655         Unused
  500118159         32         Sec GPT table
  500118191          1         Sec GPT header

dd copied disk:

# gpt show sd1
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048     532480      1  GPT part - EFI System
     534528      32768      2  GPT part - Windows reserved
     567296  456042615      3  GPT part - Windows basic data
  456609911       1929         Unused
  456611840    1560576      4  GPT part - Windows recovery
  458172416       2048         Unused
  458174464   41943040      5  GPT part - de94bba4-06d1-4d40-a161-bfd50179d6ac
  500117504        655         Unused
  500118159         32         Sec GPT table
  500118191          1         Sec GPT header
  500118192  437584896         Unused

install image disk (of NetBSD):

# gpt show sd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048     262144      1  GPT part - EFI System
     264192    4853760      2  GPT part - NetBSD FFSv1/FFSv2
    5117952       2015         Unused
    5119967         32         Sec GPT table
    5119999          1         Sec GPT header
    5120000  971653168         Unused
# exit


2025年10月04日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgsrc] pkgin search pkgname segfaults

NetBSD 11.99.2
pkgin-23.8.1nb3     Apt / yum like tool for managing pkgsrc binary packages
think-c11$ pkgin search emacs
think-c11$ /usr/pkg/bin/pkgin search emacs
[1]   Segmentation fault (core dumped) ktrace /usr/pkg/bin/pkgin search emacs
think-c11$ gdb /usr/pkg/bin/pkgin pkgin.core
....
28444  28444 pkgin    CALL  sendto(4,0x7f7ffff01b40,0x8e,0,0,0)
28444  28444 pkgin    MISC  msghdr: [name=0x0, namelen=0, iov=0xffffc489675bff50, iovlen=1, 
       control=0x0, controllen=0, flags=0]
28444  28444 pkgin    GIO   fd 4 wrote 142 bytes
       "<15>1 - think-c11.ki.nu pkgin - - - assertion \"string != NULL\" failed: 
       file \"/usr/src/lib/libc/regex/engine.c\", line 225, function \"smatcher\"\n"


2025年08月16日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] installboot (Although it’s too late)

今更ながら install boot (the same entry 6 Mo ago)
NetBSD/x86 ffsv2 Primary Bootstrap

Boot failed (errno 2): Can't open /boot
Recently I'm getting above issue.
  1. using sysinst Advent calendar 2016
  2. NetBSD/amd64 11.99.1 (but not limited to)
  3. RAID1 configuration (by sysinst)
  4. manual installboot is necessary
After usual sysinst, I would do
  • mount /dev/raid0a /mnt
  • chroot /mnt
  • mount -a
  • cd /usr/mdec
installboot -fv -t raid /dev/wd0a bootxx_ffsv1 /boot
installboot -fv -t raid /dev/wd1a bootxx_ffsv1 /boot
raidctl -A softroot raid0
The issue is:
  1. Is raid0 by above setup is ffsv1 or ffsv2 (See bellow, saying ffsv1)
  2. Is destination partition correct ?

dumpfs:

ms06# dumpfs /dev/rraid0a |head
file system: /dev/rraid0a
format  FFSv1
endian  little-endian
magic   11954           time    Sun Aug 17 06:21:34 2025
superblock location     8192    id      [ 68a03fd1 3814533f ]
cylgrp  dynamic inodes  4.4BSD  sblock  FFSv2   fslevel 4
nbfree  1278219 ndir    530     nifree  2589061 nffree  876
ncg     112     size    10485760        blocks  10321783
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800

disklabel:

ms06# disklabel wd0a
# /dev/rwd0a:
type: unknown
disk: wd
label: fictious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3876021
total sectors: 3907029168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 3907027120      2048       RAID                     # (Cyl.      2*- 3876020)
 c: 3907027120      2048     unused      0     0        # (Cyl.      2*- 3876020)
 d: 3907029168         0     unused      0     0        # (Cyl.      0 - 3876020)


2025年07月20日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [nvmm] network setup from qemnu

network が見えなかった件は、 次のように、 -nic user だけにしたら、解決した
The issue network is not connected, has been resolved by simply saying -nic user
  qemu-system-x86_64 \
        -smp 4 \
        -m 8G \
        -accel nvmm \
        -drive driver=qcow2,file=/export/Win11.qcow2,if=virtio \
        -nic user  \
        -rtc base=localtime,clock=host \
        -device intel-hda \
        -drive file=/home/makoto/Downloads/Win10_22H2_English_x64v1.iso,index=1,media=cdrom \
        -drive file=/home/makoto/Downloads/virtio-win-0.1.248.iso,index=2,media=cdrom
(the name says win11, but actually using windows 10 for now)



最近の日記
2025年10月25日
recover from disk error
2025年10月23日
dd does not duplicate Windows 11 boot disk ?
2025年10月04日
pkgin search pkgname segfaults
2025年08月16日
installboot (Although it’s too late)
2025年07月20日
network setup from qemnu
以上、5 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)