I was able to write a jffs2 file (it was the ubuntu file system) onto /dev/mtd3 and it mounted with:
mount -t jffs2 /dev/mtdblock3 /mnt -o noatime
I made a new directory /mnt/test
cd /mnt/test
echo hello > hello.txt
cd /
umount /mnt
reboot
After it rebooted, I mounted it again and hello.txt was still there.
Mounting was very slow.
Are you sure that your jffs2 file was good?
Categories: PogoPlug Development
I'm trying to mount a jffs2 image onto /dev/mtd3, following the instructions found here:
http://pogoplug.uservoice.com/pages/general/suggestions/129156-enable-ssh-login-
I can get all the way to the last step, following each step letter for letter, but then I get this error:
#mount -t jffs2 /dev/mtdblock3 /mnt -o noatime
mount: mounting /dev/mtdblock3 on /mnt failed: Input/output error
I don't suppose it has anything to do with other messages i get when flashing mtd3? When I run flash_eraseall -j /dev/mtd3, i get about 10 messages that look like this:
Erasing 128 Kibyte @ d6c0000 -- 45% complete. Cleanmarker written at d6c0000.
Skipping bad block at 0x0d6e0000
Erasing 128 kibyte @ 12e6000 -- 63 % complete. Cleanmarker written at 12e60000.
Skipping bad block at 0x12e80000
etc, but it still seems to finish without any other complaints.
Could the fact that there are bad blocks be preventing the filesystem from being written there? I don't get any errors when nandwriting to it, so I thought it might be ok, but maybe not.
Also, if i do get it mounted, will I be able to put files there and have them stay after the system reboots? I managed to compile working binaries using a c++ cross compiler, but the only way i could get them to the Pogoplug was to stick them in the /tmp directory, which gets wiped when it reboots.
Thanks!Ok, so I haven't had time to mess around with the Pogoplug recently, but iandb: nope, I'm not honestly sure that the file is good; is there a way to check? (I'm using Ubuntu also). Also, I don't suppose anyone has a copy of those directions that were at that url? It's a dead link now that just redirects me to uservoice's home page.
Also crimson, I tried running your script on OpenPogo, but it failed when it tried to mount /dev/mtdblock3. I think it's because I ran the flash_eraseall command on /dev/mtd3. You said you had the same error; how did you get it back in working order so your script works again?
Yeah, I got that error but when I mounted it as it is in the script, everything went well and I got no error (even though technically, there should have been one).
With that being said, THE ABOVE IS NO LONGER NECESSARY! Just do "mount /dev/mtdblock3 /wherever" - no formatting needed!!!

RSS


