2.4 Mountallfs

This script is about the most handy addon to TRK. It 's a script that scans all local storage devices and mounts their filesystems to a standard mountpoint, nl. the name of its device name.

-'mountallfs' without any options will mount all partitions to a mountpoint named after their device name. So /dev/hda1 will be mounted to /hda1
Run without any options, it will mount ntfs drives with the linux kernel builtin driver, giving you full read access but only very limited write access (overwriting files of the same filesize with ntfscp)
-'mountallfs -f' mounts any filesystem but ntfs filesystems will be mounted with the ntfs-fuse driver, which has good performance and limited write capabilities (like create maximum 10 files per directory). For full and performant write access, better use the next option.
-'mountallfs -g': finally, after years of waiting, a full fledged, fast read/write ntfs driver sees the daylight. Although the driver is still in beta, there have so far been no reports of any data corruption. Write performance is fantastic and there are no big limitations to this kind of filesystem access, except it cannot create compressed files (it can read them, but copies go uncompressed) and encrypted files (which is normal). Also filesystem rights are ignored and full filesystem access is provided.
-'mountallfs -c' will also mount any filesystem, but in particular this will mount ntfs with the captive-ntfs driver. It emulates the required subsystems of the Microsoft Windows kernel by reusing one of the original ntoskrnl.exe and ntfs.sys driver files from Windows XP service pack 2.
Because of licensing restrictions from Microsoft, I cannot provide these two files from SP2 along in the TRK iso file, since you have to be a legally licensed Windows XP user in order to use them. Read more about it on the site of the original captive developer  and my howto on adding these files to TRK after you downloaded it.
-'mountallfs -l': this activates Logical Volume Management modules, scans the local computer for any logical volumes and mounts them. This completely automates the process of mounting filesystems inside logical volumes. Very useful for sysadmins on Fedora boxes (which apparently is the default there).
There are some other options you can add to mountallfs at the end, like –q or –quiet, which make it a bit more silent and not show you the result of what has been mounted.
--ignore-memfree: normally, when using captive support for mountallfs, the script will check if your machine has enough RAM to run, since this option uses quite a lot of resources. If you have less then 64Mb of ram, it will refuse to run. If you really want to try anyway, you can add this parameter (which is otherwise harmless, it will probably result in some errors and killed processes from the kernel)
Updated: January 18, 2007

Powered by Vision.To CMS