I'm working with the firmware of SIP phone. I extracted the JFFS2 file system image from the firmware and mounted it using modprobe ike this:
sudo modprobe mtdram total_size=36360
sudo modprobe mtdblock
sudo modprobe jffs2
sudo modprobe block2mtd
sudo dd if=~/1C6A83.jffs2 of=/dev/mtdblock0
sudo mount -t jffs2 /dev/mtdblock0 ~/mnt
However when I try to change files on the mounted device I get an error "No space left on device". What am I doing wrong? May be my device mtdblock0 is protected from writing?
mount -o rwand access the files using root user. If that doesn't work, immediately after the mount command look at the last lines of the kernel message log (tail /var/log/messagesordmesg | tail– Yotamz Apr 21 '20 at 07:22
– JMLabs Apr 26 '20 at 22:19cp: cannot create regular file '/home/main/fs/voip/logo.png': No space left on device$ sudo modprobe -v mtdram total_size=36360 $ sudo modprobe -v mtdblock $ sudo modprobe -v jffs2 $ sudo modprobe -v block2mtd $ sudo dd if=~/st.extracted/1C6A83.jffs2 of=/dev/mtdblock0 72718+1 records in 72718+1 records out 37232064 bytes (37 MB, 36 MiB) copied, 1,09873 s, 33,9 MB/s $ sudo mount -o rw -t jffs2 /dev/mtdblock0 ~/fs– JMLabs Apr 26 '20 at 22:23