Mounting a disk image using the loop device
来源:互联网 发布:ubuntu 16.04.3lts安装 编辑:程序博客网 时间:2024/06/05 20:52
quoted
http://bochs.sourceforge.net/doc/docbook/user/loop-device-usage.html
This section was contributed by Volker Ruppert.
Today I have made some tests with the loop device, because I want to exchangefiles with the bochs disk images. This is what I found out:1. Using Floppy images is easy, because there is no partition table: losetup /dev/loop0 /usr/local/bochs/dlxlinux/floppya.img Now you can use the image like a real floppy: - format : mkfs.minix /dev/loop0 - filesystem check : fsck.minix /dev/loop0 - mount : mount /dev/loop0 -o loop /mnt/floppy Before you want to restart bochs you must do this: losetup -d /dev/loop0 Don't forget to umount before.2. If you want access to a hard disk image, you have to calculate the size of the first cylinder. This value is the offset argument for losetup. offset = bytes per sector * sectors per cylinder The command for dlxlinux image looks like this: losetup /dev/loop0 /usr/local/bochs/dlxlinux/hd10meg.img -o 8704 For images created by bximage you must use the value 32256.3. The hard disk image access doesn't work if the image contains more than one partition.4. I have made this tests with Linux and I don't know how this could be done with other operating systems.
- Mounting a disk image using the loop device
- Accessing the contents of a KVM disk image file
- Your boot partition is on a disk using the GPT
- a read-only disk image
- Troubleshooting the "device is busy" Error Attempting to umount a Disk
- Mounting images in Dom0 using the blktap2 driver
- Hiding Data from Forensic Imagers – Using the Service Area of a Hard Disk Drive
- The database disk image is malformed
- Getting grub into a disk image
- How to Make a Bochs Disk Image
- Mounting and Dismounting Disk Groups
- Xcode cannot run using the selected device. Choose a destination with a supported architecture
- xcode cannot run using the selected device choose a destination with a supported architecture
- Xcode cannot run using the selected device.Choose a destination with a supported architecture in ord
- using erase() in a loop like this!
- parse and display a BMP image in the Flash Player using the ByteArray class
- Your boot partition is on a disk using the GPT partitioning Scheme but this machines cannot boot
- sqlite错误 The database disk image is malformed database disk image is malformed 可解决
- 文字编辑器FCKeditor 简介以及基本配置和使用方法
- 安装和运行Moblin映像创建者V2
- MIC2 使用方法
- PHPMYADMIN下#1045错误解决办法
- 将PNG转换成ICON的软件【免费】
- Mounting a disk image using the loop device
- HDOJ 2546饭卡
- Log4j使用教程
- New Version of dnsmap out
- C++类的几个概念
- AspNetPager初用一
- 关于Infragistics.WebUI.UltraWebGrid的使用
- UCSniff
- 开博之篇