RE: how to do a custom install?
-Original Message- From: Gary Kline Sent: Sun 15/11/2009 8:03 PM due to strange disk problems i was down for around 30 hours. i am currently wiping dos/win off in favor of 7.2-R and i have a question about doing a custom install that would let me slice the drive into more that four pieces. i am building, by default, /, /var SWAP, and /usr it has been years since my custom install where [[*some*]] technique let me slice something like, say, /, /var, /tmp, /usr/local/ SWAP, and /usr anybody remember what keys to hit in the installation procedure? tia, gary I can't say that I remember the keystrokes, but you can have multiple disk slices (aka Windows/DOS partitions) and within each slice, multiple BSD partitions (IIRC up to 8). I have mine partitioned into (generally) / - 1GB swap - 2x - 4x RAM /tmp - 4GB /var - 20GB /usr - 40% /backup - remainder I use the whole disk for BSD (single slice) and create the partitions as whatever size suits. Dave. -- David Rawling PD Consulting And Security Email: d...@pdconsec.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to do a custom install?
Gary Kline wrote: due to strange disk problems i was down for around 30 hours. i am currently wiping dos/win off in favor of 7.2-R and i have a question about doing a custom install that would let me slice the drive into more that four pieces. i am building, by default, /, /var SWAP, and /usr it has been years since my custom install where [[*some*]] technique let me slice something like, say, /, /var, /tmp, /usr/local/ SWAP, and /usr anybody remember what keys to hit in the installation procedure? tia, gary Not sure about the terminology in use here. The old standard was to create one, or more, slice(s) and then partition with bsdlabel. In the sysinstall step for this it will run fdisk. Note that playing by the $MS standard the normal maximum number of slices would be 4, e.g. aka primary partitions in the Dos/Windows world. Fdisk makes slices. An example of a slice on an IDE drive would be ad0s1. After the fdisk step would next come bsdlabel. This is the step that creates partitions within the slice previously made with fdisk. Note the difference in terminology: what Dos/Windows refers to as a primary partition in the Unix world this is a slice. Partitions are created within a slice with bsdlabel. On the sysinstall Custom menu these two options are one above the other, e.g. Fdisk and Label. Select the Fdisk and create a slice, exit fdisk returning to sysinstall and proceed to select the Label menu option to bring up bsdlabel. (IIRC also called disklabel.) An example of a partition would be ad0s1a, ad0s1b for swap, ad0s1c is a reserved wrapper entity, ad0s1d, e, f, g. Usually ad0s1a will be your root, b will be swap, d might be /usr, e might be /var. etc. In the bsdlabel utility there is the option to choose both the partition type and size as well as it's mount point. It is actually possible to have more than 4 slices even when playing by the $MS Dos/Windows standard. Fdisk will allow for the creation of what on Dos are called extended partitions. The numbering for these starts at 5. You won't be able to boot from them and from a *Nix point of view are semi useless except within the context of Dos/Win compatibility. If this is just going to be a FreeBSD machine no need for the so-called extended partition of the Dos/Win world. Just create a slice [fisk], and break that up into partitions [bsdlabel]. If everything goes according to plan after Fdisk, Label, Return to previous menu, etc, at some point later on (IIRC after choosing packaging distributions) sysinstall will later perform the actions you configure in these preparatory steps. For reference peruse the Handbook; it's probably written clearer than I can accomplish. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to do a custom install?
On Sun, Nov 15, 2009 at 08:59:32PM +1100, David Rawling wrote: -Original Message- From: Gary Kline Sent: Sun 15/11/2009 8:03 PM due to strange disk problems i was down for around 30 hours. i am currently wiping dos/win off in favor of 7.2-R and i have a question about doing a custom install that would let me slice the drive into more that four pieces. You probably only need one slice (which MS calls a primary partition) but, you probably want to subdivide the slice in to FreeBSD partitions. i am building, by default, /, /var SWAP, and /usr it has been years since my custom install where [[*some*]] technique let me slice something like, say, Again, note the difference between slice and partition in FreeBSD. Slices are identified by numbers 1..4 and are the primary division. Partitions are subdivisions of a slice and are identified by letters a..h with 'c' reserved for the system to use. Then, you create mount points which are really directories with names such as / and /var and /usr and mount those drive-slice-partitions to the mount points. Swap is a special type that does not get mounted. jerry /, /var, /tmp, /usr/local/ SWAP, and /usr anybody remember what keys to hit in the installation procedure? tia, gary I can't say that I remember the keystrokes, but you can have multiple disk slices (aka Windows/DOS partitions) and within each slice, multiple BSD partitions (IIRC up to 8). I have mine partitioned into (generally) / - 1GB swap - 2x - 4x RAM /tmp - 4GB /var - 20GB /usr - 40% /backup - remainder I use the whole disk for BSD (single slice) and create the partitions as whatever size suits. Dave. -- David Rawling PD Consulting And Security Email: d...@pdconsec.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to do a custom install?
On Sun, 15 Nov 2009 01:03:03 -0800, Gary Kline kl...@thought.org wrote: anybody remember what keys to hit in the installation procedure? Let me access my brain... open(brain); Start installation which brings up sysinstall. Choose CUSTOM. First set up slice in FDISK, press 'd' to nuke 'em all, then 'c' to create a new slice covering the whole disk (I think this is what you want), give it active attribute with 's', then 'q' to quit and write changes. Choose standard MBR. The go to PARTITIONS. With 'c' (each one) create: 1 GB - FS - mount as / 2 GB - SWAP 1 GB - FS - mount as /tmp 1 GB - FS - mount as /var 10 GB - FS - mount as /usr 50 GB - FS - mount as /usr/local * - FS - mount as /home Adjust numbers to your individual needs, 'q' when done. After that, proceed with installation. Choose packages, services and other stuff as you want. Always keep in mind: READ what's on the screen. Not doing that could lead to massive data destruction. Oh wait, who am I talking to? You already know that, and I didn't say anything. :-) According to terminology: In MICROS~1 land, slices are called DOS primary partitions. There can be 4 of them. FreeBSD can create more than 4 slices per disk. What FreeBSD calls partitions (i. e. subdivisions of a slice, each holding a file system) have no expression in MICROS~1 land and could maybe be compared to logical volumes inside a DOS extended partition. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to do a custom install?
On Sun, Nov 15, 2009 at 08:59:32PM +1100, David Rawling wrote: -Original Message- From: Gary Kline Sent: Sun 15/11/2009 8:03 PM due to strange disk problems i was down for around 30 hours. i am currently wiping dos/win off in favor of 7.2-R and i have a question about doing a custom install that would let me slice the drive into more that four pieces. i am building, by default, /, /var SWAP, and /usr it has been years since my custom install where [[*some*]] technique let me slice something like, say, /, /var, /tmp, /usr/local/ SWAP, and /usr anybody remember what keys to hit in the installation procedure? tia, gary I can't say that I remember the keystrokes, but you can have multiple disk slices (aka Windows/DOS partitions) and within each slice, multiple BSD partitions (IIRC up to 8). I have mine partitioned into (generally) / - 1GB swap - 2x - 4x RAM /tmp - 4GB /var - 20GB /usr - 40% /backup - remainder I use the whole disk for BSD (single slice) and create the partitions as whatever size suits. Dave. yeah, i kinda, sorta remember now. you type A for the entire drive, then keep slicing off pieces. hmm, i think once i did that and got a big, fat X for the 5th one maybe i didn't enter the A that time. just for the heck of it, i'll retry, tx, gary -- David Rawling PD Consulting And Security Email: d...@pdconsec.net -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.31a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org