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

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

2013年07月28日() 旧暦 [n年日記] [更新:"2013/07/28 17:27:11"]

#1 disk > 2T

# gpt show sd0
       start        size  index  contents
           0  5860378032         
# stty erase ^H   
# gpt create sd0
# gpt destroy sd0
# gpt show sd0
       start        size  index  contents
           0           1         PMBR
           1  5860378031         
# gpt create sd0
# gpt add -s 2097152 sd0
Partition added, use:
        dkctl sd0 addwedge <wedgename> 34 2097152 <type>
to create a wedge for it
# gpt add -s 8388608 sd0
Partition added, use:
        dkctl sd0 addwedge <wedgename> 2097186 8388608 <type>
to create a wedge for it
# gpt add -s 20971520 sd0
Partition added, use:
        dkctl sd0 addwedge <wedgename> 10485794 20971520 <type>
to create a wedge for it
# gpt add -s 62914560 sd0
Partition added, use:
        dkctl sd0 addwedge <wedgename> 31457314 62914560 <type>
to create a wedge for it
# gpt add sd0
Partition added, use:
        dkctl sd0 addwedge <wedgename> 94371874 5766006125 <type>
to create a wedge for it
# dkctl sd0 addwedge dk0 34 2097152 ffs
dkctl: /dev/rsd0d: addwedge: Invalid argument
#  dkctl sd0 delwedge dk0
dk0 at sd0 (root) deleted
# 
# gpt show sd0
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34     2097152      1  GPT part - NetBSD FFSv1/FFSv2
     2097186     8388608      2  GPT part - NetBSD FFSv1/FFSv2
    10485794    20971520      3  GPT part - NetBSD FFSv1/FFSv2
    31457314    62914560      4  GPT part - NetBSD FFSv1/FFSv2
    94371874  5766006125      5  GPT part - NetBSD FFSv1/FFSv2
  5860377999          32         Sec GPT table
  5860378031           1         Sec GPT header

# dkctl sd0 addwedge dk0  34 2097152 ffs
dkctl: /dev/rsd0d: addwedge: Invalid argument
# gpt show sd0
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34     2097152      1  GPT part - NetBSD FFSv1/FFSv2
     2097186     8388608      2  GPT part - NetBSD FFSv1/FFSv2
    10485794    20971520      3  GPT part - NetBSD FFSv1/FFSv2
    31457314    62914560      4  GPT part - NetBSD FFSv1/FFSv2
    94371874  5766006125      5  GPT part - NetBSD FFSv1/FFSv2
  5860377999          32         Sec GPT table
  5860378031           1         Sec GPT header
# dkctl sd0 addwedge root 34 2097152
usage: dkctl device
       dkctl device command [arg [...]]
   Available commands:
        getcache 
        setcache none | r | w | rw [save]
        synccache [force]
        keeplabel yes | no
        badsector flush | list | retry
        addwedge name startblk blkcnt ptype
        delwedge dk
        getwedgeinfo 
        listwedges 
        strategy [name]
#  dkctl sd0 addwedge root 34 2097152 ffs
dkctl: /dev/rsd0d: addwedge: Invalid argument
# dkctl sd0 getwedgeinfo
dkctl: /dev/rsd0d: getwedgeinfo: Bad file descriptor
# dkctl sd0 listwedges
/dev/rsd0d: 1 wedge:
dk0: root, 5860377965 blocks at 34, type: ffs
# dkctl sd0 delwedge root
dkctl: /dev/rsd0d: delwedge: No such process
# dkctl sd0 delwedge dk
dkctl: /dev/rsd0d: delwedge: No such process
# dkctl sd0
strategy:
/dev/rsd0d: priocscan

cache:
/dev/rsd0d: read cache enabled
/dev/rsd0d: read cache enable is not changeable
/dev/rsd0d: write cache enable is not changeable
/dev/rsd0d: cache parameters are not savable

wedges:
/dev/rsd0d: 1 wedge:
dk0: root, 5860377965 blocks at 34, type: ffs
# dkctl sd0 delwedge root
dkctl: /dev/rsd0d: delwedge: No such process
#  dkctl sd0 delwedge dk0
dk0 at sd0 (root) deleted
# dkctl sd0 addwedge root 34 2097152
usage: dkctl device
       dkctl device command [arg [...]]
   Available commands:
        getcache 
        setcache none | r | w | rw [save]
        synccache [force]
        keeplabel yes | no
        badsector flush | list | retry
        addwedge name startblk blkcnt ptype
        delwedge dk
        getwedgeinfo 
        listwedges 
        strategy [name]
# dkctl sd0 addwedge root 34 2097152 ffs
dk0 at sd0: root
dk0: 2097152 blocks at 34, type: ffs
dk0 created successfully.
# dkctl sd0 addwedge swap 2097186 8388608 swap
dk1 at sd0: swap
dk1: 8388608 blocks at 2097186, type: swap
dk1 created successfully.
#  dkctl sd0 addwedge usr 10485794 20971520 ffs
dk2 at sd0: usr
dk2: 20971520 blocks at 10485794, type: ffs
dk2 created successfully.
# dkctl sd0 addwedge var 31457314 62914560 ffs
dk3 at sd0: var
dk3: 62914560 blocks at 31457314, type: ffs
dk3 created successfully.
# dkctl sd0 addwedge export 94371874 5766006125 ffs
dk4 at sd0: export
dk4: 5766006125 blocks at 94371874, type: ffs
dk4 created successfully.
# dkctl sd0 listwedges
/dev/rsd0d: 5 wedges:
dk0: root, 2097152 blocks at 34, type: ffs
dk1: swap, 8388608 blocks at 2097186, type: swap
dk2: usr, 20971520 blocks at 10485794, type: ffs
dk3: var, 62914560 blocks at 31457314, type: ffs
dk4: export, 5766006125 blocks at 94371874, type: ffs
# 
多分この方法は間違い(良くない = 便利でない) dk0 だけで良い
あれ、sysinst は dk が見えない ?
sysinst の中では disklabel を良く使う。 その disklabel は gpt に対応していない。 だから単に dk が見えれば良いというものでもない



最近の日記
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)