| 
      
  | 
     
便利なツール Emacs らくらく 入門  
 | 
  | 
 
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
 
 
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 ?
 @ 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 segfaultsNetBSD 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 emacsthink-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 /bootRecently I'm getting above issue. 
 
 installboot -fv -t raid /dev/wd0a bootxx_ffsv1 /boot installboot -fv -t raid /dev/wd1a bootxx_ffsv1 /boot raidctl -A softroot raid0The issue is: 
 @ 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  | ||