Date: Thu, 16 May 2002 19:44:54 +0400 (MSD) From: "Ilya V. Serov" <serov@telecom.lek.ru> To: freebsd-questions@FreeBSD.ORG Subject: /stand tree and / directory backup/restore. Message-ID: <Pine.BSF.4.21.0205161803180.69160-100000@telecom.lek.ru>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0205161803180.69160-100000>