Dear all, my system : kern.osreldate: 503001 FreeBSD 5.3-RELEASE #0: Tue Nov 9 13:34:27 CET 2004 I am running Freebsd on a laptop (Compaq Evo N800c). I have a winnt partition (8GB) I have a ufs partition (11GB) I have ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 16374897 (7995 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 16374960, size 22695120 (11081 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 my problem is that /usr is getting full. Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2a 507630 362568 104452 78% / devfs 1 1 0 100% /dev /dev/ad0s2f 3966294 2783584 865408 76% /home /dev/ad0s2e 4737646 4222964 135672 97% /usr /dev/ad0s2d 1012974 55104 876834 6% /var I could scratch the winnt partition because I can do most of my work now with FreeBSD, I still need java/openoffice though, but therfore I need some free space first. Is there a way to use the free space from the "scratched-winnt" partition to increase the /usr size ? Kind regards, Marc Plumet.
On Wed, Jan 12, 2005 at 09:22:19AM +0100, Marc Plumet wrote:> Dear all, > > my system : > kern.osreldate: 503001 > FreeBSD 5.3-RELEASE #0: Tue Nov 9 13:34:27 CET 2004 > > I am running Freebsd on a laptop (Compaq Evo N800c). > I have a winnt partition (8GB) > I have a ufs partition (11GB) > > I have ******* Working on device /dev/ad0 ******* > parameters extracted from in-core disklabel are: > cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) > start 63, size 16374897 (7995 Meg), flag 0 > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 15/ sector 63 > The data for partition 2 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 16374960, size 22695120 (11081 Meg), flag 80 (active) > beg: cyl 1023/ head 255/ sector 63; > end: cyl 1023/ head 15/ sector 63 > > my problem is that /usr is getting full. > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s2a 507630 362568 104452 78% / > devfs 1 1 0 100% /dev > /dev/ad0s2f 3966294 2783584 865408 76% /home > /dev/ad0s2e 4737646 4222964 135672 97% /usr > /dev/ad0s2d 1012974 55104 876834 6% /var > > I could scratch the winnt partition because I can do most of my work now with > FreeBSD, I still need java/openoffice though, but therfore I need some free > space first. > > Is there a way to use the free space from the "scratched-winnt" partition to > increase the /usr size ?Perhaps someone can give you a better advice but the easiest thing to do is to: 1) remove winnt partition 2) create freebsd partition 3) find a directory that takes up most space in /usr 4) put the content of that directory onto the new partition 5) remove the old directory and mount the new partition there OR You could try something fancy like using growfs for growing the filesystem or unionfs for creating multiple filesystem layers. Hope this helps, Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050112/e2405776/attachment.bin
On Wed, Jan 12, 2005 at 09:22:19AM +0100, Marc Plumet wrote:> Dear all, > > my system : > kern.osreldate: 503001 > FreeBSD 5.3-RELEASE #0: Tue Nov 9 13:34:27 CET 2004 > > I am running Freebsd on a laptop (Compaq Evo N800c). > I have a winnt partition (8GB) > I have a ufs partition (11GB) > > I have ******* Working on device /dev/ad0 ******* > parameters extracted from in-core disklabel are: > cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) > start 63, size 16374897 (7995 Meg), flag 0 > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 15/ sector 63 > The data for partition 2 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 16374960, size 22695120 (11081 Meg), flag 80 (active) > beg: cyl 1023/ head 255/ sector 63; > end: cyl 1023/ head 15/ sector 63 > > my problem is that /usr is getting full. > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s2a 507630 362568 104452 78% / > devfs 1 1 0 100% /dev > /dev/ad0s2f 3966294 2783584 865408 76% /home > /dev/ad0s2e 4737646 4222964 135672 97% /usr > /dev/ad0s2d 1012974 55104 876834 6% /var > > I could scratch the winnt partition because I can do most of my work now with > FreeBSD, I still need java/openoffice though, but therfore I need some free > space first. > > Is there a way to use the free space from the "scratched-winnt" partition to > increase the /usr size ?You're best bet is probably to make the winnt drive into /usr/local. That's there the biggest stuff goes. You may have to do some further juggling of space to get openoffice to build, but it will certaintly install. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050112/bf0a1195/attachment.bin
On Wed, Jan 12, 2005 at 09:22:19AM +0100, Marc Plumet wrote:> Dear all, > > my system : > kern.osreldate: 503001 > FreeBSD 5.3-RELEASE #0: Tue Nov 9 13:34:27 CET 2004 > > I am running Freebsd on a laptop (Compaq Evo N800c). > I have a winnt partition (8GB) > I have a ufs partition (11GB)<snip>> my problem is that /usr is getting full.,snip>> I could scratch the winnt partition because I can do most of my work > now with FreeBSD, I still need java/openoffice though, but therfore I > need some free space first. > > Is there a way to use the free space from the "scratched-winnt" partition to > increase the /usr size ?You could look at disk contatation, see gconcat(8) or striping, see gstripe(8). I'm not sure if this works for disk partitions, or if you need a complete disk for that. But this would require a backup of /usr, newfs-ing the concatenated device followed by restoring the backup. Another option would be to copy a large part of /usr, say /usr/local to the reformatted former winnt partition and mount it at /usr/local. Other directories could be moveed to the new partition and symlinked to their previous places. Roland -- R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050112/b07c9e7f/attachment.bin