# Help with Migrating a Mount Command to FSTAB

**URL:** <https://community.learnlinux.tv/t/help-with-migrating-a-mount-command-to-fstab/3685>\
**Category:** Networking\
**Created:** [March 11, 2024, 10:56pm UTC](https://community.learnlinux.tv/t/help-with-migrating-a-mount-command-to-fstab/3685 "2024-03-11T22:56:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterheffe](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/misterheffe/32/1286_2.png) [@misterheffe](https://community.learnlinux.tv/u/misterheffe)\
**Post date:** [March 11, 2024, 10:56pm UTC](https://community.learnlinux.tv/t/help-with-migrating-a-mount-command-to-fstab/3685/1 "2024-03-11T22:56:12Z")

</div>

Hello! I’m fairly new to Linux and have stared a HomeLab running Docker to support the ARR apps and other goodies. My media library is on an old MAC Pro which I have mounted using the following command.

> sudo mount -t cifs [//192.168.10.6/plex](https://192.168.10.6/plex)\ library /mnt/plexlibrary -o username=xxxx,password=yyyy,iocharset=utf8,file\_mode=0775,dir\_mode=0775,uid=1000,gid=1000,vers=3.0

\*\*-Side Note - I’m temporarily keeping the login credentials in the command and will move them to a separate file once I get things moved to FSTAB.

I’ve been trying to get this command into FSTAB and was wondering if anyone could help me properly reformat it? I’ve tried cutting it down to bare bones like this…

> [//192.168.10.6/plex](https://192.168.10.6/plex)\ library /mnt/testmount cifs user=xxxx,password=yyyy,uid=1000 0 0

…but I always get…

> mount error(22): Invalid argument

The mount is working perfectly from the command line, but not so much in FSTAB.

Thanks,  
/Jeff

---

<div class="post-metadata">

**Author:** ![ThatGuyB](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/thatguyb/32/784_2.png) [@ThatGuyB](https://community.learnlinux.tv/u/ThatGuyB)\
**Post date:** [March 12, 2024, 1:19am UTC](https://community.learnlinux.tv/t/help-with-migrating-a-mount-command-to-fstab/3685/2 "2024-03-12T01:19:09Z")

</div>

With that fstab entry, show the output of `mount -vvv /mnt/plexlibrary`.

I would also remove the “plex\ library” space in between those two. In your SMB or Samba share, change the share name to plex\_library or plexlibrary or something.

```auto
//192.168.10.6/plex_library /mnt/plexlibrary cifs user=xxxx,password=yyyy,uid=1000 0 0

```

You might be able to get away with:

```auto
"//192.168.10.6/plex library" /mnt/plexlibrary cifs user=xxxx,password=yyyy,uid=1000 0 0

```

but I can’t say for sure.

---

<div class="post-metadata">

**Author:** ![misterheffe](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/misterheffe/32/1286_2.png) [@misterheffe](https://community.learnlinux.tv/u/misterheffe)\
**Post date:** [March 14, 2024, 1:44am UTC](https://community.learnlinux.tv/t/help-with-migrating-a-mount-command-to-fstab/3685/3 "2024-03-14T01:44:32Z")

</div>

Having that space in the file share folder name turned out to be the culprit. Thanks for the tip…!

/J
