0

I've always been using SMBv1 for mounting shared folders exposed by the AS/400. Recently, the AS/400 V7R3 has enabled SMBv2 but I haven't been able to effectively use a shared folder:

  • I can browse the filesystem hierarchy
  • I can create directories
  • I can delete directories and files
  • I cannot create files (No such file or directory)
  • I cannot write to files (No such file or directory)
  • I cannot read files (garbled output)

Here's my mount command:

mount -t cifs -o vers=2.0,username=MYUSER //192.168.1.15/SHAREDFOLDER /mnt/as400

More info:

  • Windows clients report no problems since switching to SMBv2.
  • Mounting with -o vers=2.1 fails with mount error(5): Input/output error.
  • Specifying -o vers=1.0 makes everything work nicely.
  • Adding the following options did not do any good: iocharset=utf8,file_mode=0770,dir_mode=0770,nounix,uid=1000,gid=1000
  • Here's a portion of garbled output that appears when trying to diplay any file:

    SunMonTueWedThuFriSatSundayMondayTuesdayWednesdayThursdayFridaySaturdayJanFebMarAprMayJunJulAugSepOctNovDecJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberAMPM%a %d %b %Y %r %Z%m/%d/%Y%r%I:%M:%S %pSunMonTueWedThuFriSatSundayMondayTuesdayWednesdayThursdayFridaySaturdayJanFebMarAprMayJunJulAugSepOctNovDecJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberAMPM%a %d %b %Y %r %Z%m/%d/%Y%r%I:%M:%S %p:▒0%a %b %e %H:%M:%S %Z %Y%a %b %e %H:%M:%S %Z %YUTF-8JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberJanFebMarAprMayJunJulAugSepOctNovDecJanhttp://www.gnu.org/software/libc/bug-glibc-locales@gnu.orgAmerican EnglishUnited States1.02000-06-24i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012UTF-8

Question:

Am I missing some obvious way to make Ubuntu correctly mount SMBv2 folders shared by the AS/400 or are the respective implementations somehow incompatible?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.