Using fuse-unionfs with CentOS 5.5 i686

2010/12/31

Of the RedHat / Fedora / CentOS family, CentOS has the best combination of being freely available *and* having long-term support for updates via the various official and unofficial RPM repositories. The downside, though, is that not all of the fun / new / bleeding-edge software found in Fedora can be found for CentOS.

Some, however, can. Case in point is the FUSE (File-system in UserSpacE) user-space driver for using the “unionfs” file-system layering technology.

First, you must add the proper repository to the yum configuration for the server.

The repository you will need is:
Dag Apt Repository, http://dag.wieers.com/apt/

The package you will need is called:
fuse-unionfs

The dependencies for this package are:
fuse-libs (from the CentOS repository)
fuse (from the CentOS repository)

Once you have the yum repositories set up, install the package by running (as root):
#yum install fuse-unionfs

That should install the fuse-unionfs (or unionfs-fuse) package.

The utility should be installed as:
/usr/bin/unionfs

Getting the unionfs-fuse mount points to work via /etc/fstab is one of the more bizarre and poorly-documented things in the Linux universe, but here is a line from /etc/fstab that seems to work:

unionfs#/path/to/your/writabledirectory=rw:/path/to/your/readonlydirectory=ro /path/to/your/finaldirectory fuse default_permissions,allow_other,use_ino,nonempty,suid,cow 0 0

In this fstab line, here is an explanation of each part:

  • unionfs   — this is apparently the command that fuse runs to mount the file system
  • The “#” after unionfs. This separates the unionfs command from the parameters
  • /path/to/your/writabledirectory=rw — this is the path on the system to your writable directory
  • /path/to/your/readonlydirectory=ro — this is the path on the system to your readonly directory
  • The colon between the paths — this separates the two paths; More than two paths can be included, the leftmost will be the “topmost” layered path, going down the layers for each path to the right, separated by colons.
  • fuse — this is the name of the filesystem to use. “fuse” is a meta-filesystem that can mount many other sub-types of file-system below it, in this case, “unionfs”
  • default_permissions — this asks unionfs to use the default permissions
  • allow_other — this asks unionfs to allow non-root users to talk to the mounted filesystem
  • use_ino — let the filesystem set the inode numbers
  • nonempty — allows unionfs to mount the unioned-filesystem into a non-empty directory on the system
  • suid — allows suid on the unionfs filesystem
  • cow — enables copy-on-write, which allows editing of files that are mounted from a readonly path, by placing a copied file into the read-writable path instead
  • 0 0  — standard fstab entries for mount order and check order (I think)

Seagate RMA Web Form Numbers for 7200.11 SATA Drives

2009/11/28

When RMAing drives using Seagate’s RMA web form, it can sometimes be difficult to know the magic incantations/numbers needed to get it to recognize a given drive as valid/in-warranty.

Since this has been a fight several times for the Seagate SATA 7200.10 and SATA 7200.11 drive models, here are some numbers found to be helpful:

Seagate 7200.11 1500GB (ST31500341AS) ::
Try Entering:  ST315005N1A1AS-RK -or- 9JB1AS-571

Seagate 7200.11 1000GB (ST31000340AS) ::
Try Entering: ST31000340AS -or- 9BX158-303
-or- 9BX1A8-570

Seagate 7200.10 750GB (ST3750640AS) ::
Try Entering: ST3750640AS-RK -or- 9BJ848-550


Fedora 11 : Recording Audio from Pulseaudio using pacat (a.k.a. parec) and sox

2009/08/03

To record audio, for example, from a Firefox/Flash-based application, running on Fedora 11, the following command seems to work:

pacat --record | sox -t raw -r 44100 -s -L -b 16 -c 2 - "output.wav"

Installation and usage instructions after the break…

Read the rest of this entry »

Fedora 11 x86_64, Installing nerolinux-3.5.2.3-x86_64.rpm

2009/06/10

Fedora 11 x86_64 has (apparently) removed support for the “amd64″ arch tag on RPM files, opting instead for only the official “x86_64″ tag.

This means that to install the nerolinux 64-bit rpm file, the –ignorearch option must be issued to the rpm command-line utility, as follows:

#rpm --ignorearch -ivh nerolinux-3.5.2.3-x86_64.rpm

That should allow this particular rpm to be installed successfully.

Bookmarklet – Firefox Google Translate with Language Prompt

2009/05/27

Most of the internet is written in English.  There are web services like Google Translate that can translate non-English pages, but using them requires a distracting trip to Google.

To simplify the process, here is a bookmarklet that takes the current URL and sends it to Google Translate directly.

Read the rest of this entry »

CentOS 5, Ruby, and SQLite3 – Installation

2009/05/18

Getting sqlite3 to work with ruby and centos5 is apparently something of a chore.

The notes below are the collected notes regarding how to get it to work.  The instructions appear to allow the sqlite ruby gem to be successfully installed.

Read the rest of this entry »

Checking the block size of an existing linux ext3 partition

2009/05/05

The tune2fs command can be used in linux to determine the formatting or blocksize used when an ext2 / ext3 / ext4 (?) partition was created.

Read the rest of this entry »

The maximum size limit of the ext3 filesystem in linux 2.6.x

2009/05/05

As of Linux kernel 2.6.x, the official maximum filesystem size for a 32-bit ( i386 ) host ext3 file system was 4TB (or, seemingly, 8TB as of kernel 2.6.17).

However, as of linux kernel 2.6.19, the 32-bit ext3 maximum size appears to be 16TB.

Installing Fedora 10 on an ECS A740GM-M v1.0 Motherboard using “radeon.blacklist=yes”

2009/05/05

On an ECS A740GM-M v1.0 motherboard, the fedora10 i386 installer hangs after reaching the /sbin/loader stage (just before the first actual dialog box is displayed).

The only kernel boot parameter that seems to help is:

radeon.blacklist=yes

which can be appended to the installer kernel line by pressing the Tab key at the DVD boot menu, then typing space and the parameter.

Intel DX48BT2 Motherboard PXE-E05

2009/05/05

Using the Intel BIOS Recovery flash procedure to repair a broken PXE Boot Agent ( boot error PXE-E05 ) on an Intel BoneTrail ( DX48BT2 ) motherboard.

Read the rest of this entry »


Follow

Get every new post delivered to your Inbox.