hoohooslax wrote:
I tried Imdisk in Windows XP, but when I mounted dosubcdhd.img, its file system could not be recognized.
Go to the ImDisk Virtual Disk Driver in the control panel and start it.
Click on "mount new..."
Mount new virtual disk:Image file: dosubcdhd.img
Drive Letter: Choose one
Size of virtual disk: (current image file size)
Image file offset (for non-raw disk image file formats):
32256 (in bytes)
(this offset is needed to tell Imdisk to skip the mbr and the first sector of the harddrive image, after this 32256 bytes the partition with freedos "begins. In linux the "losetup -o 32256 /dev/loop0 dosubcdhd.img" command skips this bytes also.
In this case (and in general also), the first partition starts at sector 63. Knowing the sector size (standard is 512 bytes), we can easily calculate the offset in bytes to the first partition: 512 * 63 = 32256.)
Device type: Harddisk volume
I added two files (12 MiB total size) and tested the image. It worked for me.
hoohooslax wrote:
I tried WinImage and added files to dosubcdhd.img, its not bootable from UBCD.
I have never used it, but normally it should work with this program also. It is able to modify harddisk images. I haven't test it, it is shareware so you can use it only 30 days for free which sucks. Use Imdisk instead. I have tested it and it works definitely.
Quote:
* Supports the creation of large images of removable and hard disks under Windows NT and Windows 95. Large images (> 2.88 MB) are not loaded into memory, read and write operations are done directly on image files.
hoohooslax wrote:
I tried to mount the image in SLAX following your instruction, SLAX said ./dosubcdhd is busy. When I opened the ./dosubcdhd, nothing was there.
Neither was 'mount -o loop' working, too.
Try it again. I have just copied al the instructions, that I have written down in the first post, to the terminal on a different PC. And everything worked. Are you sure that you didn't cd to ./dosubcdhd two times before mounting the image? It can be, however that slax doesn't support every command.
Try the next:
Code:
ls /dev/loop*
The output should be something like this (the number of /dev/loop[number] can differ). If you don't get any output, slax doesn't have a loop device and my tutorial is useless for you.
/dev/loop0 /dev/loop2 /dev/loop4 /dev/loop6
/dev/loop1 /dev/loop3 /dev/loop5 /dev/loop7hoohooslax wrote:
I am not familiar with the DOS emulator too>_< If there's any chance, could you please tell me what emulator you are using and how do you emulate your image file and see if it's bootable? Thank you very very much for your time~~~~
I don't use a DOS emulator. I use QEMU, which is virtual machine (available for linux, windows, Mac OS X, OpenSolaris). Normally it is only a command line tool ,but for linux at least in ubuntu you can use "Qemu Launcher" or "Qemulator" as GUI for QEMU. "Qemu Manager" is a GUI for QEMU if you use windows.
Download QEMU:
See:
http://bellard.org/qemu/download.html
Qemu Manager (GUI for Qemu for windows):
See:
http://www.davereyn.co.uk/download.htm
Add the harddrive image as hard disk to QEMU.
I hope that this explanation helps and that you can get the image working. I checked the whole tutorial and it worked perfect for me. After adding files to the image, the image is still bootable in my case so normally it should work. I added 2 files to it thought Imdisk and 1 via linux and it was always bootable. I tested the tutorial on 2 different pc's. If you have problems, don't hesitate to ask.