Documentation
en

Documentation

Installation

There are two methods how to install the driver and utilites. The easiest way is use pre-compiled binary package and the second way is compile everything by yourself.

Binary package

Download binary package from the Files page and install using pkgadd(1M). Note that these packages also contains an e2fsprogs. See Quick howto

Compile from source

Since VFS is not public interface in OpenSolaris and is changing from time to time it is necessary to download and set up complete ON workspace.

1. Prepare a workspace

See Nevada Developer's Reference for instruction how to set up your workspace. Clone our Mercurial gate ext2-gate from ssh://anon@hg.opensolaris.org/hg/ext3/ext2-gate . Do not forget edit opensolaris.sh in your new workspace.  

2. Build

Use nightly(1) to build source. You can also use bldenv(1) if you want to compile for example only kernel module.

3. Install

Install mount utility

Copy ext2-specific mount(1) utility from your workspace to a system path:

    $ su
    # cp /your_workspace/ext2-gate/usr/src/cmd/fs.d/ext2fs/mount/mount /usr/lib/fs/ext2fs
    # chmod a+x /usr/lib/fs/ext2fs/mount
    # chown root:bin /usr/lib/fs/ext2fs/mount

NOTE: You have to create ext2fs directory if does not exists:

    # mkdir /usr/lib/fs/ext2fs

Driver kernel module

It is not necessary to install kernel module. You can use it from your workspace. Choose debug or non-debug version as well as 32- or 64-bit architecture. Compiled module can be found at your_workspace/ext2-gate/usr/src/uts/intel/ext2fs

4. Enjoy!

Insert ext2 kernel module using modload(1M) and mount an ext2 file system:

    $ su
    # modload ext2fs
    # mount -F ext2fs /dev/dsk/cXdYpZ /mount_point

Debug version of the driver produces a lot of log messages. You can use them for observing driver's operations.

Tags:
Created by admin on 2009/10/26 12:13
Last modified by jurikm on 2010/04/13 14:19

Collectives


XWiki Enterprise 2.7.1.34853 - Documentation