Hi Oliver.
> i want to copy /dev to a 16M-DiskOnMoudle(flash disk),fommatted to
> ext2,empty
> #cp -av /dev /flashdisk
> this command can copy some files in /dev ,then it tell me that "no space
> left on device"
> but the whole /dev is 268k
> why? how can i do
The problem most probably is here that the amount of inodes is reached. So
there may be physically space on the flashdisk, but there are no inodes
left to take the "additional information" for each file (file type,
permission, access dates, and so on). You should first of all throw away
some of the device entries, as you most probably won't need all of them.
If the problem still exists you should reformat the partition and increase
the number of inodes by hand (have a look in the manpage for mke2fs for
the correct parameter).
Also, you should mount every ext2fs-partition that is on a flash disk with
the parameter "noatime". ext2 keeps track of the time a file was accessed
last and writes it on the disk even if the disk is mounted read-only. As
the flashes do have a limited write capacity only you most probably want
to switch off this feature to save the flash.
Bye, Mike
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.