Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Ukit's problem on FTP

When I copy file to /home/ftp directory it show error message "read-only file system".

Then I used chmod to change the access permissions of the directory it also give error

message "read-only file system". Pls would some body tell me what did I do wrong?

Hawkins

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Romfs is read only, and you cannot put files to it through ftp. You can mount compact flash and put files to it.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Wentao, Ukit dont have compact flash, is there any round around?

    Hawkins
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can use a bigger ramdisk. Right now the /ramfs.img is very small, you can replace it with a bigger one. But this needs to re-generate the romfs image.

    An another alternative is to use nfs, if you have a Linux desktop.

    Regards,

    wentao
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can mount another ram disk at /home/ftp which is not read only (as is done for the /tmp and /var directories) which will allow you to have a small filespace to do transfers. You can look at the rc script in /etc/rc to see how this is done (first expand /ramfs.img to /dev/ram[2|3] then mount -n /dev/ram2 /home/ftp). You can also use the ext2 fs tools to manually format the ram drive (which is what the expand /ramfs.img is really doing if I'm not mistaken) which may allow you to eek out some more space by tuning the parameters to your typical use. I haven't personally needed to do this though.

    Tuck