Is there a way of exporting fstab info for device which is currently mounted?
You can see some information about currently mounted devices by looking at the contents of /etc/mtab
(the syntax is quite similar to the one of /etc/fstab
).
You should find some useful information about mount options as well.
Otherwise, you can use a simple "fstab generator" like this one:
http://epistel.no/fstab/
Have a look at /etc/mtab
. It contains list of all currently mounted systems with their parameters. From what I see on my Ubuntu system those lines can be directly copied to /etc/fstab
.
Another place worth looking is /proc/mounts
.