Menu

#77 dosemu fat image to CD-ROM iso

open
nobody
image (1)
5
2021-07-24
2021-07-24
Mike St
No

Hello,

Is there a way to build a disk image, modify it in DOSEMU, and turn it into a hard-drive emulated image for burning onto a CD so I can boot an old computer with the CD?

I tried this:

mkfatimage16 -k 32768 -p -f /path/to/adisk.img

Then DOSEMU will be happy to register my image as a C drive if I set this in dosemu.conf

$_hdimage="/path/to/adisk.img"

But in linux, when I run fdisk or sfdisk on the image, no partitions are reported. I get this output:

bash-4.2# fdisk -l /disk/image

Disk /disk/image: 33 MB, 33562624 bytes
255 heads, 63 sectors/track, 4 cylinders, total 65552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

bash-4.2# sfdisk -l /disk/image
sfdisk: Disk /disk/image: cannot get geometry


Disk /disk/image: 4 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
sfdisk:  /disk/image: unrecognized partition table type

sfdisk: No partitions found

bash-4.2# 

I also couldn't mount the image either...

bash-4.2# mount /disk/image /mnt
NTFS signature is missing.
Failed to mount '/dev/loop0': Invalid argument
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
bash-4.2# dmesg -c
[28233.682515] REISERFS warning (device loop0): sh-2021 reiserfs_fill_super: can not find reiserfs on loop0
[28233.682640] EXT3-fs (loop0): error: can't find ext3 filesystem on dev loop0.
[28233.682679] EXT2-fs (loop0): error: can't find an ext2 filesystem on dev loop0.
[28233.682715] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[28233.682772] FAT-fs (loop0): invalid media value (0x00)
[28233.682775] FAT-fs (loop0): Can't find a valid FAT filesystem
[28233.682810] FAT-fs (loop0): invalid media value (0x00)
[28233.682813] FAT-fs (loop0): Can't find a valid FAT filesystem
[28233.683509] ISOFS: Unable to identify CD-ROM format.

I want to turn this image into something I can burn on a CD-ROM so that I can stick it in an old computer and boot from the CD

Any idea how I can do it?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.