Dennis Vriezekolk
2002-Mar-01 01:41 UTC
[Samba] Can I mount with samba on a read-only system?
Hi, I'm trying to mount with smbmount on a read-only system. I have a writable /tmp and /var dir, so it car wirte logs. The samba daemons are running fine, but when doing smbmount I get the following error: can't lock /etc/mtab~ file This is correct, because mtab is read-only. I tried to create a link (ln -sf) from /etc/mtab to /tmp/mtab (and /etc/mtab~ to /tmp/mtab~) but this didn't work. It's able to write in mtab (a new line is added). but the error keeps ocurring. I also trie to compile, using the /tmp dir as sysconfdir, but it keeps looking in /etc... Any sugestions, tips or tricks? thanx, Dennis ==== __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com
On Fri, 1 Mar 2002, Dennis Vriezekolk wrote:> Hi, > > I'm trying to mount with smbmount on a read-only system. I have a > writable /tmp and /var dir, so it car wirte logs. The samba daemons are > running fine, but when doing smbmount I get the following error: > > can't lock /etc/mtab~ file > > This is correct, because mtab is read-only. I tried to create a linkIt's a known problem. I want to change things so that 'mount -n' and everything else that mount does just would work. If you are using 2.2.1 you can try this workaround that enables -n and a "nomtab" option: http://www.hojdpunkten.ac.se/054/samba/samba-2.2.1-smbmount-no-mtab.patch It may not apply cleanly to 2.2.2 but the necessary changes are the same. /Urban