u9i
Call me Uni
Hi,
i've been trying to get the samba daemon running, but it seems to fail because it does not have write access to the file system.
Console output:
So i figured i would make a symbolic link to the /var directory somewhere, so that /usr/local/samba/var/locks/smbd.pid would be writable. Of course, i cannot make this link because the filesystem is readonly. I tried remounting it as read/write using:
But this doesn't seem to give me write access to the filesystem either. Where/when does it get mounted as readonly in the first place? The fstab file and mtab files contain only:
/dev/root / ext2 defaults 0 0
and
/dev/mmcblk0p1 /mnt/sd vfat iocharset=utf8,noatime,async 0 0
respectively.
Can anyone help me with this? How can i remount the filesystem as writable? Or, the simpler solution, is there a way of getting smbd to use the /var directory instead of /usr/local/samba/var?
Thanks
Uni
i've been trying to get the samba daemon running, but it seems to fail because it does not have write access to the file system.
Console output:
Code:
root@wiz:/# smbd -i
smbd version 2.2.5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
Failed to open /usr/local/samba/private/secrets.tdb
load_client_codepage: filename /usr/local/samba/lib/codepages/codepage.850 does not exist.
load_unicode_map: filename /usr/local/samba/lib/codepages/unicode_map.850 does not exist.
load_unicode_map: filename /usr/local/samba/lib/codepages/unicode_map.ISO8859-1 does not exist.
ERROR: can't open /usr/local/samba/var/locks/smbd.pid: Error was Read-only file system
So i figured i would make a symbolic link to the /var directory somewhere, so that /usr/local/samba/var/locks/smbd.pid would be writable. Of course, i cannot make this link because the filesystem is readonly. I tried remounting it as read/write using:
Code:
root@wiz:/# mount -o remount,rw /dev/root /
But this doesn't seem to give me write access to the filesystem either. Where/when does it get mounted as readonly in the first place? The fstab file and mtab files contain only:
/dev/root / ext2 defaults 0 0
and
/dev/mmcblk0p1 /mnt/sd vfat iocharset=utf8,noatime,async 0 0
respectively.
Can anyone help me with this? How can i remount the filesystem as writable? Or, the simpler solution, is there a way of getting smbd to use the /var directory instead of /usr/local/samba/var?
Thanks
Uni