Plop Forum

General Category => Plop Linux => Topic started by: DanSpeed on November 17, 2014, 09:02:00 AM

Title: Mounting Samba share error
Post by: DanSpeed 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.
Title: Re: Mounting Samba share error
Post by: DanSpeed 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.

Title: Re: Mounting Samba share error
Post by: Elmar 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
Title: Re: Mounting Samba share error
Post by: DanSpeed 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"
Title: Re: Mounting Samba share error
Post by: DanSpeed on November 18, 2014, 06:33:23 AM
Quote from: Elmar 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

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.
Title: Re: Mounting Samba share error
Post by: Elmar on November 18, 2014, 06:37:38 AM
Quote from: DanSpeed on November 18, 2014, 06:33:23 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"