On Mon, Feb 9, 2009 at 1:22 PM,  <sf...@users.sourceforge.net> wrote:
>
[...]
>>
>> Now, the init complains that it cannot run fsck on a 'mounted' root
>> filesystem.
>>

I think you misunderstood that the problem is with  the /sysroot/bin
line of aufs in /etc/fstab. The problem is with /sysroot itself (
which eventually becomes / , after switch_root() call in the initrd ).
If we mount /sysroot as read-write ( as you suggest below, Step 1,
then rc.sysinit script runs a fsck on /, which fails because it was
mounted as read-write. Hence we need to mount /sysroot as read-only
only.

> I guess your strategy should be,
> 1.mount /sysroot readwrite
> 2.change aufs mount as follows:
>        mount --ro -t aufs -o br:/sysroot/bin:/sysroot/.mount/bin=ro 
> /sysroot/bin /sysroot/bin
> 3.edit the /etc/fstab and write 0 to the sixth field of aufs (/sysroot/bin)
> 4. remount aufs readwrite (can you do this by /etc/fstab?)
This remount is not happening... The line I put in fstab is as follows:

none    /bin    aufs    remount,rw,br:/bin:/.mount/bin=ro  0   0

The error is:
aufs test_add:341:mount[4820]: /bin must be outside

fyi, I have already installed mount.aufs, auplink, umount.aufs aulchown in /sbin

>
>
[...]
>
> Because you specified all branches readonly and aufs cannot find the
> first writable branch which is the default path of xino files. And then
> aufs tries /tmp as the next candidate, but got an error -2 which means
> ENOENT "No such file or directory". I guess there is no /tmp in your
> initramfs or initrd.
>
>
yes, the initrd had no /tmp, which I added and its working now.


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