Mounting Individual Parititons in RAW Disk Images
来源:互联网 发布:宝芙兰卫生巾淘宝价格 编辑:程序博客网 时间:2024/05/17 02:13
From: http://blog.lifebloodnetworks.com/?p=934
Let us say, for the sake of simplicity, that you backup whole disks by using dd
in Linux. Now let us assume that you need just a single file out of a backup and do not want to (or can not realistically) restore the whole backup to disk for the single file. You can notmount -o loop
because the backup does not contain a single partition. “What to do” you ask? Well I will tell you, wary traveler.
- Mount your raw disk image as a loopback device:
losetup /dev/loop0 [path to image]
- Run kpartx and:
kpartx -va /dev/loop0
This will add your partitions to /dev/mapper/loop0pX where eachX is a different partition - You can now mount each partition:
mount /dev/mapper/loop0pX /media/partition
If you want to make sure you do not write anything to your backup simply mount it as read-only:mount -o ro /dev/mapper/loop0pX /media/partition
Once you are finished you will need to do your clean up.
- Unmount:
umount /media/partition
- Remove the mapper devices:
kpartx -d /dev/loop0
- Remove the loopback device:
losetup -d /dev/loop0
These commands may all need to be run as root. If loop0 reports that it is busy just pick another loop device (/dev/loop1
, ect).
0 0
- Mounting Individual Parititons in RAW Disk Images
- Mounting KVM qcow2 qemu disk images
- Mounting images in Dom0 using the blktap2 driver
- using raw disk in vmware fusion
- Performance Comparison: Disk Images vs LVM in a Xen Environment
- Mounting and Dismounting Disk Groups
- Accessing Individual Characters in a CString
- Mounting a disk image using the loop device
- 关于android的各种disk images
- 关于android的各种disk images
- Animating Images in MIDP
- Images in HTML
- Integral images in OpenCV
- 论文阅读:Fast and Accurate Semiautomatic Segmentation of Individual Teeth from Dental CT Images
- 论文读书笔记-topic correlation and individual influenceanalysis in online forums
- raw socket in linux
- Resizing or shrinking KVM virtual machine filesystems and disk images
- accessing pixels in digital images
- dos下遍历目录和文件的代码(主要利用for命令)
- 全文检索基本原理
- linux chmod 命令
- Android开发之短信
- 关于OnEraseBkGnd函数以及屏闪问题的解决
- Mounting Individual Parititons in RAW Disk Images
- 又见组合数, 好亲切! (某公司实习生招聘笔试试题)
- charindex实现where in
- 观察者模式(Observer)
- C#中三种截屏方式总结
- Android自定义PullListView下拉刷新,上拉加载更多分页数据
- PCB设计铜箔厚度、线宽和电流关系-
- 单链表的头插 尾插 反序 遍历 插入 删除
- VS快捷键