Subject: Re: Multiple union mounts
To: Seandog <spberry@image1.ansci.iastate.edu>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: current-users
Date: 10/20/1996 18:51:00
On Sat, 19 Oct 1996, Seandog wrote:

> Recently I picked up a set of cds which included among other things a mirror
> of Sunsite's Linux ftp site.  It is split across four cds, with the filesystem
> by directories.  I actually have five SCSI cdroms at my disposal for an 
> extended length of time, and would like to union mount the four discs 
> somewhere.  Unfortunately, it seems that union mounts are only designed
> to go one layer deep.  

But couldn't you just have a number of union mounts? Like 4 in this case?
It'd be messy, but it should work.

Something like:

mount -t cd9660 /dev/sd0a /cd1
mount -t cd9660 /dev/sd1a /cd2
mount -t cd9660 /dev/sd2a /cd3
mount -t cd9660 /dev/sd3a /cd4
mount -t union -o rdonly /cd1 /cd
mount -t union -o rdonly /cd2 /cd
mount -t union -o rdonly /cd3 /cd
mount -t union -o rdonly /cd4 /cd
mount -t union /cdwritezone /cd     /* a place for writing to disk to be
					stored. Note: must be on a level 2
					ffs */

I just checked the code, and unionfs supports rdonly.

Take care,

Bill