andrewb
Group: Members
Posts: 316
Joined: July 2005 |
|
Posted: Aug. 02 2007,00:04 |
|
If you load it as a unc at boot time this is loaded before the backup is loaded so if you put /ramdisk/etc/smb.conf in your filetool.lst files it will get loaded over whatever the unc loads up. This works OK with the default boot settings (i.e. unionfs) as etc is a union with /ramdisk/etc & so writable. I use this method, but do get some stragne things happening. If I look in /etc/samba I can't see smb.conf listed, but 'vi smb.conf' does edit the file. If I look in /ramdisk/etc/samba the file is visible using 'ls' or in emelfm. There is another version of the file in /opt/samba/etc/samba which is loaded with the unc, but isn't linked to the one in /etc/samba (i.e. if you edit the one accessible through /etc/samba or /ramdisk/etc/samba it has no effect on the one in /opt/samba/etc/samba - as you would expect since it is ro). For info I've appended the output of listu on my machine with Samba.unc loaded. 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.
/KNOPPIX/bin /ramdisk/bin (rw) /KNOPPIX/bin (r-) /dev /ramdisk/dev (rw) /dev (r-) /etc /ramdisk/etc (rw) /ramdisk/opt/samba/etc (r-) /etc (r-) /KNOPPIX/lib /ramdisk/lib (rw) /ramdisk/opt/samba/lib (r-) /KNOPPIX/lib (r-) /KNOPPIX/sbin /ramdisk/sbin (rw) /KNOPPIX/sbin (r-) /KNOPPIX/usr /ramdisk/usr (rw) /ramdisk/opt/samba/usr (r-) /KNOPPIX/usr (r-) /ramdisk/var /ramdisk/var (rw)
& the output from mount:
/dev/root on / type ext2 (rw) /dev/scd0 on /cdrom type iso9660 (ro) /dev/cloop on /KNOPPIX type iso9660 (ro) /ramdisk on /ramdisk type tmpfs (rw,size=99068k,size=94284k) /proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666) unionfs on /KNOPPIX/bin type unionfs (rw,dirs=/ramdisk/bin=rw:/bin=ro) unionfs on /dev type unionfs (rw,dirs=/ramdisk/dev=rw:/dev=ro) unionfs on /etc type unionfs (rw,dirs=/ramdisk/etc=rw:/etc=rw) unionfs on /KNOPPIX/lib type unionfs (rw,dirs=/ramdisk/lib=rw:/lib=ro) unionfs on /KNOPPIX/sbin type unionfs (rw,dirs=/ramdisk/sbin=rw:/sbin=ro) unionfs on /KNOPPIX/usr type unionfs (rw,dirs=/ramdisk/usr=rw:/usr=ro) unionfs on /ramdisk/var type unionfs (rw,dirs=/ramdisk/var=rw) /dev/scd0 on /mnt/auto/cdrom type iso9660 (ro,nosuid,nodev) /cdrom/unc/samba.unc on /ramdisk/opt/samba type iso9660 (ro,loop=/dev/cloop1)
|