Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!cos!asp From: asp@COS.COM (Andrew S. Partan) Newsgroups: comp.unix.questions Subject: Restoring to a smaller fs? Message-ID: <482@cos.COM> Date: Fri, 16-Oct-87 14:58:03 EDT Article-I.D.: cos.482 Posted: Fri Oct 16 14:58:03 1987 Date-Received: Sat, 17-Oct-87 21:58:48 EDT Organization: Corporation for Open Systems, McLean, VA Lines: 33 Keywords: dump/restore, smaller fs I know that at one point, one could not dump a file system, make a new smaller file system, and restore that dump into that smaller file system. Is this still so? My restore(8) man page says something about 'running as a user process' so that (I assume) it does not muck with the raw disk but just creates files like any 'normal' user process might. This leads me to believe that I could do a restore into a smaller partition (assuming that there is sufficient disk space to hold all of the files). [I really do not want to have to tar files out & back in again.] We are running Sun OS 3.4 (based on BSD 4.2, with some BSD 4.3 and System V stuff). I think that I am using BSD 4.2's dump/restore. I have one file system (partition) about 70% full with about 40 Meg left over. I need to make another partition larger (and thus make the first one smaller). If I make the first partition smaller by about 20 Meg, its files will still fit onto it. Can I dump the partition, make it smaller, and restore my dump onto that (smaller) partition? Extract from restore(8): .... Because restore runs in user mode, it has no control over inode allocation; this means that restore repositions the files, although it does not change their contents. ... Please reply by mail, I will summarize to the newsgroup. Thanks in advance for any help. -- --asp (Andrew Partan @ Corporation for Open Systems) -- asp@cos.com -- {uunet, sundc, decuac, hqda-ai, hadron}!cos!asp