restore in Fixit mode

2008-03-27 Thread Infrax Administrator

Hello,

I am trying to restore a backup of /usr created with dump using the command:

dump -0 -Lauf - / | bzip2 | dd of=root.backup

When I restore / and /var partitions, I don't have any problems. Here's how I
do it:

1. boot FreeBSD 7.0 live CD and go to fixit mode.
2. mount /dev/ads1a partition into /mnt.
3. restore / without problems - over network using command:
   ssh 192.168.1.1 cat root.backup | /mnt2/usr/bin/bzip2 -d -c | restore -vrf -
4. mount all other partitions - /dev/ad0s1f and /dev/ad0s1d under /mnt/usr and 
/mnt/var
5. restore /var without problems as above.
6. when I try to restore /usr partition (with the command above), I get this
   several times (cca. 10x):

   /: write failed, filesystem is full

   and the restore procedure proceeds, however at the end most of the 
directories
   under /mnt/usr are empty (but not all of them).

I guess this might be because there are many more files in /usr backup file and
restore tries to cache filenames into some file on / partition (which is in 
Fixit
mode very small ramfs partition, right?). And because this cache grows too 
big
restore cannot save all the filenames and therefore also cannot restore them.

How to solve this? I have also tried restoring interactively, but the result is 
similar:
before I get the restore's command prompt, I get those filesystem is full 
errors and
if I walk through the directories of the archive with cd and ls, most of 
directories
are empty.

Thanks,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: restore in Fixit mode

2008-03-27 Thread Nejc Škoberne

Hi Douglas,


That's the problem all right (got bit years ago by it).

It's been a while but if you've got a /tmp partition, mount it over
the memory file system /tmp so restore can lay off what it needs there.
Or make a memory file system backed by swap.


Thanks for this one, it solved my problem (mounting /dev/ad0s1e over ramfs
on /tmp).

Bye,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]