PDA

View Full Version : Where should files be copied when using persisten disk image



tr
04-28-2005, 05:36 PM
If I take listing of different directories in my Knoppix 3.8.1 some are symbolic links to UNIONFS and some to KNOPPIX.IMG:


root@2[/]# ll
total 15
drwxr-xr-x 22 root root 4096 Apr 7 08:16 KNOPPIX
drwxrwxrwt 12 root root 4096 Apr 28 18:53 KNOPPIX.IMG
drwxrwxrwt 32 root root 4096 Apr 28 18:53 UNIONFS
lrwxrwxrwx 1 root root 12 Apr 28 2005 bin -> /UNIONFS/bin
lrwxrwxrwx 1 root root 13 Apr 28 2005 boot -> /UNIONFS/boot
dr-xr-xr-x 4 root root 2048 Mar 21 01:16 cdrom
lrwxrwxrwx 1 root root 12 Apr 28 2005 dev -> /UNIONFS/dev
lrwxrwxrwx 1 root root 12 Apr 28 2005 etc -> /UNIONFS/etc
lrwxrwxrwx 1 root root 15 Apr 28 2005 floppy -> /UNIONFS/floppy
lrwxrwxrwx 1 root root 17 Apr 29 2005 home -> /KNOPPIX.IMG/home
lrwxrwxrwx 1 root root 15 Apr 28 2005 initrd -> /UNIONFS/initrd
lrwxrwxrwx 1 root root 12 Apr 28 2005 lib -> /UNIONFS/lib
lrwxrwxrwx 1 root root 19 Apr 29 2005 lost+found -> /UNIONFS/lost+found
drwxr-xr-x 8 root root 1024 Apr 29 2005 mnt
lrwxrwxrwx 1 root root 13 Apr 28 2005 none -> /UNIONFS/none
dr-xr-xr-x 72 root root 0 Apr 28 2005 proc
drwxrwxrwt 8 root root 160 Apr 29 2005 ramdisk
lrwxrwxrwx 1 root root 13 Apr 28 2005 root -> /UNIONFS/root
lrwxrwxrwx 1 root root 13 Apr 28 2005 sbin -> /UNIONFS/sbin
drwxr-xr-x 10 root root 0 Apr 28 2005 sys
lrwxrwxrwx 1 root root 12 Apr 28 2005 tmp -> /ramdisk/tmp
lrwxrwxrwx 1 root root 12 Apr 28 2005 usr -> /UNIONFS/usr
lrwxrwxrwx 1 root root 12 Apr 28 2005 var -> /UNIONFS/var
lrwxrwxrwx 1 root root 16 Apr 28 2005 vmlinuz -> /UNIONFS/vmlinuz
root@2[/]# vv


So where to copy files? If I want to copy files to /var/cache/apt/archive should I place them under /UNIONFS because /var points there? If I copy files to knoppix home directory should they be placed in /KNOPPIX.IMG because home points there? Don't want to get any 'Segmentation Fault' anymore :-/


-tapsa-