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
- Windows clients report no problems since switching to SMBv2.
- Mounting with
-o vers=2.1fails with
mount error(5): Input/output error.
-o vers=1.0makes everything work nicely.
- Adding the following options did not do any good:
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://firstname.lastname@example.orgAmerican EnglishUnited States1.02000-06-24i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012i18n:2012UTF-8
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?