One of two HD USB partitions not accesible on network

Hi, when I first installed OSMC it mounted both partitions of my external USB HD and they were visible & accesible in my network.

Because I had some problems with transmission I played around with many of the settings trough command line, that I don’t remember anymore.

Anyway OSMC can see both partitions all the time and I can use them without problem read/write. But my ‘Backup’ partition is not visible nor accesible on network.

Thought it might be root root problem so changed it to

It didn’t help and I can’t see “Backup” on network

at the moment my ‘fstab’ configuration doesn’t include any additional entries, and USB HD gets mounted automatically to /media/

is this samba problem?

Thanks for reading any help very much appreciated

It’s not a problem with fstab. This needs to be solved through the samba configuration.

From the little investigating I’ve just done on my own system, it seems like everything mounted in /media should be shared automatically (which was a problem for me, having mounted my drive in /mnt).

There’s just a chance that might be due to default mounting options - at one stage I noticed a difference in read/write permissions between ext, vfat, and NTFS filesystems.
If you need more help, it might assist if you post the outputs of mount sudo fdisk -l
Derek

> /dev/mmcblk0p2 on / type ext4 (rw,noatime,stripe=1024,data=ordered)
> devtmpfs on /dev type devtmpfs (rw,relatime,size=371420k,nr_inodes=92855,mode=755)
> proc on /proc type proc (rw,relatime)
> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
> tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
> tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
> cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
> cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
> cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
> cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
> cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
> cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
> systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
> debugfs on /sys/kernel/debug type debugfs (rw,relatime)
> mqueue on /dev/mqueue type mqueue (rw,relatime)
> fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
> configfs on /sys/kernel/config type configfs (rw,relatime)
> /dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
> sysfs on /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq type sysfs (rw,nosuid,nodev,noexec,relatime)
> /dev/sda3 on /media/Backup type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks)

.

Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00095b1c

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        2048   499711   497664  243M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      501760 31115263 30613504 14.6G 83 Linux

Disk /dev/sda: 2.7 TiB, 3000592977920 bytes, 732566645 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 093C1E46-xxxx-4356-xxxx-45B0748A3A92

Device         Start       End   Sectors   Size Type
/dev/sda1          6     32773     32768   128M Microsoft reserved
/dev/sda2      33024 481259519 481226496   1.8T Microsoft basic data
/dev/sda3  481259520 732566527 251307008 958.7G Microsoft basic data

> /dev/sda2 on /media/Filmy type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks)
> tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=75148k,mode=700,uid=1000,gid=1000)

Thanks for the answer @dandnsmith

Here is the output; please consider me a noob in Linux.

Device: (RPi 2)
Installation media: (SDcard- SDSDQU-016G-U46A)
Connection: (Wired)
Power Supply Type: 2A, SGS5 charger
Power specs:
Peripherals: (ext USB HD)
Storage Device (Seagate 3T - STBV3000200)
OSMC version: (OSMC 2015.07-1; kernel: Linux 4.1.3-2-osmc)
XBMC version: (?)
Codecs: (none extra)
Audio/Video Output: (HDMI)
Overclocked: no

    config file = /etc/samba/smb-local.conf

    workgroup = xxxxxx
    security=user
    follow symlinks = yes
    wide links = no
    unix extensions = no
    lock directory = /var/cache/samba
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    log level = 1
    map to guest = bad user
    usershare template share = automount template

    read raw = Yes
    write raw = Yes
    strict locking = no
    min receivefile size = 16384
    use sendfile = true
    aio read size = 2048
    aio write size = 2048
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=13107                                   2

[osmc]
    browsable = yes
    read only = no
    valid users = osmc
    path = /home/osmc
    comment = OSMC Home Directory

[automount template]
    browseable = yes
    -valid = no
    valid users = osmc
    path = %P
    hide files = /$RECYCLE.BIN/System Volume Information/desktop.ini/thumbs.db/

I thought I may have post it anyway :slight_smile:

Nothing immediately jumps out.
What are the OS on the system you are trying for network to Backup?
Derek

It’s Windows 7

Week ago it has seen both partitions though…

With Win7 I’d expect to be able to put \ip address in the address bar of Explorer (not internet explorer), and get the shares appear.
If they don’t, then I’m not sure what to look at.
Derek

Why is Backup in your fstab and Filmy is not? Does it not get mounted automatically? Try commenting it out and see if that changes anything.

I checked fstab again - nothing else there than

/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 0

My mistake. Here’s how I got my drives to share properly with samba:

Step 1: Mount both partitions in /mnt/ via fstab:

ie /mnt/Filmy and /mnt/Backup.

It’s my understanding that /media/ is used as a temporary mount space and that permanently mounted drives should be put in /mnt/.

Step 2: Make following change to smb-shares.conf so everything in /mnt is shared.

osmc@osmc:~$ cat /etc/samba/smb-shares.conf 
# Deprecated devices share. If you do not need this you can remove it.
[devices]
    browsable = yes
    read only = no
    valid users = osmc
    path = /mnt
    force user = root
    comment = Deprecated (Please use the Auto-mount Volume shares)
    hide files = /$RECYCLE.BIN/System Volume Information/desktop.ini/thumbs.db/

That solved the problem.
I have used

UUID=XxxxxxxxxxX  /mnt/Backup/  ntfs-3g   auto,user,rw,exec 0 0

in fstab, but that was not enough, so added to

/etc/samba/smb-shares.conf

lines you have written for me. Works as a charm now.

I think this is also the solution for my former “permission denied” problem, when I tried to use / set up, Transmission week ago, and was getting this message after first few kb of download.

Magically it later started to work on

/media/

mount, so at least for now I’m going to let it mount there. Plus I would get some hassle with already scraped libraries…
When I’ve “managed” torrent to work [qBittorent] at the same time I have lost “Backup” mount… till now.

That’s the story if anyone can make use of…

Thanks for help in this thread. Much appreciated. You saved my Backups :sunny: