Problem: SAMBA with USB mountet Device under RC3
|
30th Sep, 2014, 02:51 AM
Post: #1
|
|||
|
|||
SAMBA with USB mountet Device under RC3
Hi all,
I have an externel HDD plugged into the USB-Port, which is mounted and I can find it in my Network. But I can't write on the HDD. I already checked / edited the /etc/usbmount/usbmount.conf, but it looks like it doesn't care xbian what config is made in this file!? Is there already a solution and I'm only blind? greetings Cre@tsheR |
|||
9th Oct, 2014, 02:12 AM
Post: #2
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
if you want guest ok writes (so connecting to rpi without be asked of user/pass, setting in usbmount.conf must be
sharesmb=yes sharerw=yes sharelt=no also, the mounted storage needs to be writable for user xbian in that case. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
9th Oct, 2014, 04:11 AM
Post: #3
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
That's what I've done.
But it doesn't work Even if I disable smb in the usbmount.cfg, the HDD can be found over network. |
|||
9th Oct, 2014, 04:50 AM
Post: #4
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
even after restart ? actually the mounts are being shared with disk being mounted (and removed if disk lost or unmounted).
but if you change the setting, it will become effective for those mount/umount events only on next reboot. if they still are visible, provide please output of Code: net conf list Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
9th Oct, 2014, 06:20 AM
Post: #5
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
Hey,
I got the same issue. However, thanks to you @mk01 I know what was going on and how to fix it. There was no problem with the package (it was the newest one). Here comes the output of net conf list: Code: [XBMC] So here is what I've done (as a superuser but net conf list required it earlier): 1. Copied all what's above to clipboard. 2. nano anyname.conf 3. Pasted. 4. Changed every read only = yes to read only = no and saved changes. 5. net conf drop (not sure if it is necessary but did it to clear earlier version) 6. net conf import anyname.conf 7. Reboot! And now it works! Thanks again @mk01 and hope it will help you, @Cre@tsheR, as well! |
|||
9th Oct, 2014, 10:36 PM
Post: #6
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
@biba
my feeling now is that the shares have been created initially with default setting (RO only). later even if you changed to RW, usbmount.conf was updated (so for completely new disk attached the share would be RW, but existing shares are not properly destroyed + recreated with new settings upon reboot. it was designed that way for Beta2 and since then this workflows have not been touched. than means that now at the times of RC3 something on wheezy changed and broke the expected behaviour. And of course since Beta2 Wheezy delivered new pkg versions for almost all tools/programs related to that starting with init, initscripts, upstart, smb, libsmb and we can continue. easiest solution (and more elegant than today) would be to migrate the hotplug storage shares config from net conf registry into net usershares. because their exact period validity is from creation until reboot. just two things to quick check there - if they survive smbd process restart (it would be ugly if on smbd crash + restart they disappeared or also disappeared because of running apt-get update on *smb* packages. second - their difference to share specified via full registry record is that we can't set all share relevant settings (the command accepts few limited options during creation, nothing more and doesn't allow later edit (they can be just removed). maybe bibu you find 20-30min to recheck that ? looks like you feel comfortably with shell. if you confirm my two fears of too much useshare limitations, I will recheck the booting / share purge / recreation on boot. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
10th Oct, 2014, 04:53 AM
Post: #7
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
To be honest, I'm not sure if I get it properly and I can't play with this RPi too much (it isn't mine). However, I did many restarts before my changes (every time was read only) and after (now no problems, remains read write). Also, I had done all methods like changing owner, changing mode etc., so my config may not be the same as the clean one. And really, shell isn't my strength I just know some commands I found on the Internet but that's all. Figured it out by logical thinking and --help
Sorry I couldn't help you more. Maybe there are some commands I could type but I'd rather not change anything there. Maybe file system is relevant – it is ext4. |
|||
19th Oct, 2014, 07:45 PM
Post: #8
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
(9th Oct, 2014 06:20 AM)bibu Wrote: Hey, Thank you both! After trying everything I could think of for hours, this worked perfectly. |
|||
29th Jul, 2015, 06:39 AM
Post: #9
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
Hi!
I had the exact same problem and was fiddling around without success. Then this "net conf" stuff solved my problem. Thanks for sharing. I see this xbian behaviour as a bug. Is it already put into xbian's the bug tracking system? |
|||
29th Jul, 2015, 07:42 AM
Post: #10
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
Not sure, can you check and if not, post it?
pilight - modular domotica solution
|
|||
16th Aug, 2015, 03:28 AM
Post: #11
|
|||
|
|||
RE: SAMBA with USB mountet Device under RC3
(9th Oct, 2014 10:36 PM)mk01 Wrote: @biba I can confirm that I did exactly what you described in exactly that order and it resulted in the described behaviour that I could not write to the share. |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[SOLVED] Only first device can connect to Samba after restart | Dzintars Bergs | 5 | 11,873 |
26th May, 2023 12:50 PM Last Post: victorpatrick |