1GB SD cards which FAT Filesystem?

Discuss one of the most feature filled GameCube applications here :)
Post Reply
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Tue Feb 22, 2011 8:59 pm

For emu_kidid only no one else answer.
Do do 1GB sdcard's need to be formatted to FAT32 for use with swiss the same as a HDD?
or can FAT "aka FAT16?" be used to retain file space? you lose a few MB when formatting to FAT32 that's all.
User avatar
Ashen
Posts: 994
Joined: Tue Nov 16, 2010 3:08 pm

Re: 1GB SD cards which FAT Filesystem?

Post by Ashen » Wed Feb 23, 2011 4:29 am

wouldn't it have been a bit more prudent to send him a PM?
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

Re: 1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Wed Feb 23, 2011 4:39 am

I want over users to see his reply as they may also be using 1GB sdcards to store their Homebrew dol's , emulator's etc, i'm not talking about the actual launching of GC games from a 1GB sdcard with swiss :lol:

I believe all past Homebrew used only FAT when used with a sdcard, none of them supported FAT32 irc or it was recommened to only use FAT.

Using FAT limits you to only using 0-4GB sdcard's?, yet sd-boot and swiss both support
SDHC via FAT32?
so they have support for both FAT versions?

SDSC: 1MB to 4 GB = FAT, [2GB, 4GB with 64KB clusters (not widely supported)]
SDHC: 4GB to 32GB = FAT32
SDXC: 32GB to 2TB = FAT32

The FAT file system does not contain mechanisms which prevent newly written files from becoming scattered across the partition.Other file systems, like HPFS, use free space bitmaps that indicate used and available clusters, which could then be quickly looked up in order to find free contiguous areas (improved in exFAT). Another solution is the linkage of all free clusters into one or more lists (as is done in Unix file systems). Instead, the FAT has to be scanned as an array to find free clusters, which can lead to performance penalties with large disks.

In fact, computing free disk space on FAT is one of the most resource intensive operations, as it requires reading the entire FAT linearly. A possible justification suggested by Microsoft's Raymond Chen for limiting the maximum size of FAT32 partitions created on Windows was the time required to perform a "DIR" operation, which always displays the free disk space as the last line. Displaying this line took longer and longer as the number of clusters increased.

The High Performance File System (HPFS) divides disk space into bands, which have their own free space bitmap, where multiple files opened for simultaneous write could be expanded separately.

Some of the perceived problems with fragmentation resulted from operating system and hardware limitations.

The single-tasking DOS and the traditionally single-tasking PC hard disk architecture (only 1 outstanding input/output request at a time, no DMA transfers) did not contain mechanisms which could alleviate fragmentation by asynchronously prefetching next data while the application was processing the previous chunks.

Similarly, write-behind caching was often not enabled by default with Microsoft software (if present) given the problem of data loss in case of a crash, made easier by the lack of hardware protection between applications and the system.

Modern operating systems have introduced these optimizations to FAT partitions, but optimizations can still produce unwanted artifacts in case of a system crash. A Windows NT system will allocate space to files on FAT in advance, selecting large contiguous areas, but in case of a crash, files which were being appended will appear larger than they were ever written into, with dozens of random kilobytes at the end.

With the large cluster sizes, 16 or 32K, forced by larger FAT32 partitions, the external fragmentation becomes somewhat less significant, and internal fragmentation, i.e. disk space waste (since files are rarely exact multiples of cluster size), starts to be a problem as well, especially when there are a great many small files.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: 1GB SD cards which FAT Filesystem?

Post by emu_kidid » Wed Feb 23, 2011 5:30 am

Either one is fine.
Image
doktor_krotch
Posts: 99
Joined: Wed Mar 31, 2010 2:05 am

Re: 1GB SD cards which FAT Filesystem?

Post by doktor_krotch » Wed Feb 23, 2011 5:31 am

OMG GAIZE!
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

Re: 1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Wed Feb 23, 2011 5:31 am

Thanks but what about other homebrew ie: emulator's do they support both also?
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: 1GB SD cards which FAT Filesystem?

Post by emu_kidid » Wed Feb 23, 2011 5:37 am

yes, I'm just using libOGC, should be fine.
Image
doktor_krotch
Posts: 99
Joined: Wed Mar 31, 2010 2:05 am

Re: 1GB SD cards which FAT Filesystem?

Post by doktor_krotch » Wed Feb 23, 2011 5:40 am

Shit, I'm so glad no one else answered.
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

Re: 1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Wed Feb 23, 2011 5:44 am

doktor_krotch wrote:OMG GAIZE!
doktor_krotch wrote:Shit, I'm so glad no one else answered.
Sarcasm radar off, today, sorry.
--------
Thanks, is there anyway to reduce fragmentation made by newly saved files? every save state I make in genplusgx comes out fragmented on my sdcard :-( I think you said it had something to do with either the sector or cluster size? is there anyway I can check the specs of my card?
Last edited by kevstah2004 on Wed Feb 23, 2011 5:49 am, edited 3 times in total.
doktor_krotch
Posts: 99
Joined: Wed Mar 31, 2010 2:05 am

Re: 1GB SD cards which FAT Filesystem?

Post by doktor_krotch » Wed Feb 23, 2011 5:48 am

I assume this question is open to the floor, so if you're running windows you can find it in the system information tool under Components > Storage > Disks > Bytes/sector.

EDIT - I swear this is the only thing that this tool has ever been useful for. Every time I reinstall I have to associate nfo files with notepad because this thing doesn't know what to do with them.
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

Re: 1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Wed Feb 23, 2011 5:55 am

I've used it before I think, I stated the info on tehskeen during the sd-boot days using a combo of speccy and winhex irc.
User avatar
liquitt
Posts: 1810
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: 1GB SD cards which FAT Filesystem?

Post by liquitt » Wed Feb 23, 2011 6:29 am

doktor_krotch wrote:Shit, I'm so glad no one else answered.
hahaha gold!!!!! :D
seriously kev, chill
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

Re: 1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Wed Feb 23, 2011 7:27 am

liquitt wrote:
doktor_krotch wrote:Shit, I'm so glad no one else answered.
hahaha gold!!!!! :D
seriously kev, chill
With what? :roll: I take his dev word before any fools here since he actually made swiss :P
kevstah2004
Posts: 308
Joined: Wed Mar 31, 2010 1:07 pm
Location: UK, Hull

Re: 1GB SD cards which FAT Filesystem?

Post by kevstah2004 » Wed Feb 23, 2011 11:15 am

I found the cause, I think it must of been when I tried to load the SDML sdgecko, from the IDE EXI option in Swiss using Slot A, I had the IDE EXI in slot B, instead of loading the IDE EXI from Slot B I chose slot A :oops:

Image

Now my 1GB SDcard is dead, say your goodbye's to him please folks
2007-2011 - He was only 4 years old :cry:

Time for me to get a proper SanDisk.
User avatar
tglaria
Posts: 62
Joined: Sat Apr 10, 2010 11:58 pm

Re: 1GB SD cards which FAT Filesystem?

Post by tglaria » Wed Feb 23, 2011 4:25 pm

doktor_krotch wrote:Shit, I'm so glad no one else answered.
Image

^_^
User avatar
liquitt
Posts: 1810
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: 1GB SD cards which FAT Filesystem?

Post by liquitt » Wed Feb 23, 2011 8:07 pm

kevstah2004 wrote: With what? :roll: I take his dev word before any fools here since he actually made swiss :P
that's rude!
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
Post Reply