Тёмный

Automatically Mount Synology Share on Linux Boot! - Great for VM's! | 4K TUTORIAL 

SpaceRex
Подписаться 104 тыс.
Просмотров 27 тыс.
50% 1

Hi! This is a tutorial on how to how to automatically mount a Synology Share on any Linux Machine, including Raspberry Pi and virtual machines. I use this to automatically import photos from my camera using a Raspberry Pi 4, which allows me to quickly backup and organize my photos on Synology.
Hire Me! www.spacerex.c...
Hit the subscribe button if you'd like to see more!
Affilate Links: (Synology Recommendations)
Synologys:
Cheapest you can buy: geni.us/e6LuxG
Most powerful 4 Bay: geni.us/GjJ0
6 bays, with performance overhead: geni.us/wUcKel
Insane Performance!: geni.us/VWWyPa
12 Bays in a Desktop!: geni.us/dYtpGui
Drives:
Hard drives that I use: geni.us/k6GqFW
SSD I use with Synology: geni.us/AwOU
Going 10GbE:
Synology 10GbE (RJ45) Card: geni.us/d6KK94h
Starter 10GbE switch: geni.us/dHOpA
10GbE ethernet to Thunderbolt 3 adapter: geni.us/F6U92
*These are Amazon affiliate links, which means that if you purchase a product through one of them, I will receive a small commission (at no additional cost to you). Thank you for supporting my channel!

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 117   
@dmonaghan99
@dmonaghan99 4 года назад
Complete linux noob here. Instructions were clear and easy to follow and I successfully mounted two Synology smb shares on boot. Thank you SpaceRex
@SpaceRexWill
@SpaceRexWill 4 года назад
Thanks! Really glad that it was helpful!
@luckyhanger1326
@luckyhanger1326 2 года назад
You really helped me setup my DS220+. Between setting up my NAS as a media server, LAG, and now mounting my Linux boxes you have saved me hours. Thanks for sharing!!!!!
@allanc7196
@allanc7196 7 месяцев назад
I've been looking for this information for weeks. I watched several other videos on this topic, but this one was the clearest tutorial on how to do it, and it helped me accomplish it. Thanks!
@robertbuchanan8225
@robertbuchanan8225 3 года назад
Great, just what I was looking for. Only took me 2 days to sort out all my typo's. Worked a treat.
@explodingmonkey44
@explodingmonkey44 6 месяцев назад
I spent HOURS trying to figure this out. THANK YOU so very much!!
@domenicklandaeta-rosato3968
@domenicklandaeta-rosato3968 3 года назад
Been at this for a while with other people's videos not really working right. I'm part of the crowd that it didn't mount after reboot until I turned on 'wait for network to boot' but your tutorial was straight forward and very informative. Thanks a bunch!
@SpaceRexWill
@SpaceRexWill 3 года назад
Glad it worked out!
@Piewaypatrol
@Piewaypatrol 8 месяцев назад
Came here for help on mounting synology for linux, ended up enjoying the ASMR calming voice! lol
@jazzyjay5062
@jazzyjay5062 4 года назад
Thank you so much for this. It was really helpfull. I could not get this to work until i set my Pi to wait for network before booting. if anyone is watching make sure you have this enabled otherwise your mounts will try to mount before the pi gets a connection to the network. Keep up the great videos!!!
@SpaceRexWill
@SpaceRexWill 4 года назад
Awesome! Glad I could help!
@yevgeniydundukov8179
@yevgeniydundukov8179 4 года назад
'wait for network before booting' -Ok, good to know. So how to do this?
@guidoslomka7209
@guidoslomka7209 4 года назад
@@yevgeniydundukov8179 open raspi-config and go to the "3 Boot Options", then select "B2 Wait for Network at Boot" and choose "yes". After an reboot your mounts should show up.
@lcelebrate
@lcelebrate 2 года назад
Thank You. You save my life!!! I try searching many tutorial but not success. You did it!
@GlennJimerson
@GlennJimerson 4 месяца назад
Thank you! This worked perfectly. Even the "mistake" with the space in the name helped since I too have that issue with one of my drives.
@sidneyking11
@sidneyking11 2 года назад
Hey SpaceRex, I would like to say thanks for creating this helpful video. I have been racking my brain over this for awhile.
@piweroltd
@piweroltd 9 месяцев назад
Hi, any idea why I can mounting when passing directly sudo mount -t cifs -o username=server,password=Test1234,uid=1001 //i.p./test ~/server bu doesn't work when passing sudo mount -t cifs -o credentials=/root/.smbServer //i.p./test ~/server and credentials file with username and password? I keep getting mount error(13): Permission denied
@brownsterring9259
@brownsterring9259 2 года назад
Finally something that works! Thanks man, saved the day. I was starting to get crazy trying to figure this freaking access denied.
@dvc214
@dvc214 4 года назад
I had to activate SMB3 in the advanced settings on my synology control panel to avoid an error message. Thanks for the tutorial.
@SpaceRexWill
@SpaceRexWill 4 года назад
Good to know! I have always had SMB3 on so I never noticed!
@guidoslomka7209
@guidoslomka7209 4 года назад
Thanks for the advice, saves me a lot of frustration.
@carlospouilliez
@carlospouilliez 4 года назад
Been struggling for a while to do this. worked with your video. thanks
@SpaceRexWill
@SpaceRexWill 4 года назад
Glad it worked!
@alphabat3269
@alphabat3269 3 года назад
thanks! this channel helped me to master my Synology NAS. All videos are super-clear, to the point tutorials. I think I watched about 20 of them already :) My challenge was to make the following workflow to work: - VM on Synology (Linux Mint in my case) + VPN connection to 3rd party provider (VPNUnlimited) from VM + Transmission Torrent on VM working under VPN + torrent files should be stored on NAS (I tried NFS, but that didn't work well for transmission user, so I'm going to switch to SMB now).
@GG-hp1cy
@GG-hp1cy 3 года назад
I couldn't find this information anywhere. I don't even usually comment but man you saved me, I was about to throw my raspberry pi 4 out the window lol.
@SpaceRexWill
@SpaceRexWill 3 года назад
haha well glad this helped!
@kevinkillworth5470
@kevinkillworth5470 2 года назад
Thank you. I just finished setting up my Synology NAS as an Emby server and linked the shares to EndeavourOS. Now I don't have to open the NAS software every time I want to transfer movies. :)
@SpaceRexWill
@SpaceRexWill 2 года назад
Glad it was helpful!
@speedracer9132
@speedracer9132 8 месяцев назад
THANK YOU! I’ve been up late nights for a week now trying to figure this out and your video solved it! Now I just have one issue, the network share from my NAS is successfully mounted but, my Plex container in portainer cannot see it. Would you have any advice or maybe another video you could point me to?
@tmbiggs5343
@tmbiggs5343 Год назад
FYI if you get "error 95" you need to add "vers=2.0" to the fstab. For me it was "credentials=/root/.smbMYDIRECTORY,vers=2.0, uid1000"..... etc. That will make the fstab work if you need vers=2.0. Hope that helps people.
@ystebadvonschlegel3295
@ystebadvonschlegel3295 4 года назад
Thanks so much -- I've been reading all day and kept getting errors when trying to connect a SMB share to ubuntu, but followed this and it worked perfectly! You are such a great teacher - love your videos!! Edit: so I thought I had it perfect - I mount the directories each time I boot and can find the files on my NAS from the command line, but when I add the directories from Plex (which seems to work fine) Plex says there "there are no items in the library" - apparently Plex can't see the files that are in the mounted folder. ARGH!!!!!
@SpaceRexWill
@SpaceRexWill 4 года назад
Ah. Looks like the Plex user does not have access to the folder
@ystebadvonschlegel3295
@ystebadvonschlegel3295 4 года назад
@@SpaceRexWill It was a path problem in my docker compose file - I made the same problem of putting spaces in my directories on my NAS. Never again! But all my dockers already built with those file names so I'm stuck for now. Anyway thanks!!!
@tomjones2860
@tomjones2860 3 года назад
Having the commands listed in your comments for an easy cut and paste will earn a thumbs up... and Do you know if this continues to work in DSM 7.0? EDIT.. Your process worked and worked great even with the new OS on the Synology...
@ashesofasker
@ashesofasker 4 года назад
Great video. Managed to mount a synology share on a vm. Thanks.
@SpaceRexWill
@SpaceRexWill 4 года назад
Awesome glad it worked!
@jamesgardner2101
@jamesgardner2101 3 года назад
This worked great! Got my CentOS desktop connected to my Synology NAS, and I'm amazed at how much faster it is in Linux than Windows. Thanks!
@SpaceRexWill
@SpaceRexWill 3 года назад
Glad it helped!
@PaulMrPKcom
@PaulMrPKcom 2 года назад
Thanks for great tutorials. Damn Linux, so much work to just map a network drive :)
@SpaceRexWill
@SpaceRexWill 2 года назад
So this is CLI Linux. A desktop Linux will be much easier and work just like windows
@PaulMrPKcom
@PaulMrPKcom 2 года назад
@@SpaceRexWill I did as you showed on my KDE neon linux desktop. Works perfect :)
@gavin1215
@gavin1215 3 месяца назад
I keep getting permission denied when trying to mount to my NAS
@N0AGI
@N0AGI 2 года назад
thanks for sharing - good work. BTW, FYI - that is a "forward slash" - but, I bet you had already figured that out. God Bless.
@jewjubes3688
@jewjubes3688 3 года назад
Linux tutorial and ASMR? 😍
@nichemonk8797
@nichemonk8797 5 месяцев назад
Great Tut, thank you!
@ishqem
@ishqem 2 года назад
thnx it helped me a lot but a tip can u post also the commands in desc in the future vids, really appriciated this video, keep it up
@niembro64
@niembro64 4 года назад
for the error you have to add vers=2.0 as one of the options
@KungFuMojo
@KungFuMojo 2 года назад
Does this tutorial work if the VM is not on the NAS, but on a Windows PC? My host pc for my VM is windows, but I do have a NAS, and would like the VM to be able to see it, or at least get to a shared folder.
@SpaceRexWill
@SpaceRexWill 2 года назад
Yes it does
@redteamla
@redteamla 4 года назад
Correction: "/" is a forward slash, "\" is a backslash
@eyefly001
@eyefly001 4 месяца назад
Does this still work? I followed and get the error-bash: !r,uid=1000: event not found
@EAC-BR
@EAC-BR Месяц назад
Me too..
@MaineLander
@MaineLander 17 дней назад
@@EAC-BR Same
@OfficialPlymCityTV
@OfficialPlymCityTV 3 месяца назад
I'm getting "Bad usage" error when trying to mount. Can you help on soultions. Thank you
@dexterkeano
@dexterkeano 3 года назад
Awesome vid share, thanks mate ;)
@SpaceRexWill
@SpaceRexWill 3 года назад
No problem 👍
@jcrook1987
@jcrook1987 3 года назад
Super helpful, thank you!
@themadtux
@themadtux 5 месяцев назад
Great videeo... but man something is funky with mine. I follow your video, I can mount manually just fine via systemctl daemon-reload and then sudo mount -a . When I reboot, my share is shown but nothing is in the folder. UGH! :)
@Zwoelfie
@Zwoelfie Месяц назад
You might get a 'mount error(13): Permission denied' if you denied everything like mentioned at 2:31 in the video. It seems something has changed since this video was made and you may have to allow the SMB application.
@Bdhambola
@Bdhambola Год назад
Thank you @spacerex. this was really helpful
@davidorti7054
@davidorti7054 3 года назад
This is great!
@jaimemartinez9792
@jaimemartinez9792 4 года назад
Thanks for the help. I was trying to mount using the recommended NFS method that Synology has documentation on but I wasn't getting much traction. One short Google later lead me to your video and I caught my mistake (uid) and a better/more familiar way to mount it.
@SpaceRexWill
@SpaceRexWill 4 года назад
Hey awesome! Glad it worked!
@MalikMuradAli
@MalikMuradAli 4 года назад
Thank you. Appreciate the videos. :-)
@SpaceRexWill
@SpaceRexWill 4 года назад
Thanks! Always great when people like my videos!
@notreallyme425
@notreallyme425 2 года назад
So I successfully did this on Linux Mint connecting to my Synology. But at 5:30 I had to put my password in single quotes like ‘password’ but I didn’t have to do that in the .smbServer file that you made. FYI for those watching.
@CasparvanderLinden
@CasparvanderLinden Год назад
Just found out, after several reboots, I did do needed to enable the SMB application for the user in the NAS. I've been staring at my fstab for quite a while. ;) Note: I did also use smb3 instead of cifs (on a PI). Not exactly sure what can be gained with that. Oh and also do NOT have the Synology make up a password for you, as the non-alphanumeric characters f^>* up your authentication (unless you know how to escape those).
@PaulBailey3
@PaulBailey3 10 месяцев назад
What's the big diff in cifs and nfs?
@ozgurdemir8929
@ozgurdemir8929 4 года назад
If I follow these steps, is it possible for me to see the files I have on my Synology, so I can use it for de plex server I'm running on my ubuntu? It's probably easy, but still didn't figure it out yet how to do this properly
@SpaceRexWill
@SpaceRexWill 4 года назад
Total! This is the way I get data on my synology volumes into my VM’s
@ozgurdemir8929
@ozgurdemir8929 4 года назад
@@SpaceRexWill Than I will try this. If I have any questions, can and will you help me with that as well??
@SpaceRexWill
@SpaceRexWill 4 года назад
Yeah it should be pretty straight forward!
@ozgurdemir8929
@ozgurdemir8929 4 года назад
@@SpaceRexWill Okay, I'll try. Thanks for the reponses!
@kevinkillworth5470
@kevinkillworth5470 2 года назад
SpaceRex, I had everything working in accorance with your tutorial here. Yesterday I updated my system and saw that cifs-utils was part of the update. Now my NAS shares will not boot at startup, I did not change anything in the fstab file from when it was previously working. I can mount the shares through the terminal through. Any idea what happened to automount?
@SpaceRexWill
@SpaceRexWill 2 года назад
If you do a sudo mount -a and it works you might need to enable “wait for network access” as the machine is trying to mount the drives before the network starts
@kevinkillworth5470
@kevinkillworth5470 2 года назад
@@SpaceRexWill Ok, Yes, sudo mount -a works. Thanks, Rex! I'll try adding _netdev to fstab when I get home tonight.
@Rhamius1
@Rhamius1 2 года назад
@@SpaceRexWill Awesome, that definitely worked. Thank you, Rex!
@nag975
@nag975 2 года назад
it worked in shell 👍👍… but im unable to view files and folder in GUI 😕😕
@SpaceRexWill
@SpaceRexWill 2 года назад
Weird, that sounds like a distro issue
@nag975
@nag975 2 года назад
@@SpaceRexWill thanks for reply .. i use Raspberry Pi OS 64bit
@jandeschepper7751
@jandeschepper7751 3 года назад
Very nice tutorial.I had to relate over to Nano as editor. Only one huge issue as on a reboot Nas content is not in the folder on the raspberry sudo nano mount - a works and all files are shown the /etc/fstab does not the line //192.16x.x.xxx/Music /home/pi/NasServer cifs username=rasp,password:1234serv,uid=1000 0 0 contains an error the x is deliberatly here and the capitals do appear in the name i did the edit of fstab as user and as root in the editor. Could that be the cause? when clicking ton the folder NasServer at the left of the filemanager i get mount:/home/pi/NasServer: operation permitted for root only all help for this newbie is welcome, tia
@Morpheus2515
@Morpheus2515 4 года назад
Great guide :) thank you so much. I have a question though, if I add the mount to fstab and my Synology is offline for some reason. What will happens with the linux server in the boot up sequence, will it hang or just boot up like nothing went wrong? :)
@SpaceRexWill
@SpaceRexWill 4 года назад
If you set the last digest of the fstab to 0 it should just not mount it
@thomasgotzsche495
@thomasgotzsche495 4 года назад
@@SpaceRexWill thanks for your reply :) , so this will be fine //192.168.0.2/Media /home/plex/Synology cifs credentials=/root/.smbServer,uid=1000 0 0 . Is it possible to auto remount check? Lets say my NUC is my Ubuntu server, the Synology will close shutdown during the evening. Next morning the Nuc is still online, but have no Synology mount. Synology boots up, and then what ? :)
@SpaceRexWill
@SpaceRexWill 4 года назад
Not that I know of. You could pretty easily script it with a cron job running every 5 min that says if you can successfully ping the IP of the NAS & the folder is not mounted then mount it
@thomasgotzsche495
@thomasgotzsche495 4 года назад
@@SpaceRexWill Ok - last Q :) . When I reboot my nas, my entire folder structure on the NUC is "not responding" . I can't use ls -la or anything to list my directories. Once the Synology is up again, everything is back to normal? Any ideas?
@danielserrao7543
@danielserrao7543 3 года назад
hi im following the tutorial and i am getting a mount error(13) when trying to mount my server. can you let me know what im doing wrong?
@mattiesmusic
@mattiesmusic 2 года назад
I've got the same problem no idea
@jonskoglund
@jonskoglund Год назад
Same here. I've been struggling for days to find an answer for this.
@jonskoglund
@jonskoglund Год назад
I've been able to successfully mount a cifs share in Ubuntu 20.04. But not happy with it. It uses a credentials file with the Synology administrator and password. Protected of course by chmod 600. If someone has a better and safer solution please share.
@BinaryRhyme.JackOfArts
@BinaryRhyme.JackOfArts 2 года назад
chmod 700 makes the file executable by the su - but it's not an executable. chmod 600 is better, methinks.
@MaineLander
@MaineLander 17 дней назад
bash: !,uid=1000: event not found And I'm stuck, all weekend, every video, I'm to old for this shit
@PotentialEn3rgy
@PotentialEn3rgy 2 года назад
This really helped me thank you very much! For anyone who can't use sudo su to switch to root try su -
@thegardenofeatin5965
@thegardenofeatin5965 3 года назад
SMB, not NFS?
@SpaceRexWill
@SpaceRexWill 3 года назад
SMB is better than NFS for most users. Much easier
@magefesa2009
@magefesa2009 4 года назад
First part of the video ok, just adding “,vers=1.0” . But seconth part is not working for me, all steps are done without error, and my /etc/fstab is like this: LABEL=writable / ext4 defaults 0 0 LABEL=system-boot /boot/firmware vfat defaults 0 1 # device-spec mount-point fs-type options dump pass //192.168.1.29/video /home/ubuntu/server cifs credentials=/root/.smbServer,uid=1000 0 0 Also tried this: LABEL=writable / ext4 defaults 0 0 LABEL=system-boot /boot/firmware vfat defaults 0 1 # device-spec mount-point fs-type options dump pass //192.168.1.29/video /home/ubuntu/server cifs credentials=/root/.smbServer,uid=1000,vers=1.0 0 0 Any ideas please ?Thnks for your videos, this channel is a great source of knowledge ! Congrats !
@SpaceRexWill
@SpaceRexWill 4 года назад
you may have to enable "wait for network to boot" on whatever OS you are using. Does sudo mount -a work?
@magefesa2009
@magefesa2009 4 года назад
@@SpaceRexWill Correct, sudo -a works. How can I tall !wait for network to boot" on my rasp 4 ? Sorry again, and thanks for this big tutos !
@SpaceRexWill
@SpaceRexWill 4 года назад
What system are you on?
@magefesa2009
@magefesa2009 4 года назад
SpaceRex Raspberry PI 4, Ubuntu 20.04, The mapped drive is a NAS Synology Drive. Thanks again !
@magefesa2009
@magefesa2009 4 года назад
I ve seen another answer pointing to do a sudo raspi-config but on my ubuntu server 20.04 terminal does not work. Ideas please ?
@lifebarier
@lifebarier 3 года назад
Why is everything being called "app" these days... feels like bloody newspeak - limit number of words to limit thought.
@DavidMcClellan
@DavidMcClellan 3 года назад
I believe it's pronounced fs tab, not f stab. I could be wrong though
@thegardenofeatin5965
@thegardenofeatin5965 3 года назад
Hey Will, I'm really goddamn lost. How do I put my Home folder on a NAS in Linux? No one in the world is willing to answer this question.
@JoaquinRamirez
@JoaquinRamirez 2 года назад
Why are you talking like that, are you trying to seduce me? what da hell bruh!
@seamusdemora5598
@seamusdemora5598 2 года назад
Not helpful... the video is advertised as covering auto mount for synology from linux. Instead, we hear about the author's raspberry pi camera setup and VMs... false advertising? And then, when we get to the parts that might have been useful, (DSM config, linux command line config), the video is too smalll (DSM) or completely non-existent (linux cli. )
@littlefrank90
@littlefrank90 3 года назад
I don't want to be rude, but the sound of the saliva in your mouth is SUPER distracting.
@SpaceRexWill
@SpaceRexWill 3 года назад
Yeah I have since fixed this problem with a new mic location
@ragavansuresh5035
@ragavansuresh5035 4 года назад
Super useful, thank you!
@SpaceRexWill
@SpaceRexWill 4 года назад
Glad it was helpful!
@ragavansuresh5035
@ragavansuresh5035 4 года назад
@@SpaceRexWill hey, so if my auto mount isn't working but mounting through mount-a is working, what do you think the problem could be? Thanks in advance!
@SpaceRexWill
@SpaceRexWill 4 года назад
So you are saying during reboot it is not mounting? I would bet your network is not connected at the time the command is firing off
@ragavansuresh5035
@ragavansuresh5035 4 года назад
@@SpaceRexWill thanks for replying so soon. That could possibly be it, but would I be able to ssh in if the network wasn't connected? Also why would the mount -a method work?
@SpaceRexWill
@SpaceRexWill 4 года назад
So I was saying that by the time the fstab is executed during boot up the network has not initialized. There are ways to “wait for network” for the fstab file. Or you could also throw something in the crontab to run 20 seconds after boot
Далее
Linux Crash Course - The /etc/fstab file
30:29
Просмотров 107 тыс.
Гаджет из даркнета 📦
00:45
Просмотров 140 тыс.
МЭЙБИ БЭЙБИ - Hit Em Up (DISS)
02:48
Просмотров 287 тыс.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
How to Secure your Synology NAS | 4K TUTORIAL
16:40
Просмотров 113 тыс.
Connect Kubernetes to your Synology NAS NFS share
13:26
Linux File System/Structure Explained!
15:59
Просмотров 4,2 млн
Mouting a Samba Share on Start-Up in Linux (FSTAB)
10:48