[New Feature] Add an option to forbid writing on the floppy

User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 94 times

[New Feature] Add an option to forbid writing on the floppy

Unread post by wark91 »

Hi,

It will be great to add an option to forbid write on a floppy disk image on Ao486 core.
It will limit error if we don't want to write on floppy disk image.

Thanks !
deepthaw
Posts: 55
Joined: Wed May 27, 2020 3:45 am
Has thanked: 1 time
Been thanked: 10 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by deepthaw »

For now does marking it read only in the file system not work?
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 94 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by wark91 »

I didn't think about that ! I will try out. Thanks.
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 94 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by wark91 »

I tried to change the rights of the file on the linux shell of the mister.
The command chmod doesn't change the rights on a file on usb drive or on the sdcard ...
So we can't able to do the test
User avatar
pgimeno
Top Contributor
Posts: 677
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 256 times
Been thanked: 208 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by pgimeno »

wark91 wrote: Mon Sep 28, 2020 4:21 pm I tried to change the rights of the file on the linux shell of the mister.
The command chmod doesn't change the rights on a file on usb drive or on the sdcard ...
Works for me.

Code: Select all

$ ls -l /mnt/mister/games/ao486/floppy.img
-rwxr-xr-x 1 root root 1474560 Sep  3 19:20 /mnt/mister/games/ao486/floppy.img
$ chmod -w /mnt/mister/games/ao486/floppy.img
$ ls -l /mnt/mister/games/ao486/floppy.img
-r-xr-xr-x 1 root root 1474560 Sep  3 19:20 /mnt/mister/games/ao486/floppy.img
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 94 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by wark91 »

thank you @pgimeno. I need to check again.
chimaera
Posts: 92
Joined: Sat Aug 01, 2020 10:53 am
Has thanked: 12 times
Been thanked: 17 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by chimaera »

I have my floppy image zipped, with exception of disks that I have to be able to write to.
Zipped floppy images are cant be written to.
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 94 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by wark91 »

Thank you @Chimaera for this tips !
HMPoweredMan
Posts: 38
Joined: Fri Sep 11, 2020 7:37 pm
Been thanked: 2 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by HMPoweredMan »

Looks like Sorgelig delivered this one in the latest update.
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 94 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by wark91 »

The readonly is just on the cdrom image. I didn't see any option for floppy side.
Thanks
User avatar
Caldor
Top Contributor
Posts: 930
Joined: Sat Jul 25, 2020 11:20 am
Has thanked: 112 times
Been thanked: 111 times

Re: [New Feature] Add an option to forbid writing on the floppy

Unread post by Caldor »

Yeah, would be nice with this option for floppy disks as well.
Post Reply