how can we use mtools for creating and browsing .dsk msx files, and managing files into there?

بواسطة nitrofurano

Champion (305)

صورة nitrofurano

13-05-2016, 22:26

I'm now seeing this: http://reboot.pro/topic/14354-buidlingmodifying-floppy-image...

But i'm struggling on using it particularly on the msx situation - the idea would be, from bash scripts, to create an imagedisk and copy files into it (btw, i think that using commands like mount or dd in that specific case isn’t a choice, also because i don’t want to use sudo or mount/umount anything)

Thanks in advance! :)

Login أوregister لوضع تعليقاتك

بواسطة Manuel

Ascended (19678)

صورة Manuel

13-05-2016, 23:32

Did you reed the manpage of mtools? Search for 'image'. Or use wrdsk/rddsk Tongue

بواسطة nitrofurano

Champion (305)

صورة nitrofurano

13-05-2016, 23:47

yes, i'm reading all manpages from mtools-related commands, and still struggling... - and what is wrdsk/rddsk?

بواسطة meits

Scribe (6572)

صورة meits

14-05-2016, 00:13

write disk / read disk?
some command line languages have quite obvious syntaxes... just not always as obvious as msx dos Wink

بواسطة Manuel

Ascended (19678)

صورة Manuel

14-05-2016, 15:51

The source code is in the fMSX code: http://fms.komkon.org/fMSX/src/

Also: what problem do you have with mtools?

بواسطة nitrofurano

Champion (305)

صورة nitrofurano

17-05-2016, 00:54

Manuel wrote:

Also: what problem do you have with mtools?

i'm just struggling in very simple stuff, like creating imagedisks, and copying files into that
btw, i compiled now, seems really easy to use! Smile

بواسطة nitrofurano

Champion (305)

صورة nitrofurano

01-10-2020, 15:21

finally i got how it works:

rm autoexec.bas disk1.dsk
touch autoexec.bas
echo "10 screen 1:color 5,10,15:cls" >> autoexec.bas
echo "20 print \"Hello world!\"" >> autoexec.bas
sed 's/$'"/`echo \\\r`/" autoexec.bas > autoexe_.bas
rm autoexec.bas
mv autoexe_.bas autoexec.bas
dd if=/dev/zero of=disk1.dsk count=720 bs=1k
mkfs.msdos disk1.dsk 
mcopy -i disk1.dsk autoexec.bas ::/
mame nms8280 -video soft -ui_active -bp ~/.mame/roms -resolution0 1280x720 -aspect 1000:750 -skip_gameinfo -nowindow -flop1 disk1.dsk

بواسطة pgimeno

Champion (328)

صورة pgimeno

01-10-2020, 16:42

Sorry that I didn't see this topic earlier. You can use mformat instead of mkfs.msdos, it supports more formats (like single-sided 180K disks). This command creates and formats the image (you don't need dd):

mformat -i imagefile -C -f 720 ::