From owner-freebsd-questions Tue May 14 0:47:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from access.lek.ru (access.lek.ru [194.135.204.1]) by hub.freebsd.org (Postfix) with ESMTP id 41D2137B401 for ; Tue, 14 May 2002 00:47:37 -0700 (PDT) Received: from telecom.lek.ru (telecom.lek.ru [194.135.204.4]) by access.lek.ru (8.11.6/8.8.5) with ESMTP id g4E7t9L30941 for ; Tue, 14 May 2002 11:55:09 +0400 (MSD) Date: Tue, 14 May 2002 11:47:29 +0400 (MSD) From: "Ilya V. Serov" To: freebsd-questions@FreeBSD.ORG Subject: /stand tree and / directory backup/restore. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by access.lek.ru id g4E7t9L30941 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, folks. Let me introduce You to my problem. I have FreeBSD 4.5-RELEASE installed on a single box at my office. Recently I tried to make a full backup of this box to a single CD. Everything was OK, until I've tried to restore the / volume to the HDD back from a CD. Here are my actions step by step. root(mybox)/stand>mount /dev/ad0s3a /mnt root(mybox)/stand>mount_cd9660 /dev/acd0c /cdrom root(mybox)/stand>cp -rpf /cdrom/stand /mnt/stand After some while I've received the message of a kind /mnt: write failed, file system is full cp: /mnt/stand/slattach: No space left on device When I began to investigate the problem I have found a curious thing with /stand tree. root(mybox)/stand>cd /cdrom root(mybox)/cdrom>ls -1Fa ./ ../ .cshrc .profile COPYRIGHT bin/ boot/ boot.catalog cdrom/ compat@ dev/ disklabel.txt dist/ etc/ flopboot/ kernel* kernel.GENERIC* mnt/ modules/ proc/ root/ rr_moved/ sbin/ stand/ sys@ tmp/ usr/ var/ root(mybox)/cdrom>du -sk stand 61909 stand root(mybox)/cdrom>cd / root(mybox)/>pwd / root(mybox)/>du -sk /stand 2147 /stand root(mybox)/>cd stand root(mybox)/stand>ls -lFa total 62052 -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 -sh* drwxr-xr-x 5 root wheel 1024 13 ÍÁÊ 16:12 ./ drwxr-xr-x 23 root wheel 1024 27 ÁÐÒ 11:04 ../ -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 [* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 arp* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 boot_crunch* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 camcontrol* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 cpio* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 dhclient* -r-xr-xr-x 1 root wheel 6690 30 ÑÎ× 01:43 dhclient-script* drwx------ 3 root wheel 512 6 ÍÁÒ 00:22 etc/ -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 find* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 fsck* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 gunzip* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 gzip* drwxr-xr-x 2 root wheel 1024 6 ÍÁÒ 00:22 help/ -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 hostname* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 ifconfig* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 minigzip* drwxr-xr-x 2 root wheel 512 6 ÍÁÒ 00:22 modules/ -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 mount_mfs* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 mount_nfs* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 newfs* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 pccardc* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 pccardd* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 ppp* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 pwd* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 rm* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 route* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 rtsol* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 sed* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 sh* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 slattach* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 sysinstall* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 test* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 tunefs* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 usbd* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 usbdevs* -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 zcat* root(mybox)/stand>du -sk * 1.8M [ 7.0K dhclient-script 29K etc 87K help 143K modules root(mybox)/stand>ls -lFa \[ -r-xr-xr-x 33 root wheel 1913600 30 ÑÎ× 01:42 [* root(mybox)/stand> The question itself is the following: How the /stand tree is organized, what are all those files (maybe some links or something of a kind)? Is there any way to generate this part of the directory tree preperly(e. g. after it was lost or removed)? Is there any recommenations about how to make the proper backup/restore of this part of the tree? Great thanks in advance for all kinds of info on this subj. With respect, Ilya V. Serov, St-Petersburg, Russia. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message