File systems Summary All Linux disks have been converted from ext2 to ext3. In the longer term, you should switch the large video drives to a file system that explicitly support large files. XFS does a great job with large files. Either one of these may be fine -- there's no big hurry. Software (sourceforge projects)
Guides
How to create FAT32 drives In Linux, issue "cfdisk /dev/sda" and select Type c, which is W95 FAT32 (LBA). The choices are misleadingly called file systems -- these are partition types. Then issue "mkfs.vfat /dev/sda1" and you're done. This is very fast and the resulting drives are automatically detected and mounted by WinXP. In Windows XP, Right-click on My Computer | Manage | Storage | Disk Management, and then create the partitions -- this is fast and easy. However, formating is a hassle -- WinXP won't give you the option to use anything other than NTFS, at least not on large partitions, although FAT32 supports them. Open a Command shell: c:\> format /? c:\> format f: /fs:FAT32 /v:1 You may discover WinXP spends an hour appearing to format the drive, and then tells you the partition is too big. For details, see MS format parameters. File System Comparisons 64-bit file systems JFS comes out the clear winner in a 64-bit file system benchmarking contest -- the fastest, and with a very low CPU usage. Ext2 does well, and 64-bit ext3 and XFS poorly (but very well on 32-bit). Reiser4 64-bit is OK, just not quite as fast. In brief, XFS doesn't seem quite ready for 64-bit systems. NTFS On 1 November 2006, ntfs-3g was released in Debian amd64, promising full write support to NTFS through fuse -- but with a warning the code is still not fully tested, especially not in amd64, though it is reported to be working fine. It looks like full write access to NTFS has been achieved by the Captive project -- "You can mount your Microsoft Windows NT, 200x or XP partition as a transparently accessible volume for your GNU/Linux" -- by using the original Microsoft Windows ntfs.sys driver -- but the project was soon abandoned. The 1.1.5 version of the packages are in Sigillo:/spare/software/debs, downloaded from http://debian.okey.net/debian-uo/dists/sid/misc/pool/captive-ntfs/ and not yet tested. The 1.1.4 version of the packages are in Knoppix 3.4 (the current version is 1.1.5):
There are also ext2fs readers for WinXP. You should now reformat Sigillo's /vx drive to ext2 -- see ToDo. File system shootout On 2.4.6-test5 in October 2003, JFS and ext2 do well, along with XFS. Ext3 does really poorly, and ReiserFS is worst in several cases. Comparing large file systems In this independent test, XFS comes out on top, but ext3 is such a close
second that it's not worth the hassle to change. FAT32 (VFAT) is many
times slower and ends up at the bottom. IBM DeveloperWorks tutorial series Abstract ext3
Use the following for instructions on how to convert your file system
from ext2 to ext3: XFS XFS is SGI's free, 64-bit high-performance filesystem for Linux. In my tests, I found XFS to be generally quite speedy. XFS consistently won all tests that involved manipulating large files, which should be expected since it has been designed and tuned over the years to do this very well. I also discovered that XFS has a singular performance quirk: it doesn't delete files very quickly. [A patch may be available; this was Jan 02.] Other than that, XFS performance was very close to that of ReiserFS and generally surpasses that of ext3. My results show that XFS is the best filesystem to use if you need to manipulate large files. For small to medium-sized files, XFS can be competitive and sometimes even faster than ReiserFS if you create and mount your XFS filesystem with some performance-enhancing options. Deploying XFS SGI's XFS page Filesystem update (June 2002) According to Hans Reiser and his team of developers, there are some very nice improvements that are scheduled to appear in the 2.4.20_pre1 kernel, including Chris Mason's data journaling (like ext3's "data=journal" mode!) support, new block allocation code that scales much better, and several improvements in large file peformance, resulting in an up to 15% performance improvement when reading large files from IDE drives. Beyond these immediate and significant improvements, we are likely to soon see ReiserFS support the equivalent of ext3's "data=ordered" mode. At that point, ReiserFS will offer equivalent data integrity features to those found in the ext3 filesystem. AFS OpenAFS -- power filesharing Installation and configuration history My current systems are all running ext2. This lacks journaling, which can be a hassle. However, ex2 performance is great and I've not had serious problems. In contrast, I lost a whole disk to ReiserFS. The immediately available option is to convert ext2 to ext3. The "tune2fs -j" command can be used to convert from the "standard" linux ext2 file system to the new ext3 journaling system. The cost may be a slight (?) decrease in speed, which could matter for digital video capture. Or not. On 28 June I decided to upgrade my file system on the main system disks from ext2 to ext3, following the instructions in Andrew Morton, Using the ext3 filesystem in 2.4 kernels. I first verified that the ext3 file system was supported in the kernel -- note, however, that the recommended JBD debugger is not. Note that the kernel help screen says, Other than adding the journal to the file system, the on-disk format of ext3 is identical to ext2. It is possible to freely switch between using the ext3 driver and the ext2 driver, as long as the file system has been cleanly unmounted, or e2fsck is run on the file system. To add a journal on an existing ext2 file system or change the behavior of ext3 file systems, you can use the tune2fs utility ("man tune2fs"). To modify attributes of files and directories on ext3 file systems, use chattr ("man chattr"). You need to be using e2fsprogs version 1.20 or later in order to create ext3 journals (available at http://sourceforge.net/projects/e2fsprogs/). In brief, it looks like a piece of cake to convert to ext3. I appear to have E2fsprogs 1.24a (September 2, 2001) -- this may be worth updating from http://e2fsprogs.sourceforge.net/ -- I got 1.27. I did a ./configure --enable-dynamic-e2fsck --enable-fsck --enable-jfs-debug --with-cc=/usr/local/bin/gcc and it compiled and installed great. You may have been fine with what you had -- the instructions at http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html only require 1.23. I did the same on cyberspace, just to keep the systems similar. With e2fsprogs 1.23 and later, you can use file system auto in fstab and the system will autodetect it. However, using filesystem type auto for the root filesystem confuses /bin/df, and causes it to not print out information for the root filesystem. Fix: always specify the root filesystem as ext3 in /etc/fstab. I'm supposed to need a new package of util-linux from http://www.kernel.org/pub/linux/utils/util-linux/ but it doesn't look like there have been serious changes since my 2.11i version -- we're now at version 2.11r. Now for the scary part: issue the conversion command. I did,
which is my main partition on gubbio. This took a second or two, saying
I did the same for the boot partition, /dev/hdc5. I then changed /etc/fstab to read ext3 for these two partitions. This seemed so painless I'm tempted to do it on /vm too, but let's hold off -- performance might suffer. I did the same on cyberspace, for /dev/hda1 (/boot) and /dev/hda3 (/). Interestingly, presumably because I used e2fsck 1.24, the response said the filesystem would be checked every 21 and 22 mounts instead of 28 above. I updated e2fsck anyway, but this looks fine. I updated the fstab there too. Note that df -Th will show you the file system types. I rebooted both machines; they rebooted into ext3. Everything is working fine; I decided to do the same on the two video drives -- file corruption could be a big hassle. |
|
|
|
|||||
Maintained by Francis F. Steen, Communication Studies, University of California Los Angeles |