Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Config the mount points

Altera_Forum
Honored Contributor II
1,352 Views

Hi, 

 

I have successfuly burned and installed the uClinux distribution v1.3. 

But I have found some problems getting wirte access to the romfs filesystem. When I type: 

# mount  

rootfs on / type rootfs (rw) 

/dev/root on / type romfs (ro) 

/dev/ram0 on /var type ext2 (rw) 

/dev/ram1 on /tmp type ext2 (rw) 

proc on / proc type proc (rw,nodiratime) 

sysfs on /sys type sysfs (rw) 

 

For example when I try to ctreate directory on /etc I get :# mkdir /etc/aa 

mkdir: cannot create directory /etc/a 

 

I also receive errors when I try to make any write access to the "/" directory, but i have write access to /var and /tmp directories. 

 

Thanks for ideas and advices.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
432 Views

Doesn't this explain it? 

 

/dev/root on / type romfs (ro) 

 

You can't write to a read-only filesystem. :-) romfs's will always be read-only. /var and /tmp are, likely, ramfs and they are labeled as rw in the returned list from your mount command. 

 

If you want a larger filesystem to play with, you might consider using nfs or (if it works) smbfs to your host PC during development. In that way, you can compile and test code by just copying it to a Windows "share" or an NFS export. 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
432 Views

Sorry for my questions. I&#39;m Newbe to the Linux platform http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif I have already got it http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

Thank you.
0 Kudos
Altera_Forum
Honored Contributor II
432 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Sorry for my questions. I&#39;m Newbe to the Linux platform smile.gif I have already got it smile.gif 

Thank you.[/b] 

--- Quote End ---  

 

 

No need to apologize. Sorry if I was a bit "direct" in my answer. 

 

Best of luck on your project and enjoy your "Niosing"... 

 

Cheers, 

 

- slacker
0 Kudos
Reply