On Fri February 6 2009, Nitin Bhardwaj wrote:
> On Fri, Feb 6, 2009 at 1:29 PM, <sf...@users.sourceforge.net> wrote:
> 
> >
> > Hello Nitin,
> >
> > Nitin Bhardwaj:
> > > mount -t aufs -o br:/sysroot/bin:/sysroot/.mount/bin=ro none /sysroot/bin
> > > mount -t aufs -o br:/sysroot/lib:/sysroot/.mount/lib=ro none /sysroot/lib
> > > mount -t aufs -o br:/sysroot/sbin:/sysroot/.mount/sbin=ro none
> > /sysroot/sbin
> > > mount -t aufs -o br:/sysroot/usr:/sysroot/.mount/usr=ro none /sysroot/usr
> > > [...]
> > >
> > > I get the following mount errors:
> > > mount: could not find filesystem 'none'
> > > mount: could not find filesystem 'none'
> > > mount: could not find filesystem 'none'
> > > mount: could not find filesystem 'none'
> > >
> > > After which, obviously, my init fails to execute and kernel panic.
> > >
> > > Sorry for the long mail, but why am I getting these errors about 'none'
> > > filesystem ? Because when I try to use aufs
> > > on my currently running custom squashed system, it mounts fine !
> > >
> > > ------------------------------------------
> > > modprobe aufs
> > > mount -t aufs -o br:/tmp/rw:${HOME}=ro none /tmp/rw
> > > ------------------------------------------
> >
> > I am afraid your mount command in your initrd has another syntax.
> > If you try "mount --help" or something in your initrd, it may show the
> > correct syntax and you will know the answer...
> > As long as I don't know what your mount command is, I have nothing to
> > answer you, sorry.
> >
> >
> > J. R. Okajima
> >
> 
> Hi,
> 
> I think the problem is with the shell which executes within the RHEL initrd.
> The initrd of Redhat Enterprise Linux 5.2 ( also Fedora ) executes nash
> shell ( http://linux.die.net/man/8/nash ),
> whose mount command requires a device and a mount-point necessarily.
> 
> -------- From the manpage -----------
> *mount [--ro]* -o *opts* -t *type device mntpoint* Mounts a filesystem. It
> does not support NFS, and it must be used in the form given above (arguments
> must go first). If *device* is of the form *LABEL=foo* the devices listed in
> /fB/proc/partitions will be searched, and the first device with a volume
> label of *foo* will be mounted. Normal 
> *mount<http://linux.die.net/man/2/mount>
> (2)* options are supported, and *--ro* will mount the filesystem read only
> for compatibility with older versions of nash. The *defaults* mount option
> is silently ignored.------------------------------------------------- Hence,
> I'm realizing that the nash-mount doesn't support 'none' device name.  Is
> there any lead here ?
> 

I don't have a RH system to try this on - but I would try using the filesystem
name for the 'device' - - that generally works in none-RH systems for "no 
device"
mount commands (I.E: 'tmpfs' as the device when mounting tmpFS, 'sysfs' as the
device when mounting sysFS, etc.  In this case, device: 'aufs')

Mike
> 
> Thanks,
> Nitin.
> 



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

Reply via email to