Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site terak.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxb!mhuxn!mhuxm!mhuxj!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!sdcsvax!dcdwest!ittvax!decvax!genrad!panda!talcott!harvard!seismo!hao!noao!terak!sohail From: sohail@terak.UUCP (Sohail M. Hussain) Newsgroups: net.unix-wizards Subject: Q how do you patch a 4.2 filesystem, to make it smaller Message-ID: <303@terak.UUCP> Date: Fri, 25-Jan-85 19:13:59 EST Article-I.D.: terak.303 Posted: Fri Jan 25 19:13:59 1985 Date-Received: Sat, 2-Feb-85 11:25:24 EST Distribution: net Organization: Terak Corporation, Scottsdale, AZ, USA Lines: 35 We just finished upgrading from 4.1 BSD to 4.2 and I just noticed a problem with our users filesystem. We have all our users on a ra81, and i made the file system using "newfs ra0f ra81". That caused a file system of size 478582 blocks to be created starting some where in the middle of the disk, and going to the end. After making the filesystem I did a "restore r" to read in the old data from the 4.1 dump tapes. The did a "fsck /dev/ra0f" and fsck complains about being "unable to read block 478580". Futher investagation shows that blocks 478580, 478581 cannot be read. I have tried changing the value of "fs_size" in the super block, and then running fsck, but the 4.2 fsck is smarter than the 4.1 fsck, and it changed the value back to the original. I also tried changed both "fs_size" and "fs_dsize", but then fsck really complains. So my question is how can get 4.2 to not look at those 2 blocks. Any advice would be welcome, since the only alternative i can see is writting out to tape, rebuilding the partition, and reading back again. Since with tu80 drives this would take about 9-10 hours, (on a weekend too) I would like to avoid doing that. Thanks in advance for you consideration. Sohail. -- Sohail Hussain uucp: ...{decvax,hao,ihnp4,seismo}!noao!terak!sohail phone: 602 998 4800 us mail: Terak Corporation, 14151 N 76th street, Scottsdale, AZ 85260