loop-device ...complexity ?

This amazing little program on RPi:Linux emulates an XT running DOS. /home/pi/.8086tiny/ contains ...

-rw-r--r-- 1 pi pi 7665 Jul 6 15:26 bios

-rw-r--r-- 1 pi pi 1474560 Feb 20 2014 fd.img

-rw-r--r-- 1 pi pi 20971520 Jul 24 15:09 hd.img

So that seems to be: DOS:BIOS , fd0 & C:

It's staggering to see the old DOS-fonts, and it tests well on some old DOS-jewels, but I'm failing to install and run FPC.

It would help if I could read/examine the while trying to install FPC under DOS. I suspect this could be done via a like the author's: /usr/bin/8086tiny-mount #!/bin/bash MOUNT_POINT="/mnt/8086tiny" LOOP_DEV="/dev/loop0" SHARE_PATH="/usr/share/8086tiny" HOME_PATH="$HOME/.8086tiny" if ! [ -d $HOME_PATH ] ; then mkdir $HOME_PATH fi if ! [ -f $HOME_PATH/hd.img ] ; then tar -xvf $SHARE_PATH/hd.img.tar.gz -C $HOME_PATH fi cd $HOME_PATH pwd sudo losetup $LOOP_DEV ./hd.img -o $((63 * 512)) sudo file -s $LOOP_DEV sudo mkdir $MOUNT_POINT sudo chown -R pi:pi $MOUNT_POINT sudo mount $LOOP_DEV $MOUNT_POINT echo $MOUNT_POINT ------------and ---------- /usr/bin/8086tiny-unmount #!/bin/bash MOUNT_POINT="/mnt/8086tiny" LOOP_DEV="/dev/loop0" sudo umount $MOUNT_POINT sudo rmdir $MOUNT_POINT sudo losetup -d $LOOP_DEV

-------------------------

A pointer to a good write-up on loop-devices would help. preferably not at a virtual level; at the level of bytes and asm-code. I don't want to hear that "you can see a bird flying on the screen", when I know the screen is just phosphor dots.

Reply to
noSpam
Loading thread data ...

There exists a version of losetup that supports a -P option that will scan the partition table and mount a specific partition from a harddisk image. That removes some of the magic handling above but unfortunately it is not very common and appears to be not available under Debian.

Reply to
Rob

Not on Debian and not on a Pi, I use kpartx, it seems to be available

Reply to
Andy Burns

Mint supports this.

Reply to
Wayne Chirnside

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.