@bobafetthotmail and others.
I have nsa310 and I'm using extroot. I would like to modify internal flash. Ho to mount it ? Is it possible to add it to /etc/config/fstab ?
That was exactly what I tried. But it didn't work. I would like to mount the internal flash on device which I don't have physical access. E.g If I want to upgrade image and before doing this synchronize configuration.
root@NSA310:~# mount /dev/mtdblock2 /tmp/ubi/
NTFS signature is missing.
Failed to mount '/dev/mtdblock2': Invalid argument
The device '/dev/mtdblock2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount: mounting /dev/mtdblock2 on /tmp/ubi/ failed: Invalid argument
root@NSA310:~# mount -t ubifs /dev/mtdblock2 /tmp/ubi/
mount: mounting /dev/mtdblock2 on /tmp/ubi/ failed: Invalid argument
It looks like mount doesn't support ubi filesystem
Yeah, "ubi" isn't a filesystem but a container thing for raw flash devices. "ubifs" is the filesystem you can use in an "ubi" container but it can hold others.
So mtdblock2 is the ubi container that actually contains 2 filesystems, the squashfs readonly /root and the ubifs partition.
Good to know that you found where the ubifs "partition" actually is. As I said I never had to mount that myself so I could not help you much.