<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Filesystem case sensitivity and Linux</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Filesystem%2520case%2520sensitivity%2520and%2520Linux/</link><description>Recent changes to Filesystem case sensitivity and Linux</description><atom:link href="https://sourceforge.net/p/sanandreasunity/wiki/Filesystem%20case%20sensitivity%20and%20Linux/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 24 Aug 2023 01:36:52 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sanandreasunity/wiki/Filesystem%20case%20sensitivity%20and%20Linux/feed" rel="self" type="application/rss+xml"/><item><title>Filesystem case sensitivity and Linux modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Filesystem%2520case%2520sensitivity%2520and%2520Linux/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: this document applies only to versions up to 3.1. Newer versions can work on case-sensitive filesystems.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The game is tested on Ubuntu 16.04 and 18.04.&lt;/p&gt;
&lt;p&gt;As on any other platform, the Windows version of GTA is used. This creates some problems, because filesystems on Windows are case-insensitive, and GTA data files reference each other with incorrect names (case does not match). To overcome this, you can place GTA installation in FAT filesystem, which is also case-insensitive.&lt;/p&gt;
&lt;p&gt;The easiest thing to do would be to copy GTA to FAT partition, if you have any. In case you don't have, or you want to use ramdisk, then you can create FAT filesystem in an image file, as described below.&lt;/p&gt;
&lt;h2 id="solution-1"&gt;Solution 1&lt;/h2&gt;
&lt;p&gt;Copy GTA installation to FAT partition.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;/p&gt;
&lt;h2 id="solution-2-creating-fat-image-file-and-optionally-using-ramdisk"&gt;Solution 2 - creating FAT image file, and optionally using ramdisk&lt;/h2&gt;
&lt;p&gt;Decide how much space you need for image. If you are not using audio, then the game size will be around 1.6 GB. But, make sure that you have a little more than that, so that filesystem can be placed inside. If you are using audio, then size will be around 5 GB.&lt;/p&gt;
&lt;p&gt;I won't use audio, so the image size will be 1.7 GB.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create image file:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;fallocate -l 1.7G gtasafat.img&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Format image file as FAT:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;mkfs.vfat -F 32 gtasafat.img&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create mount point:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;mkdir gtasafat&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mount image file (root privileges required):&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;sudo mount -o loop,gid=$(id -g),uid=$(id -u) gtasafat.img gtasafat/&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Copy GTA installation to mount point.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;br/&gt;&lt;br/&gt;
Image file is now ready.&lt;/p&gt;
&lt;p&gt;You would probably want to add new entry to &lt;code&gt;/etc/fstab&lt;/code&gt; so that image is mounted on system boot.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;If you skipped copying audio in order to reduce image size, now you can bind original audio folder to audio folder in mounted image. This is possible because audio files are not referenced from other GTA files, and therefore, there is no mismatched case.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;mkdir gtasafat/audio
sudo mount -o bind "/path_to_original_gta/audio" gtasafat/audio
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h4 id="using-ramdisk"&gt;Using ramdisk&lt;/h4&gt;
&lt;p&gt;If you have enough RAM, you can copy image file to &lt;code&gt;/dev/shm&lt;/code&gt; folder, which functions as a ramdisk. This way the game will load assets faster.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:52 -0000</pubDate><guid>https://sourceforge.net61d4e08ebfc427152190cdd064475fc9b45b4cd8</guid></item></channel></rss>