虽然cramfs文件系统是不可写文件系统,但是完全可以用NFS 来mount 其上面的目录。 为什么
不用nfs来调试呢?可以省去烧录的时间。
此外,在试图不重新编译内核,就把cramfs根文件系统改成nfs 根文件系统的时候,发现一个有趣的现象:
在pc上 , mount -o loop xxx.cramfs /rootfs
在开发板上, mount 192.168.x.x:/rootfs /root/temp1111
结果发现mount失败!! 查了一下,发现redhat NFS EXPORT不支持 cramfs :-( ,不知是redhat版本太老还是NFS不支持。
On Monday April 29, dmason sarg ryerson ca wrote:
> Sorry this is off-topic, but I'm scrambling to get this system in,
> google didn't help, and I'm sure someone on this list knows the answer
> cold.
>
> I'm trying to nfs-export a tmpfs disk. I saw a hint from a response
> about ram disks... which leads to my guess that tmpfs simply doesn't
> implement some method that nfsd needs.
>
> I can probably survive without tmpfs, but I'd like to know if I'm just
> missing something.
Nop, you're not missing anything. tmpfs doesn't support nfs
exporting. Maybe later in 2.5...
NeilBrown
幸好我有制作cramfs的原始文件, 将其拷贝到/rootfs下, 然后再mount, 成功。然后 chroot /root/temp1111 , OK.