{"id":387,"date":"2012-12-03T13:18:10","date_gmt":"2012-12-03T22:18:10","guid":{"rendered":"\/blog\/?p=387"},"modified":"2023-09-21T09:38:54","modified_gmt":"2023-09-21T00:38:54","slug":"openbsd-%ec%84%a4%ec%b9%98%ec%9a%a9-usb-%eb%94%94%ec%8a%a4%ed%81%ac-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=387","title":{"rendered":"OpenBSD \uc124\uce58\uc6a9 USB \ub514\uc2a4\ud06c \ub9cc\ub4e4\uae30"},"content":{"rendered":"\n<p><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-size: 12pt; color: rgb(0, 85, 255); font-family: Courier New;\">1\ub2e8\uacc4 : \ud30c\ud2f0\uc154\ub2dd \ubc0f \ud3ec\ub9f7<\/span><\/span><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><br \/><\/span><\/b><\/p><p><b><span style=\"font-family: Courier New;\"># fdisk -e \/dev\/rsd0c<\/span><\/b><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\">fdisk: 1&gt; <\/span><b><span style=\"font-family: Courier New;\">reinit<\/span><\/b><\/span><br \/><span style=\"font-family: Courier New;\">In memory copy is initialized to:<\/span><br \/><span style=\"font-family: Courier New;\">Offset: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Signature: 0xAA55<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Starting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ending&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LBA Info:<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;#: id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C&nbsp;&nbsp; H&nbsp;&nbsp; S -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C&nbsp;&nbsp; H&nbsp;&nbsp; S [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size ]<\/span><br \/><span style=\"font-family: Courier New;\">-------------------------------------------------------------------------------<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;0: 00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 ] unused<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;1: 00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 ] unused<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;2: 00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 ] unused<\/span><br \/><span style=\"font-family: Courier New;\">*3: A6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 1&nbsp;&nbsp; 2 -&nbsp;&nbsp;&nbsp; 976 254&nbsp; 63 [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64:&nbsp;&nbsp;&nbsp; 15695441 ] OpenBSD<\/span><br \/><span style=\"font-family: Courier New;\">Use 'write' to update disk.<\/span><br \/><span style=\"font-family: Courier New;\">fdisk: 1&gt; <\/span><b><span style=\"font-family: Courier New;\">flag 3<\/span><\/b><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\">fdisk:*1&gt; <\/span><b><span style=\"font-family: Courier New;\">write<\/span><\/b><\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\">fdisk: 1&gt; <\/span><b><span style=\"font-family: Courier New;\">exit<\/span><\/b><\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\"># <\/span><b><span style=\"font-family: Courier New;\">disklabel -E \/dev\/rsd0c<\/span><\/b><\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\">&gt; <\/span><b><span style=\"font-family: Courier New;\">a a<\/span><\/b><\/span><br \/><span style=\"font-family: Courier New;\">offset: [64]<\/span><br \/><span style=\"font-family: Courier New;\">size: [15695441]<\/span><br \/><span style=\"font-family: Courier New;\">FS type: [4.2BSD]<\/span><br \/><span style=\"font-family: Courier New;\">Rounding size to bsize (32 sectors): 15695424<\/span><br \/><span style=\"font-family: Courier New;\">&gt; p<\/span><br \/><span style=\"font-family: Courier New;\">OpenBSD area: 64-15695505; size: 15695441; free: 17<\/span><br \/><span style=\"font-family: Courier New;\">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; offset&nbsp; fstype [fsize bsize&nbsp; cpg]<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp; a:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15695424&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64&nbsp; 4.2BSD&nbsp;&nbsp; 2048 16384&nbsp;&nbsp;&nbsp; 1<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp; c:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15695871&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; unused<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\">&gt; <\/span><b><span style=\"font-family: Courier New;\">w<\/span><\/b><\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\">&gt; <\/span><b><span style=\"font-family: Courier New;\">q<\/span><\/b><\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\"># <\/span><b><span style=\"font-family: Courier New;\">newfs \/dev\/rsd0a<\/span><\/b><\/span><br \/><span style=\"font-family: Courier New;\">\/dev\/rsd0a: 7663.8MB in 15695424 sectors of 512 bytes<\/span><br \/><span style=\"font-family: Courier New;\">38 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each<\/span><br \/><span style=\"font-family: Courier New;\">super-block backups (for fsck -b #) at:<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;32, 414688, 829344, 1244000, 1658656, 2073312, 2487968, 2902624, 3317280,<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;3731936, 4146592, 4561248, 4975904, 5390560, 5805216, 6219872, 6634528,<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;7049184, 7463840, 7878496, 8293152, 8707808, 9122464, 9537120, 9951776,<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;10366432, 10781088, 11195744, 11610400, 12025056, 12439712, 12854368,<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;13269024, 13683680, 14098336, 14512992, 14927648, 15342304,<\/span><br \/><br \/><\/p><p><b><span style=\"font-size: 12pt; color: rgb(107, 102, 255); font-family: Courier New;\">2\ub2e8\uacc4 : \ubd80\ud2b8\uc774\ubbf8\uc9c0 \uae30\ub85d<\/span><\/b><\/p><p><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"><span style=\"font-family: Courier New;\"># <\/span><b><span style=\"font-family: Courier New;\">mount \/dev\/sd0a \/mnt<\/span><\/b><\/span><br \/><span style=\"font-family: Courier New;\">#<\/span><b><span style=\"font-family: Courier New;\"> cp \/bsd.rd \/boot \/mnt<\/span><\/b><br \/><span style=\"font-family: Courier New;\">#<\/span><b><span style=\"font-family: Courier New;\"> mv \/mnt\/bsd.rd \/mnt\/bsd<\/span><\/b><br \/><span style=\"font-family: Dotum,\ub3cb\uc6c0;\"><span style=\"font-family: Courier New;\"># <\/span><b><span style=\"font-family: Courier New;\">\/usr\/mdec\/installboot -v \/mnt\/boot \/usr\/mdec\/biosboot sd0<\/span><\/b><\/span><br \/><span style=\"font-family: Courier New;\">boot: \/mnt\/boot proto: \/usr\/mdec\/biosboot device: \/dev\/rsd0c<\/span><br \/><span style=\"font-family: Courier New;\">\/mnt\/boot is 1 blocks x 16384 bytes<\/span><br \/><span style=\"font-family: Courier New;\">fs block shift 2; part offset 64; inode block 3213608, offset 552<\/span><br \/><span style=\"font-family: Courier New;\">master boot record (MBR) at sector 0<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; partition 3: type 0xA6 offset 64 size 15695441<\/span><br \/><span style=\"font-family: Courier New;\">\/boot will be written at sector 64<\/span><br \/><span style=\"font-family: Courier New;\">#<\/span><span style=\"font-family: Courier New;\"><span style=\"font-family: Courier New;\"> umount \/mnt<\/span><\/span><br \/><br \/><\/p><b><span style=\"font-size: 12pt; color: rgb(107, 102, 255);\"><span style=\"background-color: rgb(255, 255, 255); color: rgb(102, 0, 255); font-family: Courier New;\">3<\/span><span style=\"background-color: rgb(255, 255, 255); color: rgb(102, 0, 255); font-family: Courier New;\">\ub2e8\uacc4 : \uc124\uce58\ud30c\uc77c \ubcf5\uc0ac<\/span><br \/><\/span><\/b><p><span style=\"font-family: Courier New;\"># mkdir \/isomnt<\/span><br \/><span style=\"font-family: Courier New;\"># vnconfig vnd0 \/tmp\/install52.iso<\/span><br \/><span style=\"font-family: Courier New;\"># mount -t cd9660 \/dev\/vnd0c \/isomnt<\/span><br \/><br \/><br \/><b><span style=\"font-family: Courier New;\">#<\/span><span style=\"font-family: Courier New;\"> mount \/dev\/sd0a \/mnt<\/span><br \/><span style=\"font-family: Courier New;\">#<\/span><span style=\"font-family: Courier New;\"> cp -R \/isomnt\/* \/mnt\/<\/span><br \/><span style=\"font-family: Courier New;\">#<\/span><span style=\"font-family: Courier New;\"><span style=\"font-family: Courier New;\"> umount \/mnt<\/span><br \/><br \/><br \/><\/span><\/b><span style=\"font-family: Courier New;\"><span style=\"font-family: Courier New;\"># umount \/isomnt<\/span><br \/><span style=\"font-family: Courier New;\"># vnconfig -u vnd0<\/span><\/span><b><span style=\"font-family: Courier New;\"><br \/><\/span><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\ub2e8\uacc4 : \ud30c\ud2f0\uc154\ub2dd \ubc0f \ud3ec\ub9f7 # fdisk -e \/dev\/rsd0cfdisk: 1&gt; reinitIn memory copy is initialized to:Offset: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Signature: 0xAA55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Starting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ending&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LBA Info:&nbsp;#: id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C&nbsp;&nbsp; H&nbsp;&nbsp; S &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C&nbsp;&nbsp; H&nbsp;&nbsp; S [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size ]&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&nbsp;0: 00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 ] unused&nbsp;1: 00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 0 &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}