From owner-freebsd-questions Fri Jan 15 11:08:59 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA25819 for freebsd-questions-outgoing; Fri, 15 Jan 1999 11:08:59 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tasam.com (tasam.com [198.232.144.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA25814 for ; Fri, 15 Jan 1999 11:08:58 -0800 (PST) (envelope-from clash@tasam.com) Received: from localhost (clash@localhost) by tasam.com (8.9.1/8.9.1) with SMTP id OAA17369 for ; Fri, 15 Jan 1999 14:08:47 -0500 (EST) Date: Fri, 15 Jan 1999 14:08:47 -0500 (EST) From: Joe Gleason To: freebsd-questions@FreeBSD.ORG Subject: Large block size for very large files Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a backup drive (8gb) and I tar the rest of my system onto that drive, so the only thing sitting on the backup drive is my 3-4gb tar file. Would it be wise for me to increse my block size so that this filesystem would have less overhead that I don't need? After doing: newfs -b 65536 -f 8192 /dev/wd2s1e I got this df output: /dev/wd2s1e 8139752 8 7488568 0% /mnt/ccd0 After doing: newfs /dev/wd2s1e I got this df output: /dev/wd2s1e 7959084 1 7322357 0% /mnt/ccd0 The one with the 64k block size seems to have more space availble. When I try to set the block size to be greater than 64k, newfs has issues: Example: Trying 128k block size: root@sh1# newfs -b 131072 -f 16384 /dev/wd2s1e newfs: /dev/wd2s1e: not a character-special device Warning: 416 sector(s) in last cylinder unallocated /dev/wd2s1e: 16408160 sectors in 4006 cylinders of 1 tracks, 4096 sectors 8011.8MB in 251 cyl groups (16 c/g, 32.00MB/g, 1024 i/g) super-block backups (for fsck -b #) at: 64, 0, 8208, 1612709888, 67174400, 81984, 8388608, 117506048, 268566528, 0,seek error: -2147483648 wtfs: Undefined error: 0 Trying 256k block size: root@sh1# newfs -b 262144 -f 32768 /dev/wd2s1e newfs: /dev/wd2s1e: not a character-special device Warning: 448 sector(s) in last cylinder unallocated /dev/wd2s1e: 16408128 sectors in 4006 cylinders of 1 tracks, 4096 sectors 8011.8MB in 251 cyl groups (16 c/g, 32.00MB/g, 2048 i/g) super-block backups (for fsck -b #) at: Segmentation fault (core dumped) Feel free to tell me I am completely insane and do not need a >64k block size. Joe Gleason Tasam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message