Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
0030_loopback_device.pdf
Search
Satoru Takeuchi
PRO
August 24, 2021
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
0030_loopback_device.pdf
Satoru Takeuchi
PRO
August 24, 2021
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
79
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
110
あなたの知らないバージョン命名規則
sat
PRO
3
920
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
74
Machine Check Exception
sat
PRO
2
71
バイナリダンプの模様を読む
sat
PRO
0
110
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
110
114-ファイルのshallow_copy.pdf
sat
PRO
2
62
113-Btrfsのスナップショット.pdf
sat
PRO
0
46
Other Decks in Technology
See All in Technology
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
210
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
170
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
Metadata - Section 1: HTML Basics
mohab1
0
120
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
170
分析AIエージェントを育てる、動く環境を育てる
codatum
1
1.1k
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
100
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
sira's awesome portfolio website redesign presentation
elsirapls
0
450
The SEO identity crisis: Don't let AI make you average
varn
0
590
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
We Are The Robots
honzajavorek
0
400
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Ruling the World: When Life Gets Gamed
codingconduct
0
400
エンジニアに許された特別な時間の終わり
watany
109
250k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
310
Transcript
loop device Jul. 24th, 2021 Satoru Takeuchi twitter: satoru_takeuchi 1
loop deviceとは? • ファイルをブロックデバイスとして認識させるための機能 • loopback deviceとも呼ばれる • 主にファイル上に作ったファイルシステムイメージのmountに使う ◦
ファイルシステムイメージ (とくにisoイメージ)の読み書き ◦ ファイルシステムのテスト 2
使い方 1. ファイル上にファイルシステムを作成 ◦ # dd if=/dev/zero of=test.img bs=1G count=1
◦ # mkfs.ext4 test.img 2. loop deviceを作る ◦ # losetup -f --show test.img 3. mount ◦ # mount /dev/loop0 /mnt 4. 使う 5. umount ◦ # umount /mnt 6. loop deviceを削除 ◦ # losetup -d /dev/loop0 3 ext4ファイルシステム test.img /dev/loop0 ストレートマップ ext4としてマウント可能
実はもっと楽ができる • ファイル上にファイルシステムを作ってあれば以下コマンドでマウント可能 ◦ # mount test.img /mnt • loop
deviceの管理はmountコマンドが勝手にやってくれる 4
まとめ • loop deviceはファイルをブロックデバイスとして扱うための機能 • そのデバイスをファイルシステムとしてmountして使うことが多い ◦ ISOファイルの読み書き ◦ ファイルシステムのテスト
• losetupコマンドで管理するが、直接使わなくて済むことが多い 5