it is solved. i just had to use "genisoimage -o <isoname>.iso -J -R -l <directory name>" and it preserves the long filenames as is. Previously i was just using -l so the files were still truncated. Thank you for your help guys.