Content deleted Content added
m →Development history and kernel/distribution support: removed the part "created by two schoolchildren" which sounded somewhat condescending |
m HTTP to HTTPS for SourceForge |
||
(28 intermediate revisions by 23 users not shown) | |||
Line 1:
{{Short description|Widely used Linux filesystem format}}
[[Linux]] has several [[filesystem]] drivers for the [[File Allocation Table]] (FAT) filesystem format. These are commonly known by the names used in the <
==
Most of the major Linux distributions, including RedHat, SuSE, and Debian, do not employ ''{{Not a typo|umsdos}}'' to permit installation of Linux on a FAT disc volume. A few distributions do, however.<ref name="Smith2">{{cite book |title=The multi-boot configuration handbook |series=Handbook Series |author-first=Roderick W. |author-last=Smith |publisher=[[Que Publishing]] |year=2000 |isbn=978-0-7897-2283-6 |pages=[https://archive.org/details/isbn_9780789722836/page/256 256,341–342] |url=https://archive.org/details/isbn_9780789722836/page/256 }}</ref> These include distributions such as Phat Linux, which installs in <
The UMSDOS project was started in 1992 by Jacques Gelinas and made available to the net in January 1994 as a patch. It was included in the standard distribution starting with kernel 1.1.36.{{Citation needed|date=September 2009}} UMSDOS was removed from the Linux 2.6.11 kernel for lack of maintenance.<ref>{{
Earlier Linux distributions which used UMSDOS are [[MuLinux]],<ref>[http://mulinux.narod.ru/en_index.html MuLinux Project]</ref> Monkey Linux<ref>[http://projectdevolve.tripod.com/text/descript.htm Monkey Linux Explained]</ref> and Winlinux 2000.<ref>[
== Feature comparison ==
{{anchor|Differences, advantages, and disadvantages}}
All of the Linux filesystem drivers support all three FAT types, namely [[FAT12]], [[FAT16]] and [[FAT32]]. Where they differ is in the provision of support for [[long filename]]s, beyond the [[8.3 filename]] structure of the original FAT filesystem format, and in the provision of Unix file semantics that do not exist as standard in the FAT filesystem format such as [[file permissions]].<ref name="StanfieldSmith"/> The filesystem drivers are mutually exclusive. Only one can be used to mount any given disk volume at any given time. Thus the choice among them is determined by what long filenames and Unix semantics they support and what use one wants to make of the disk volume.<ref name="Smith1">{{cite book |title=Linux in a Windows world |author=Roderick W. Smith |publisher=[[O'Reilly Media, Inc.]] |year=2005 |isbn=0-596-00758-2 |pages=449}}</ref>
=== {{Not a typo|msdos}} ===
The ''{{Not a typo|msdos}}'' filesystem driver provides no extra Unix file semantics and no long filename support. If a FAT disk filesystem is mounted using this driver, only 8.3 filenames will be visible, no long filenames will be accessible, nor will any long filename data structures of any kind on the disk volume be maintained. The ''{{Not a typo|vfat}}'' filesystem driver provides long filename support using the same disk data structures that [[Microsoft Windows]] uses for [[VFAT]] long filename support on FAT format volumes, but it does not support any extra Unix file semantics. The ''{{Not a typo|umsdos}}'' filesystem driver provides long filename support, and extra Unix file semantics. However, it does so using on-disk data structures that are not recognized by any filesystem drivers for any operating systems other than Linux.<ref name="StanfieldSmith"/><ref name="Ward"/><ref name="Smith1"/><ref name="Negus">{{cite book |title=Linux bible: boot up to Ubuntu, Fedora, KNOPPIX, Debian, SUSE, and 11 other distributions |series=Bible Series |author-first=Christopher |author-last=Negus |publisher=[[John Wiley and Sons]] |year=2007 |isbn=
=== {{Not a typo|umsdos}} ===
The key advantage to ''{{Not a typo|umsdos}}'' out of the three is that it provides full Unix file semantics. Therefore, it can be used in situations where it is desirable to install Linux on and run it from a FAT disk volume, which require such semantics to be available. However, Linux installed on and running from such a disk volume is slower than Linux installed on and running from a disk volume formatted with, for example, the [[ext2]] filesystem format.<ref name="StanfieldSmith"/><ref name="StroberElling">{{cite book |title=Linux, unleashing the workstation in your PC |series=The Complete Linux Kit, Rainer Maurer |author-first1=Stefan |author-last1=Strobel |author-first2=Volker |author-last2=Elling |edition=3rd |publisher=Springer |year=1997 |isbn=978-0-387-94880-5 |pages=43}}</ref> Further, unless a utility program is regularly run every time that one switches from running Windows to running Linux, certain changes made to files and directories on the disk by Windows will cause error messages about inaccessible files in Linux.<ref name="McCune">{{cite book |title=Integrating Linux and Windows |series=Open source technology series |author-first=Mike |author-last=McCune |publisher=[[Prentice Hall PTR]] |year=2001 |isbn=978-0-13-030670-8 |pages=[https://archive.org/details/integratinglinux0000mccu/page/7 7–9] |url=https://archive.org/details/integratinglinux0000mccu/page/7 }}</ref>
=== {{Not a typo|vfat}} ===
''{{Not a typo|vfat}}'',
{| class="wikitable sortable"
|-
! FS-Driver !!
|-
|
|-
|
|-
|
|}
== Commonalities ==
As mentioned previously, all of the Linux filesystem drivers support all of the three File Allocation Table sizes, 12-bit, 16-bit, and 32-bit. Other common features that they all support are various Linux mounting options (specified with the <
;<
;<
;<
== {{anchor|--LINUX-.---}}Data structures of umsdos ==▼
The ''umsdos'' FAT filesystem driver stores all of the extra information relating to Unix file semantics in what, to another FAT filesystem driver, appears to be just a normal file in each directory and subdirectory, named <tt>--LINUX-.---</tt>.<ref name="StanfieldSmith"/><ref name="Smith1"/><ref name="McCune"/><ref name="Smith2"/><ref name="Danesh"/>▼
In the absence of this file in any given directory, and thus by default, the ''umsdos'' filesystem driver provides the same semantics as the ''msdos'' filesystem driver does for the directory: only 8.3 filenames and no extra Unix file semantics. To enable the ''umsdos'' driver's extra abilities, it is necessary to create that file in the directory and synchronize its internal data with the normal FAT data for any existing entries already in the directory. This is done with a tool called <tt>umssync</tt>.<ref name="StanfieldSmith"/><ref name="Smith1"/><ref name="McCune"/>▼
== {{Not a typo|umsdos}} ==
This is the utility program that is run, across every directory on the disc volume, every time that one switches from running Windows to running Linux, in order for the ''umsdos'' filesystem driver to incorporate any changes made to files and directories by Windows into its private data structures in its <tt>--LINUX-.---</tt> file. By default, the <tt>umssync</tt> tool creates <tt>--LINUX-.---</tt> files in directories if they do not already exist, resulting in such a file in every directory in the disc volume. When switching between Windows and Linux this behaviour is not often considered desirable. Therefore, the normal mode of operation when invoking <tt>umssync</tt> after switching from Windows to Linux (which is usually done by running the tool at Linux boot time from a startup script) is to employ the <tt>-c</tt> option to the command, which prevents the creation of any new <tt>--LINUX-.---</tt> files in directories that do not already possess them.<ref name="StanfieldSmith"/><ref name="Smith1"/><ref name="McCune"/>▼
▲=== {{anchor|--LINUX-.---}}{{anchor|Data structures of umsdos}} Data structure ===
== Installing Linux on and booting it from FAT volumes using umsdos ==▼
▲The ''{{Not a typo|umsdos}}'' FAT filesystem driver stores all of the extra information relating to Unix file semantics in what, to another FAT filesystem driver, appears to be just a normal file in each directory and subdirectory, named <
As mentioned, ''umsdos'' permits installing Linux on, and then bootstrapping and running it from, a FAT format disc volume. The advantage of this is that it permits the use of Linux on a computer where [[DOS]] is already installed, without requiring that the hard disc be [[partition (computing)|repartitioned]]. Linux is not bootstrapped directly from a [[Volume Boot Record]] in such a scenario. Instead DOS is first bootstrapped, and [[loadlin]] or linld is used to then bootstrap Linux from DOS.<ref name="McCune"/>▼
▲In the absence of this file in any given directory, and thus by default, the ''{{Not a typo|umsdos}}'' filesystem driver provides the same semantics as the ''{{Not a typo|msdos}}'' filesystem driver does for the directory: only 8.3 filenames and no extra Unix file semantics. To enable the ''{{Not a typo|umsdos}}'' driver's extra abilities, it is necessary to create that file in the directory and synchronize its internal data with the normal FAT data for any existing entries already in the directory. This is done with a tool called <
The convention for such an installation is for the Linux [[root directory]] to be a subdirectory of the actual root directory of the DOS [[system partition and boot partition|boot volume]], e.g. <tt>C:\LINUX</tt> . The various Linux top-level directories are thus, to DOS, directories such as <tt>C:\LINUX\ETC</tt> (for <tt>/etc</tt>), <tt>C:\LINUX\BIN</tt> (for <tt>/bin</tt>), <tt>C:\LINUX\LIB</tt> (for <tt>/lib</tt>), and so forth. The ''umsdos'' filesystem driver automatically prepends the <tt>C:\LINUX\</tt> to all pathnames. The ___location of the Linux root directory is supplied to the ''umsdos'' filesystem driver in the first place via an option to the <tt>loadlin</tt> command. So, for example, for the aforegiven root directory <tt>loadlin</tt> would be invoked with a command line such as <source enclose=none>loadlin c:\linux\boot\vmlinuz rw root=c:\linux</source> .<ref name="McCune"/><ref name="Danesh">{{cite book |title=Making Linux work: essential tips & techniques |series=1001 Tips Series |author-first=Arman |author-last=Danesh |publisher=Cengage Learning |year=2002 |isbn= 978-1-884133-78-7 |pages=19}}</ref>▼
▲This is the utility program that is run, across every directory on the disc volume, every time that one switches from running Windows to running Linux, in order for the ''{{Not a typo|umsdos}}'' filesystem driver to incorporate any changes made to files and directories by Windows into its private data structures in its <
The installation of Linux into such a directory in the first place simply involves unpacking files from an archive into that directory and its subdirectories. Such an installation also generally requires the use of a [[swap file]] rather than a [[swap partition]] for Linux, however this is related to the desire not to repartition the hard disc and unrelated to the ''umsdos'' filesystem driver per se.<ref name="McCune"/>▼
▲=== Installing Linux on FAT {{anchor| on and booting it from FAT volumes using umsdos}} ===
▲As mentioned, ''{{Not a typo|umsdos}}'' permits installing Linux on, and then bootstrapping and running it from, a FAT format disc volume. The advantage of this is that it permits the use of Linux on a computer where [[DOS]] is already installed, without requiring that the hard disc be [[partition (computing)|repartitioned]]. Linux is not bootstrapped directly from a [[Volume Boot Record]] in such a scenario. Instead DOS is first bootstrapped, and [[loadlin]] or {{Not a typo|linld}} is used to then bootstrap Linux from DOS.<ref name="McCune"/>
▲Most of the major Linux distributions, including RedHat, SuSE, and Debian, do not employ ''umsdos'' to permit installation of Linux on a FAT disc volume. A few distributions do, however.<ref name="Smith2">{{cite book |title=The multi-boot configuration handbook |series=Handbook Series |author-first=Roderick W. |author-last=Smith |publisher=[[Que Publishing]] |year=2000 |isbn=978-0-7897-2283-6 |pages=256,341–342}}</ref> These include distributions such as Phat Linux, which installs in <tt>C:\PHAT</tt> on DOS by unpacking a [[ZIP file]] and is booted by running a [[COMMAND.COM]] script named <tt>LINUX.BAT</tt>,<ref name="McCune"/> and [[ZipSlack]]{{Citation needed|date=September 2009}}.
▲The convention for such an installation is for the Linux [[root directory]] to be a subdirectory of the
▲The UMSDOS project was started in 1992 by Jacques Gelinas and made available to the net in January 1994 as a patch. It was included in the standard distribution starting with kernel 1.1.36.{{Citation needed|date=September 2009}} UMSDOS was removed from the Linux 2.6.11 kernel for lack of maintenance.{{Citation needed|date=September 2009}} UVFAT, an extension of UMSDOS to use the Windows data structures for long filenames instead of its own, was discontinued before release.<ref>{{Cite web |title=UMSDOS filesystem: UVFAT support |url=http://linux.voyager.hr/umsdos/#uvfat |website=linux.voyager.hr |access-date=2015-07-16}}</ref> They should work in 2.4.x kernels.{{Citation needed|date=September 2009}}
▲The installation of Linux into such a directory in the first place simply involves unpacking files from an archive into that directory and its subdirectories. Such an installation also generally requires the use of a [[swap file]] rather than a [[swap partition]] for Linux, however this is related to the desire not to repartition the hard disc and unrelated to the ''{{Not a typo|umsdos}}'' filesystem driver per se.<ref name="McCune"/>
▲Earlier Linux distributions which used UMSDOS are [[MuLinux]],<ref>[http://mulinux.narod.ru/en_index.html MuLinux Project]</ref> Monkey Linux<ref>[http://projectdevolve.tripod.com/text/descript.htm Monkey Linux Explained]</ref> and Winlinux 2000.<ref>[http://archive.is/20120707065033/http://articles.techrepublic.com.com/5100-10878_11-1044390.html The Linux/Windows combo: Use these resources to make it work]</ref>
== Accessing FAT formatted volumes without kernel support ==
{{further|mtools}}
Although the filesystem drivers in the kernel make it possible to access files and directories on FAT formatted volumes in the normal manner, it is also possible to do so without kernel driver support, using the utility programs that form the [[mtools]] utility suite. Like the ''{{Not a typo|vfat}}'' FAT filesystem driver,
Alternately, one of the [[FUSE (Linux)|FUSE]] filesystem drivers may be used—FatFuse, FuseFat or {{Proper name|mountlo}}.<ref>{{cite web |url=
== POSIX overlay filesystem ==
A modern equivalent of UMSDOS is POSIX Overlay Filesystem ({{Not a typo|posixovl}}). It works in FUSE.<ref>
==See also==
Line 70 ⟶ 74:
* {{Cite journal |url=http://tldp.org/HOWTO/UMSDOS-HOWTO.html |title=UMSDOS HOW-TO |author-first=Jacques |author-last=Gelinas |version=1.2 |date=2001-12-01 |publisher=[[Linux Documentation Project]]}}
* [http://linux.voyager.hr/umsdos/ UMSDOS developer’s page]
* [
{{DEFAULTSORT:Fat Filesystem And Linux}}
|