Look for MiSTer.ini on USB device?

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
callanabrown
Posts: 89
Joined: Thu Jul 30, 2020 1:05 pm
Has thanked: 14 times
Been thanked: 27 times

Look for MiSTer.ini on USB device?

Unread post by callanabrown »

Hi!

I'm wondering if it's possible to point MiSTer to look for its config file on removable drive (that's not the microSD).

I see that the ini files are named in cfg.cpp, if I were to modify that to a path, would it work? Would there be issues making sure the (USB drive for example) was mounted before finding it?

Thanks
keilmillerjr
Posts: 49
Joined: Wed Mar 24, 2021 12:52 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Look for MiSTer.ini on USB device?

Unread post by keilmillerjr »

You could use a symlink with unix based systems, but I don't think it works with exfat. I don't understand why mister uses exfat.
User avatar
darksakul
Posts: 353
Joined: Mon May 25, 2020 4:34 pm
Has thanked: 397 times
Been thanked: 73 times

Re: Look for MiSTer.ini on USB device?

Unread post by darksakul »

keilmillerjr wrote: Mon Apr 12, 2021 4:46 am I don't understand why mister uses exfat.
Because MiSTer still uses Linux at the back end.
You don't have to use Exfat, you can still use fat32 and NTFS .... BUT

Exfat is preferred for external drives as Fat32 is limited to 4GB for max file size, which some VHD files already surpassed.
Also Exfat lacks all the driver overhead NTFS has and is more compatible.
It is my great regret that we live in an age that is proud of machines that think and suspicious of people who try to.
keilmillerjr
Posts: 49
Joined: Wed Mar 24, 2021 12:52 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Look for MiSTer.ini on USB device?

Unread post by keilmillerjr »

darksakul wrote: Mon Apr 12, 2021 9:18 pm
keilmillerjr wrote: Mon Apr 12, 2021 4:46 am I don't understand why mister uses exfat.
Because MiSTer still uses Linux at the back end.
You don't have to use Exfat, you can still use fat32 and NTFS .... BUT

Exfat is preferred for external drives as Fat32 is limited to 4GB for max file size, which some VHD files already surpassed.
Also Exfat lacks all the driver overhead NTFS has and is more compatible.
Why not ext4?
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Look for MiSTer.ini on USB device?

Unread post by jca »

keilmillerjr wrote: Wed Apr 14, 2021 11:39 am Why not ext4?
Case sensitive, like NTFS.
Bas
Top Contributor
Posts: 622
Joined: Fri Jan 22, 2021 4:36 pm
Has thanked: 80 times
Been thanked: 324 times

Re: Look for MiSTer.ini on USB device?

Unread post by Bas »

EXT4 is difficult (not impossible) to use on Windows and Mac. ExFAT is the most viable common denominator.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Look for MiSTer.ini on USB device?

Unread post by jca »

When I started to use USB I first used ext4 as it is Linux native. I bumped into the case sensitivity problem which is not a major issue: just rename whatever causes the problem with the correct capitalization. As my PC is windows and wanted to make backups I had to use a program which allows to read ext4 (no write feature) and is very slow. After that I used NTFS which is a much better filesystem that the FAT style. I discovered that NTFS is case sensitive which is ignored by Windows. At one point I ended up with 2 directories with the "same" name, Windows sees the 2 directories but it is a kind of optical illusion: if you change directory to either one you always end up in the same one. Not knowing that I deleted the unwanted directory and Windows deleted the other one, luckily I had a backup. Now I use only exFAT, no more headache.
keilmillerjr
Posts: 49
Joined: Wed Mar 24, 2021 12:52 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Look for MiSTer.ini on USB device?

Unread post by keilmillerjr »

jca wrote: Wed Apr 14, 2021 12:50 pm
keilmillerjr wrote: Wed Apr 14, 2021 11:39 am Why not ext4?
Case sensitive, like NTFS.
Why is that a bad thing?
Bas wrote: Wed Apr 14, 2021 12:50 pm EXT4 is difficult (not impossible) to use on Windows and Mac. ExFAT is the most viable common denominator.
I have used MacFuse for many years on my mac, and forgot I even had it installed. It just works for multiple file systems. It is not difficult on the mac. After a quick google about ext and windows (which I ditched after v3.1), I see your point. Totally lost with windows solutions. There are many of them, and not full featured and seamless.

Does windows compatibility really matter? We can configure on the device or remotely using ssh, and transfer using usb or scp. Raspbian uses ext4. I never removed my sd card when I had a raspberry pi.

I am just curious. Trying to familiarize myself with the MiSTer project.
zakk4223
Posts: 289
Joined: Sun May 24, 2020 10:55 pm
Been thanked: 120 times

Re: Look for MiSTer.ini on USB device?

Unread post by zakk4223 »

Plenty of people remove their MiSTer sd card to load roms. I don't because I'm lazy, but it's always faster to move the sd card over to do large copies, and it's something the project wants to support without requiring people to install file system drivers.
User avatar
amstan
Posts: 56
Joined: Sat Feb 12, 2022 8:08 am
Location: Mountain View, California
Has thanked: 5 times
Been thanked: 26 times
Contact:

Re: Look for MiSTer.ini on USB device?

Unread post by amstan »

jca wrote: Wed Apr 14, 2021 12:50 pm
keilmillerjr wrote: Wed Apr 14, 2021 11:39 am Why not ext4?
Case sensitive, like NTFS.
That's not really a problem anymore.

https://www.collabora.com/news-and-blog ... e-in-ext4/
Post Reply