From owner-freebsd-current Wed Jan 16 10:33:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from marlborough.cnchost.com (marlborough.concentric.net [207.155.248.14]) by hub.freebsd.org (Postfix) with ESMTP id A961037B420 for ; Wed, 16 Jan 2002 10:33:34 -0800 (PST) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by marlborough.cnchost.com id NAA19174; Wed, 16 Jan 2002 13:33:28 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <200201161833.NAA19174@marlborough.cnchost.com> To: Arvind Srivaths Cc: freebsd-current@freebsd.org Subject: Re: size of /usr/src In-reply-to: Your message of "Tue, 15 Jan 2002 23:38:51 PST." <200201160738.XAA23971@lecs.cs.ucla.edu> Date: Wed, 16 Jan 2002 10:33:27 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Your questions belong to freebsd-questions! > I created a separate partition for /usr/src (around 420MB) and cvsup ran > out of space. Can someone give me a rough idea of how big it is? Also, > I should be able to use growfs (after booting off of a floppy) to increase > the size of the partition (if the slice has space), right? How about moving > partitions - is there an easier way than creating a partition at the end > of the slice and copying partitions down? Are you creating a 5.0-CURRENT or a 4-STABLE /usr/src? On a -STABLE: $ du -s /usr/src 355799 /usr/src On a -CURRENT: $ du -s /usr/src 389637 /usr/src FFS likes to have about 10% free space + add a few more (may be 4%) for the inodes space. So you need a partition of at least 450MB. You need to leave another 20% ~ 50% free for future source fat (second law of computer thermodynamics). A partition of 1GB wouldn't hurt! You need another 40MB or more for each kernel on whichever partition you build them. More if you turn debugging on. Instead of building kernels in /usr/src/sys/compile, you can do cd /usr/src make buildkernel KERNCONF= to build them in /usr/obj/usr/src/sys/. You don't need to boot from a floppy -- just unmount the partition. In case of the root partition you can growfs if you boot in single user. I believe initially the root partition is mounted read-only so growfs change are safe. I would reboot immediately afterwards though. For moving partitions I would use dump/restore to/from a networked machine rather than copying them around. For that you may need to boot from a floppy. Or you can just install released kernels and do something worthwhile (like build some furniture) in the time you will save :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message