Author Topic: Mounting Samba share error  (Read 3976 times)

DanSpeed

  • Newbie
  • *
  • Posts: 7
Mounting Samba share error
« on: November 17, 2014, 09:02:00 AM »
Hi,

I'm trying PXE Boot ISO over Samba. I followed the steps in 3.2. NAS MS networking enabled and TFTP directory structure setup with iso in /tftpboot/ploplinux-netboot/ and symlink created. TFTP root directory set to /tftpboot/ploplinux-netboot and permission is everyone read only.

Router DHCP dnsmasq.conf.add in /jffs I added;
dhcp-boot=pxelinux.0,,192.168.2.52
dhcp-option=66,"192.168.2.52"   (net says something about use 66 when DHCP and TFTP not on same machine)

I added the ploplinux-netboot section to /etc/config/smb.conf on the NAS -- I assumed that's what you meant by Create the share.

smb-iso.conf set to ...smbmount=//192.168.2.52/ploplinux-netboot:"":"" iso_filename=ploplinux.iso

ISO boot stops at ...

Mounting Samba share
mount: mounting //192.168.2.52/ploplinux-netboot on /media0 failed: No such device or address
> Plop Linux not found on //192.168.2.52/ploplinux-netboot
Searching on .....


What am I doing wrong? Thanks.

DanSpeed

  • Newbie
  • *
  • Posts: 7
Re: Mounting Samba share error
« Reply #1 on: November 17, 2014, 22:49:54 PM »
I got it working by placing the iso in a root folder on the NAS.  :)

I now tried setup 3.1 "Boot with Samba network share" and same mount issue.  :(

Maybe it's a NAS subfolder permission issue.


Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2440
  • a command shell is enough to do amazing things
Re: Mounting Samba share error
« Reply #2 on: November 18, 2014, 06:13:56 AM »
hello,

when booting fails and you come to the busybox shell, then try to mount the samba share by hand. then you should be able to figure out the problem.

regards
elmar

DanSpeed

  • Newbie
  • *
  • Posts: 7
Re: Mounting Samba share error
« Reply #3 on: November 18, 2014, 06:28:38 AM »
[SOLVED]

"No such device or address" I had to add "/share/HDA_DATA" to "path = " in smb.conf

"Permission denied" I had to add "public = yes" or "valid users = <username>" in smb.conf

[ploplinux-netboot]
path = /share/HDA_DATA/tftpboot/ploplinux-netboot
writable = no
read only = no
public = yes
# or
valid users = "Test"

DanSpeed

  • Newbie
  • *
  • Posts: 7
Re: Mounting Samba share error
« Reply #4 on: November 18, 2014, 06:33:23 AM »
hello,

when booting fails and you come to the busybox shell, then try to mount the samba share by hand. then you should be able to figure out the problem.

regards
elmar

Good idea! I never thought of that. I wish there was a samba log but I guess that's not possible -- maybe my NAS creates a log somewhere. It does for TFTP.

Thanks.

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2440
  • a command shell is enough to do amazing things
Re: Mounting Samba share error
« Reply #5 on: November 18, 2014, 06:37:38 AM »
... I wish there was a samba log but I guess that's not possible -- maybe my NAS creates a log somewhere.

look in your smb.conf. there should be a line for logging. if not use "log file = /var/log/samba/log.%m"