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
68
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
93
あなたの知らないバージョン命名規則
sat
PRO
3
900
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
64
Machine Check Exception
sat
PRO
2
66
バイナリダンプの模様を読む
sat
PRO
0
89
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
87
114-ファイルのshallow_copy.pdf
sat
PRO
2
57
113-Btrfsのスナップショット.pdf
sat
PRO
0
40
Other Decks in Technology
See All in Technology
Deploying a Full-Stack Bun-Native Framework on Cloudflare Workers
7nohe
0
160
DEFCON_CHV_CTF_Write-up.pdf
bata_24
0
150
Snowflakeのコスト最適化を支えるアーキテクチャ設計
ktatsuya
1
1.6k
10Xに技術的負債をもたらした「2つの境界の歪み」その構造と解消への営み
10xinc
0
1.4k
「守り」で活用するオンデバイスLLM 〜写ってはいけないを総力戦で防ぐ〜 / iOSDC Japan 2026
nakamuuu
0
150
現場で役立つ技術負債の効果的な返済方法
masuda220
PRO
6
2.1k
AI 駆動 Terraform 開発/SRE_BizReach_MIXI_2
visional_engineering_and_design
5
2.1k
Geolonia の開発現場における AIの活用について
miya0001
0
100
Claude Code本って、 読む必要あるの?
oikon48
2
450
Reactの設計論
uhyo
22
12k
20260912_スクフェス三河
kgnkhkr
0
350
アクセスキーこわい やめかたと漏らさない工夫
sassssan68
1
140
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Into the Great Unknown - MozCon
thekraken
41
2.7k
Designing for humans not robots
tammielis
254
26k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
520
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Code Reviewing Like a Champion
maltzj
528
40k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Faster Mobile Websites
deanohume
310
32k
Deep Space Network (abreviated)
tonyrice
0
300
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