Date: Sat, 17 Mar 2001 20:27:37 -0600 From: David Kelly <dkelly@hiwaay.net> To: "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Migrating freebsd to a larger partition? Message-ID: <200103180227.f2I2Rbe58809@grumpy.dyndns.org> In-Reply-To: Message from "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu> of "Sat, 17 Mar 2001 20:35:57 EST." <190480000.984879357@pyanfar.ece.cmu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
"Brandon S. Allbery KF8NH" writes: > I have a machine which originally had 3 partitions: > > 1 8MB, linux /boot > 2 2GB, unused > 3 6.75GB, extended (linux /, swap, etc.) > > I installed FreeBSD in partition 2 and migrated files and configuration > from the linux installation. Now I want to change the Linux installation > into a FreeBSD installation, and then free up partition 2 again. By any chance is there an issue with your MB BIOS and (presumably ATA) drives greater than 2G? > I deleted the extended partition (slice) from /stand/sysinstall and created > a single slice, then created FreeBSD partitions within it, newfs'ed them, > and copied the entire installation over filesystem by filesystem: Copied? With cp? dump(8) piped into restore(8) does a better job with devices, links, and maintaining file flags. You really want to free up the 2G partition? How about putting the whole drive to use under FreeBSD? You could "grow" the device /usr is on into the 3rd partition by creating yet another device using ccd(4). Am not sure whether or not the tools exist to physically extend a partition. Could also use vinum to merge the two partitions. Or the easiest thing to do is mount the new as, say, /usr1. Something big that you'd like to move, such as /usr/ports or /usr/ports/distfiles or /home/ncvs/ can be moved to /usr1 and a symlink put in its place in the original fs. I'm bad about using that solution: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s2a 31775 24680 4553 84% / /dev/da0s2e 29727 3742 23607 14% /var /dev/da0s2f 955839 704922 174450 80% /usr /dev/da0s2g 992751 391724 521607 43% /usr1 /dev/da0s2h 992751 1 913330 0% /usr2 /dev/da0s2d 992751 5 913326 0% /usr3 /dev/wd0s4a 63503 20831 37592 36% /usr4 /dev/wd0s4e 254063 6578 227160 3% /usr4/var /dev/wd0s4f 12972665 7356298 4578554 62% /usr4/usr The above is showing about 5 years of upgrading. Had thought about moving everything to the 15G ATA drive, hence the way that drive was partitioned. But I think about a week after 4.3-RELEASE with no major screaming, it will be time to make root bigger and unify the /usr's. I have an advantage you may not have: multiple HD's, tape drives, and other FreeBSD machines on the network. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103180227.f2I2Rbe58809>