Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ 1 2 [3] 4 5 6 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to modify Samba extension, use as a unc< Next Oldest | Next Newest >
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Aug. 02 2007,02:02 QUOTE

Hmmmmmmmmmmmmmmmmm...............

There is something weird going on with the Unionfs system. Looing at the output I posted above the /ramdisk directories should be the top level ones & therfore show all the files linked in the union under that directory (I'm assuming the directory listing is in order of priority). On first booting DSL & opening emelfm (or just using 'ls' in a console) there are no files visible in e.g. /ramdisk/bin. If a file is opened in /bin using e.g. Beaver & then closed it will appear in the file list under /ramdisk/bin (files referenced by symlinks in /bin don't appear in /ramdisk/bin when they are selected).

I'm assuming that the script for unionfs sets /ramdisk/<dir> as the top priority directory. It appears that files only appear in the /ramdisk/<dir> directory listings when an operation is carried out that may require them to be writable. This is not how I thought unionfs was supposed to work. I thought all the files were visible from the top priority directory, but only physically copied to the medium holding the top priority directory if they were needed to be writable?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 02 2007,02:55 QUOTE

Quote
I'm uncertain how unionfs decides which of the files it decides to use when /etc/samba/smb.conf if accessed, but it always seems to pick up the one I want (i.e. the edited one in /ramdisk/etc) & that is the one that is stored & reloaded by the backup system when selected in filetool.lst.


using the listu command shows the search order with the topmost level preceding down.

All files are visible from /etc. You really shouldn't being specifying lower level  branches, e.g., /ramdisk/etc as only files that have been written are copied there.


Edited by roberts on Aug. 02 2007,02:55
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 02 2007,03:31 QUOTE

Quote
There is something weird going on with the Unionfs system
- Ah, it's somehow good to see that I'm not the only one who has "strange things happen" when not using the legacy boot.

I compiled the full version of samba yesterday, but it looks like smbmount is no longer supported and the kernel in DSL appears not to support the replacement mount.cifs...(or maybe I didn't use the correct syntax).

Confusingly, there is so much stuff available via Google on samba that makes it more difficult to figure out than if there were nothing at all  :)
Back to top
Profile PM 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Aug. 02 2007,03:55 QUOTE

RobertS,

I agree with what you say, but try this.

Load Samba.unc. Try to edit smb.conf. It doesn't appear in either /etc/samba or ramdisk/etc/samba.

Trying to edit /opt/samba/etc/samba/smb.conf produces a ro file warning & the file can't be altered (surely this is where unionfs should kick in & make a copy to /ramdisk/etc/samba?).

Using emelfm as root, copy smb.conf from /opt/samba/etc/samba to /etc/samba. The copy goes with no error, but no file appears in /etc/samba. Looking in /ramdisk/etc/samba - the file is now there & can be edited. In a terminal cd to /etc/samba & try 'ls',  no files are found. Still in /etc/samba try 'vi smb.conf - the file from /ramdisk/etc/samba is opened in vi !!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 02 2007,04:35 QUOTE

Quote
Using emelfm as root, copy smb.conf from /opt/samba/etc/samba to /etc/samba...
This is perhaps because of the following symlink chain which exists prior to loading the samba extension:

/etc/samba/smb.conf -> /KNOPPIX/etc/samba/smb.conf -> /opt/samba/smb.conf

I've noticed you cannot overwrite a symlink like /etc/samba/smb.conf - you have to delete it and then copy the replacement file (or it seems that way to me at least).
Back to top
Profile PM 
27 replies since Aug. 01 2007,11:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ 1 2 [3] 4 5 6 >/
reply to topic new topic new poll
Quick Reply: How to modify Samba extension

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code