On Wed, Feb 11, 2009 at 7:16 PM,  <sf...@users.sourceforge.net> wrote:
>
> Nitin Bhardwaj:
>> That doesn't work, since I'm not making any entry for them in
>> /etc/fstab and hence there is no entry for /bin,/sbin,/lib and /usr in
>> /etc/mtab.
>> Error as below:
>>
>> mount: can't find /bin in /etc/fstab or /etc/mtab
>
> I wonder if you specify "device" (or none) to your mount command, it may
> work.

Since I'm doing mounting in the initrd ( Redhat nash shell), the mount
of which does not support "none" ; Since aufs is not associated with
any device, I'll try giving /dev/hda1.
>
>
>> Then I tried appending entries for /bin,/sbin.. etc in /etc/mtab
>> manually ( copied verbatim from /proc/mounts) and then try unmounting:
>>
>> echo "none /bin aufs rw,si=db66c080,xino=/tmp/xino,br:/bin=rw:/.mount/bin=ro 
>> 0 0
> (OK, adding /etc/mtab)
>> mount -o remount,ro,mod:/bin=ro /bin
>>
>> It failed with the following error:
>> failure bad /proc/mounts 1
>
> Does /proc/mounts exist at thiw remounting?

Yes /proc/mounts exists at this point. I tried this both at runlevel 1
command prompt, as well as in the shutdown script ( /etc/init.d/halt )
. I'll try to capture the /proc/mounts output.
>
>
> J. R. Okajima
>

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