Tap to unmute

OpenWRT - File Sharing Server on OpenWRT with Samba4 (SMB)

  Рет қаралды 38,376

Van Tech Corner

Van Tech Corner

Күн бұрын

Пікірлер: 126
@JohnnyLeuthard
@JohnnyLeuthard 3 жыл бұрын
My favorite part is at 15:07. Your videos are great by the way. Very helpful.
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Glad you like them!
@cblack2863
@cblack2863 3 жыл бұрын
This is perfect. I have been putting of installing Samba for so long.
@niggle3138
@niggle3138 2 жыл бұрын
just spent 30m-1hr trying to get the permissions right by myself. Should have looked at your video first, got it done in 5min! Best tutorial on the internet!!
@Tech-px3yn
@Tech-px3yn Жыл бұрын
I followed everything and still I do not have read and write it says the system is write protected
@xenophone9222
@xenophone9222 Жыл бұрын
Great guide, worked on my WRT3200ACM on OpenWrt 22.03.2 with one change at the step where you're mounting /dev/sda I ran "ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs" from terminal. This allowed the drive to mount when previously applying the enable option would result in no change. This step is at 5:41
@dividead100
@dividead100 2 ай бұрын
I appreciate this video, it was great 2 years ago and it was great today when I needed it again. Your English is just fine but as you have noticed lots of people got confused at the user part as it sounds like "press EXC and then colond". It took one minute me to tell on my own that EXC was escape but even after looking through the comments I still could not tell what a colond is, even though it sounds pretty close to colon but I'm tired and English is not my first language either and the only reason I realized what it was is that I saw the sign at the bottom left of the window after watching that part for the 3rd or 4th time. Seeing how many people got confused there I think it would be helpful if you add that part in text to the description of the video and no, people don't need to learn VI editor as the only time 90% of viewers will use it is when they do this and then again in two years when they will do it again and they can do it just fine without knowing VI editor if they only understood what you said.
@NoviDooms
@NoviDooms Ай бұрын
Thank you so much! This was extremely helpful :D
@MrMarconunes19
@MrMarconunes19 2 жыл бұрын
Thank you!! finally i got it right by folowing your instructions!
@VanTechCorner
@VanTechCorner 2 жыл бұрын
Glad it helped!
@MrMarconunes19
@MrMarconunes19 2 жыл бұрын
@@VanTechCorner now its sharing a small disk instead of the usb external drive
@plica06
@plica06 3 жыл бұрын
This is a really useful video. Thank you for making it !!
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Glad you enjoyed it!
@usaeabusa2453
@usaeabusa2453 2 жыл бұрын
Well done sir but do you have a video explaining how to setup a way to access the usb ssd from outside the home network?
@rifemhere2890
@rifemhere2890 3 жыл бұрын
now this is what ive been waiting for!! thankyou so much van 😆😆
@rifemhere2890
@rifemhere2890 3 жыл бұрын
btw, im using x86 openwrt and i want to share one of my folder in my hdd i hope its work
@rifemhere2890
@rifemhere2890 3 жыл бұрын
well, i want to share my ext4 on my harddrive but i cant make it work 😢
@rifemhere2890
@rifemhere2890 3 жыл бұрын
nvm its already work hehe 👌 thankyou once again
@SachinGopalkrishnan
@SachinGopalkrishnan 3 жыл бұрын
This was easy and clear. Thank you.
@MdSiam-kw5ox
@MdSiam-kw5ox 3 жыл бұрын
Thanks for the tutorial man. U are awesome.
@gonzo111081
@gonzo111081 2 ай бұрын
my Samba mounted SSD is empty but there is a Folder on that SDD
@vivahitam5444
@vivahitam5444 8 ай бұрын
Hii.. i just wonder can I access the file online, upload and download without connect with same WiFi?
@mr_eser
@mr_eser 2 жыл бұрын
I have router without usb but i have modem with usb. How can i access to that usb on openwrt and add?
@pichonPoP
@pichonPoP 2 жыл бұрын
I face so many troubles in order to this work. Finally, the options that work for me "rw,nodev,noexec,noatime,nosuid,uid=xxxx,gid=xxxxx" By passing those options and special mention to uid and gid did the magic. They need to match your user. BTW, I'm using samba4
@ytgessle
@ytgessle Жыл бұрын
Can't install on Dir842 right. I got not enough space error.
@nguijgitjiogdjiog
@nguijgitjiogdjiog Жыл бұрын
At 12:36 you say "press the exe keys and then columns and right click hit enter". I can't quite understand how to do that. What is the exe key?
@VanTechCorner
@VanTechCorner Жыл бұрын
ESC. You can learn the basic of VI editor to understand how to edit a text file in Linux.
@MarkAdrianBorja4Real
@MarkAdrianBorja4Real 22 күн бұрын
Does anyone know how to get an external hard drive to spin down when no one is accessing it?
@HartonoBangkir
@HartonoBangkir 2 жыл бұрын
not working , untill adding rule into firewall
@cbellasbusta4643
@cbellasbusta4643 3 ай бұрын
hi. at 12:34 u say "after we done hit the exc keys and then columns and right click hit enter". i can't quite make out your pronunciation. i've hit the E X C keys but it just adds those letters at the end of the word false. what am i doing wrong and what is the columns? i'm doing this on a windows 10 pc
@VanTechCorner
@VanTechCorner 3 ай бұрын
Press ESC key to change to command mode Then press :wq to Write changes & Quit. This is the basic of edit files with Vi editor. You can learn on on Google in order to modify OpenWrt config easily
@cbellasbusta4643
@cbellasbusta4643 3 ай бұрын
@@VanTechCorner ok thanks very much for that, cheers 👍
@CrUBlackNerd
@CrUBlackNerd 3 жыл бұрын
can you do one for ksmbd on openwrt? the package size is much smaller, and the luci interface is very similar.
@portuguesechannel1761
@portuguesechannel1761 2 жыл бұрын
how do you configure share without level user access I can't figure out
@iter68
@iter68 2 жыл бұрын
My drive does not show up in Mounted file systems until I installed package "kmod-fs-ntfs" which did not mention in the video.
@VanTechCorner
@VanTechCorner 2 жыл бұрын
Using kmod-fs-ntfs only provides read support while ntfs-3g provides both read & write support. You need to reboot the router after installed ntfs-3g. More info on the OpenWRT docs (links in video's description)
@massbib
@massbib 3 жыл бұрын
I'm having a problem.. I've followed the tutorial but my hdd can't be written, it can only be read.. what's wrong?
@bowwowrescue3622
@bowwowrescue3622 2 жыл бұрын
I managed to get the drive to mount after some tries and succeeded in going through the tutorial. But when I upgraded my OpenWRT to 22.03.1, it deleted all the settings and I had to reinstall. This time I just can't get the drive to mount!! All drivers are installed and I can see the drive under Mount Points menu. So what didn't I do right?
@SteelTumbleweed
@SteelTumbleweed 2 жыл бұрын
I'm having the same problem.
@SteelTumbleweed
@SteelTumbleweed 2 жыл бұрын
I figured it out. I was missing the kmod-fs-ntfs package, which another commenter notes that it wasn't mentioned in the video. Good luck buddy!
@johnpang864
@johnpang864 2 жыл бұрын
@@SteelTumbleweed thanks for the tip! Appreciate it!
@SteelTumbleweed
@SteelTumbleweed 2 жыл бұрын
@@johnpang864 I think there might be a legitimate bug on the latest version. By attempting to use kmod-fs-ntfs I get an access denied when attempting to access the drive. I found a workaround which is to manually mount the drive using just ntfs-3g, uninstalling kmod-fs-ntfs and going to ssh and typing in: ntfs-3g /dev/sda1 /mnt/sda1 -o rw,big_writes
@johnpang864
@johnpang864 2 жыл бұрын
@@SteelTumbleweed OK thanks!
@ikbalyasid
@ikbalyasid 2 ай бұрын
have you tried accessing the SMB from Windows 11 24H2? it seems the speed is limited to 10MB/s
@thiefrainb0w99
@thiefrainb0w99 2 жыл бұрын
Thanks for the tutorial! How come samba wont let files/directories be named with a colon ( : ) ?
@a892728
@a892728 2 жыл бұрын
:Illegal Filename Characters
@DeusMalleus
@DeusMalleus 2 жыл бұрын
I'm stuck on the network drive mapping, I keep getting issues with certificates and nothing seems to work. Have you experienced this problem?
@rengreng4277
@rengreng4277 Жыл бұрын
I'm using samba for the local nas network, can the files on the HDD be accessed via luci or not?
@Nazmul.Alam_
@Nazmul.Alam_ 3 жыл бұрын
Hello, My router doesn't have enough space to install samba4, is there any other package I can use to enable file sharing which lighter than samba4?
@a892728
@a892728 2 жыл бұрын
Does your router has USB port with it?
@Nazmul.Alam_
@Nazmul.Alam_ 2 жыл бұрын
@@a892728 Yes.
@a892728
@a892728 2 жыл бұрын
@@Nazmul.Alam_ 1.try extroot 2.use chfs as http file server
@CHeckmann
@CHeckmann 2 жыл бұрын
Can you please make another video toturial for ksmbd because samba a way to big for my WRT1900ACS. Can't install any update after using samba.
@dimcheg100
@dimcheg100 Жыл бұрын
Thank you
@ikbalyasid
@ikbalyasid 5 ай бұрын
i succesfully config everything but, why the transfer rate only 5MB/s on USB 3.0 an gigabit network? i used linksys ea7500 v2
@VanTechCorner
@VanTechCorner 5 ай бұрын
What is the format of the partition, is it ntfs or ext4. I have seen pool performance with ntfs/fat format.
@ikbalyasid
@ikbalyasid 5 ай бұрын
@@VanTechCorner it's ntfs, it fixed when i changed to ext4
@diwaportingrom
@diwaportingrom 3 жыл бұрын
what model of linksys you use on the video, bro?
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Hi, it is the Linksys WRT1900AC.
@rikka0_059
@rikka0_059 Жыл бұрын
If you use 1Gbps links between your router and PC, how fast can you get? I feel that the router becomes a bottleneck, even if you use a HDD
@mobilemeneer3053
@mobilemeneer3053 Жыл бұрын
I have installed openwert on an zyxel nsa325 v2 yesterday and want to share an internal sata drive. Not an usb drive. Do you know if that's possible?
@nascimentonascimento8391
@nascimentonascimento8391 4 ай бұрын
Hello friend. I have a nanopi r5c with m.2 nvme slot. is it possible to do this file sharing on the internal m.2 nvme slot?
@VanTechCorner
@VanTechCorner 4 ай бұрын
Hi, it is possible. I already have a detail guide about this, you can check out the video at kzbin.info/www/bejne/gqimqq1_nsqrnNUsi=RWJQXyPjyZoZ3t49 Link to the guide: vantc.net/setup-file-sharing-smb-on-openwrt-with-samba4.html
@utnhat3778
@utnhat3778 3 жыл бұрын
the share is not accessible ?
@waleedtaqi6445
@waleedtaqi6445 Жыл бұрын
are you on gigabit connection?
@VanTechCorner
@VanTechCorner Жыл бұрын
At the time of making this video - no Now - yes, and sometime I get up to 2Gbps throughput. You can check out my recent videos :)
@waleedtaqi6445
@waleedtaqi6445 Жыл бұрын
@VanTechCorner i get 70mb/s max on gigabit with 5ghz wifi on ipad. but my phones wifi cant go past 433mbps on 5ghz. so the speed on phone is 25mb-ish something. even my phone supports AC wifi...on pc i get 110 mbps over smb and ftp.
@ykwongtube
@ykwongtube 2 жыл бұрын
hello, I am running the OpenWrt 21.02 on the Linksys WRT32X and managed to install USB storage, Block-Mount and Samba4 following your video, but after installed the Luci-app-samba4, the new "Service" menu didn't show up. Appreciate if you can answer what I done wrong. stay safe!
@BinaryOptimizer
@BinaryOptimizer 3 жыл бұрын
such a great vid :) keep it up
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Thank you so much!
@sahilkaul4750
@sahilkaul4750 2 жыл бұрын
I have successfully configured the share and permissions. I can see that in windows and phone bit when I try to access I get access denied. All SAMBA Share username and password logs on also fine. still access denied
@FredrickCastiel
@FredrickCastiel Ай бұрын
same
@thyagorodriguesalvarez5264
@thyagorodriguesalvarez5264 2 жыл бұрын
thanks a lot :)
@andrecintra7284
@andrecintra7284 3 жыл бұрын
Excellent work this video!! Is possible make a video about config https on luci and proton vpn on openwrt 20?
@HHX_H
@HHX_H 2 жыл бұрын
I have no ideea what you said after inserting new user
@VanTechCorner
@VanTechCorner 2 жыл бұрын
You can read the guide in the video description.
@johnweldon1932
@johnweldon1932 3 жыл бұрын
Too bad, looks like the samba4 packages might be too big for my router (~10mb max storage 😢). Great content!
@paulmaydaynight9925
@paulmaydaynight9925 3 жыл бұрын
you should still be able to remote mount a -ram- drive then use that as your bigger/extra home dir using sshfs perhaps. use a cheap pi4 -with usbc 8 in 1 USB C Hub Dongle with Ethernet ,sd cards etc- as a master openwrt then relegate your old router to a openwrt client.
@ItGuyTechTips
@ItGuyTechTips 3 жыл бұрын
If you have 2 or more usb ports you can use extroot to increase the storage and install whichever packages you need.
@johnweldon1932
@johnweldon1932 3 жыл бұрын
@@ItGuyTechTips @paul maydaynight both good options, thanks guys. It's a mobile setup, so I have the phone USB tethered through the router's single USB port. Maybe I can route the traffic through USB-to-Ethernet adapter, then hook an external drive through the USB 🤔
@ItGuyTechTips
@ItGuyTechTips 3 жыл бұрын
@@johnweldon1932 which exact router do you have?
@rikka0_059
@rikka0_059 Жыл бұрын
If you dont want to do extroot, there is a hard way, compile your own image and include samba packages. The filesystem in OpenWrt has two layers, one compressed read-only and one modifiable. Something in the latter layer takes tens of megabytes could be just a few megabytes in the former layer.
@patricklee6508
@patricklee6508 Жыл бұрын
I just got myself an used WRT1900ac V2 to test drive openwrt. I'm new to linux and openwrt. I tried few different USB HDD and USB drive. Nothing seems to be working. I read some articles online saying if the drive is being detected it should show under the /dev. What is simplest way to determined the drive is working or not? Thanks.
@VanTechCorner
@VanTechCorner Жыл бұрын
Hey, the easiest way is connect the device into your computer, go to Disk Management to verify that.
@unixff108
@unixff108 2 жыл бұрын
can i do it on r2s?
@VanTechCorner
@VanTechCorner 2 жыл бұрын
Yes it will work just fine, as long as you can install the packages. However, the speed will be lower since R2S only has USB 2.0.
@rifoevert3233
@rifoevert3233 3 жыл бұрын
hello, thanks for the great videos i already try it and it works, but when i restart my x86 openwrt it not want to connect, any suggest?
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Hi, sorry for the late response. Did you solve the problem?
@rifoevert3233
@rifoevert3233 3 жыл бұрын
@@VanTechCorner hi, actually no so i just reinstall my openwrt and its work fine
@danzare5638
@danzare5638 3 жыл бұрын
Hello , I just installed the x86 EFI openwrt version 21.02.0 , just released a few days ago , on a machine and then enlarged the partition as you do and it all went well and the system said it was successful ... however when booting it up the system would not boot all the way and give message ' waiting for root device PARTUUID ' wondering if this is due to EFI , this is the first time I have seen an EFI listed in the default stable versions Maybe there is another task that needs to be done , do you know what the cause and fix is . thanks for your help !
@amiruldaniel9081
@amiruldaniel9081 3 жыл бұрын
Sir..can we use this on the raspberry pi openwrt server? and can it work with usb printer?
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Hi, you can surely use this with RPI running OpenWRT. Samba does support USB printer but I have yet to try. Maybe you can give a try and share the result.
@amiruldaniel9081
@amiruldaniel9081 3 жыл бұрын
@@VanTechCorner I see...thank you for your feedback..I'll share the result once I've try it
@a892728
@a892728 2 жыл бұрын
you can try printer with p910nd
@welliopedrodelima4782
@welliopedrodelima4782 2 жыл бұрын
Excelente vídeo. Estou tentando instalar openwrt em um TP-Link 750n. Desejo instalar nele rclone, montar GoogleDrive como disco, local. Fazer com que seja montado automaticamente no boot. Com a flag --destiny ( -) do opkg, instalar os pacotes como openvpn, samba, ddns, Lucy nesse reclone montado. Porém estou com dificuldade para fazer com que o rclone já monte o disco no start
@johnpang864
@johnpang864 2 жыл бұрын
Does this work with FAT32 and ExFAT formatted drives?
@VanTechCorner
@VanTechCorner 2 жыл бұрын
For ExFat maybe it work, but fat32 doesn’t.
@johnpang864
@johnpang864 2 жыл бұрын
@@VanTechCorner thanks for your reply. Is FAT32 possible and do you have a video on this, thank you.
@VanTechCorner
@VanTechCorner 2 жыл бұрын
Hi, fat32 is not working with this kind of sharing.
@johnpang864
@johnpang864 2 жыл бұрын
@@VanTechCorner ok thank you.
@jordanwiliams6056
@jordanwiliams6056 3 жыл бұрын
It wont let me write from windows? It says i dont have permission
@VanTechCorner
@VanTechCorner 3 жыл бұрын
Hi, how about usin a phone? Did you enable write in Samba configuration. May I know what is the format of the USB device/ HDD that you are using?
@mlapastora
@mlapastora 2 жыл бұрын
I'm unable to copy large files. Saying there is not enough space on device but I have a 1TB HDD mounted on the router. Anyone who can help?
@asifrais8927
@asifrais8927 Жыл бұрын
ThankYou I installed the kmod packages and Ntfs 3G then Reboot now after rebooting my Belkin RT3200 is dead which I bought new Yesterday 😢
@vinyht1723
@vinyht1723 2 жыл бұрын
How to change User and Password
@mohdzulhazmi5357
@mohdzulhazmi5357 3 жыл бұрын
Can i request for torrent install guide in openwrt 😅
@tauqeerwaqas
@tauqeerwaqas 3 жыл бұрын
verify_pkg_installable: Only have 4912kb available on filesystem /overlay, pkg samba4-libs needs 7010 * opkg_install_cmd: Cannot install package samba4-server.
@wisan66eni
@wisan66eni 3 жыл бұрын
same problem, altought i have 115mB free space it said i dont have space enough to install it
@djbunny5230
@djbunny5230 5 ай бұрын
In mobile it's not connecting while in pc it's working fine
@OntologicalQuandry
@OntologicalQuandry 3 жыл бұрын
Argh! This is so frustrating. OpenWRT don't allow ssh to the router if it's not its default 192.168.1.1, so your command line instructions are useless to me with my device connected into my network the way it is. I cant default it back because then it won't have internet access. Why on Earth Samba4 can't be installed from LuCI like Samba3.6 can, I cannot fathom (although I know why since the -libs dependency has shot up in size to 7.4MB for some reason...). Then, to have to use the command line to add users and passwords is such a frustrating oversight to the LuCI-app. So close and yet so far... Great instructional video, though.
@kingofsoq
@kingofsoq 3 жыл бұрын
tbh, i don't even know samba has reached version 4. 😌
@VanTechCorner
@VanTechCorner 3 жыл бұрын
LOL
@xxkenxyz666
@xxkenxyz666 3 жыл бұрын
@@VanTechCorner 😂
@hiepphat519
@hiepphat519 3 жыл бұрын
tôi đã mất 3 tiếng để làm được :))😀😀
@flyinbrianewing
@flyinbrianewing Жыл бұрын
where did you paste this line? "newuser:*:1000:65534:newuser:/var:/bin/false" You completely lost me at this point. which key is EXE and Column?
@VanTechCorner
@VanTechCorner Жыл бұрын
Hello, you better spend sometime to understand how to edit a text file with VI Editor using CLI. Use ESC to switch to Command Mode Use I to switch to Insert Mode :wq to Write & Quit www.cs.colostate.edu/helpdocs/vi.html
@flyinbrianewing
@flyinbrianewing Жыл бұрын
@@VanTechCorner I was using Putty and I'm an amateur with it too. I did get it working without a password. I have no classified documents on the drive so it's not too important to have a password.
Install OpenWRT 21.02 & DSA VLAN Configuration for WAN Interface
13:14
Van Tech Corner
Рет қаралды 26 М.
A Raspberry Pi 5 OpenWRT Router with 2.5Gbps LAN!
27:57
Home Network Guy
Рет қаралды 10 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Rahasia Fitur Google
4:48
Super Hayyi
Рет қаралды
STOP using Cloud Storage! Do this instead:
8:44
Liron Segev
Рет қаралды 1 МЛН
You're doing routers wrong... Use OpenWRT instead!
34:00
Hardware Haven
Рет қаралды 174 М.
WD My Book LIve NAS. Last OpenWRT setup firmware
33:51
NamSilat / Eugene
Рет қаралды 3,8 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН