Forum

Full Version: Samba and Disk spin down
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Apologies if this has been answered before and I can't find it, or if it's because I'm still on 1.0RC2...

The samba share for my external disk keep vanishing. My Pi Model B boots fine and makes the share for the external disk available, but after a short time they disappear.

I'm assuming this is because I have configured the disk to spin down in in the xbian / xbmc menu's. Is there a way to configure Samba to leave the share up and have disk spin back up if they are accessed?

Cheers,

Hal.
@halibut

the shares are "hot" - like usbstorage below them. Share is set to be removed if system generates event saying storage was removed. Spin down event should not be trigger for such event.

can you after system boots log into ssh, and as sudo start udev event monitoring ?
Code:
sudo udevadm monitor

then please try to send the piece of log showing events generated with the share disappearing.
(8th Oct, 2014 01:16 PM)mk01 Wrote: [ -> ]@halibut

the shares are "hot" - like usbstorage below them. Share is set to be removed if system generates event saying storage was removed. Spin down event should not be trigger for such event.

can you after system boots log into ssh, and as sudo start udev event monitoring ?
Code:
sudo udevadm monitor

then please try to send the piece of log showing events generated with the share disappearing.

Thanks mk01, is this any help?
[sudo] password for xbian:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[5517.128881] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
KERNEL[5517.134324] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [5517.137534] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
UDEV [5517.181798] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[5521.474807] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[5521.478200] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
UDEV [5522.221289] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [5522.712994] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
KERNEL[5532.233796] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
KERNEL[5532.237917] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [5532.241902] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
UDEV [5532.287868] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)

Not sure what triggers all the 'add's, as the drive was on since boot.
Reference URL's