Hi All

A few weeks ago I used qemu and FreeDOS 1.3rc5 to fdisk and format 2
partitions on a USB3 mounted 128GB ssd.

sudo fdisk -l /dev/sdc
Disk /dev/sdc: 111.79 GiB, 120034121728 bytes, 234441644 sectors
Disk model:  SV300S37A12
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xa641679a

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sdc1  *         63   2104514   2104452     1G  6 FAT16
/dev/sdc2       2120580 234436544 232315965 110.8G  c W95 FAT32 (LBA)

blkid
/dev/sdc1: SEC_TYPE="msdos" LABEL_FATBOOT="FREEDOS" LABEL="FREEDOS"
UUID="2F1C-12E7" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="a641679a-01"
/dev/sdc2: LABEL_FATBOOT="FREEDOSDATA" LABEL="FREEDOSDATA" UUID="3764-12E8"
BLOCK_SIZE="512" TYPE="vfat" PARTUUID="a641679a-02"

It booted fine after installing rc5.

I didn't really test anything other than confirming rw access to C: and D:
and ro the cdrom after booting.

My concerns then were mounting both partitions rw in linux and booting
FreeDOS 1.3rc5 in qemu with a graphics screen.

When I saw that FreeDOS 1.3 final was available I immediately installed it
from the live cd.

First install completed but was unusable, second install was fine.

Before each install, format C: /U /Q /S from FD13LIVE.iso

FDinstall.sh
#cd /home/bob/FreeDOS/QEMU_FreeDOS
sudo qemu-system-i386 -name FreeDOS -boot d -drive
file=/dev/disk/by-id/wwn-0x504b454e574f4f44,format=raw,index=0,media=disk
-cdrom FD13LIVE.iso -display curses

FD.sh
#cd /home/bob/FreeDOS/QEMU_FreeDOS
sudo qemu-system-x86_64 -name FreeDOS -boot c \
-drive
file=/dev/disk/by-id/wwn-0x504b454e574f4f44,format=raw,index=0,media=disk \
-drive
file=/dev/disk/by-id/wwn-0x504b454e574f4f44-part2,format=raw,index=1,media=disk
\
-usb -device usb-tablet \
-display curses
#SUCCESS all 5 modes boot FreeDOS 1.3 final

So far, I have succeeded with graphics, but not with mounting C: rw in
linux.

FDSU.sh
#su -
#cd /home/bob/FreeDOS/QEMU_FreeDOS
qemu-system-x86_64 -name FreeDOS -boot c \
-drive
file=/dev/disk/by-id/wwn-0x504b454e574f4f44,format=raw,index=0,media=disk \
-drive
file=/dev/disk/by-id/wwn-0x504b454e574f4f44-part2,format=raw,index=1,media=disk
\
-usb -device usb-tablet \
-device VGA,edid=on,xres=1280,yres=1024
#SUCCESS all 5 modes boot FreeDOS 1.3 final

Note: /dev/disk/by-id/wwn* is the same, regardless of bus or port.

I'm on a 4K tv, so I have to stretch the qemu window and View|Fit to use it.

I realise it is not recommended to run qemu as root, but it was necessary
in order to use physical partitions.

The nice thing is that I can move the USB3 ssd to other computers.

One more thing, openSUSE requires the drive to be hotplugged for qemu to
find it.
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to