Re: bsdlabel geometry params
On 06/04/12 15:25, Warren Block wrote: On Mon, 4 Jun 2012, Gary Aitken wrote: What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 That's the Storage chapter, section Command Line Utilities. That is yet another section that needs updating. In the meantime, here: I was making some notes as I went along about that. I did decide to switch, thanks. http://www.wonkity.com/~wblock/docs/html/disksetup.html The second half of that covers using gpart(8). I suggest using GPT partitions unless your configuration does not allow them (gmirror, for example). Probably should have read mail sooner... I found the wikipedia article http://en.wikipedia.org/wiki/GUID_Partition_Table exactly what I needed to make sense of gpart. Once you understand how the dang thing is laid out, the commands make sense. Without that, it's pretty difficult (for me, anyway) to figure out how it knows what it needs to know to get it done. Thanks ___ 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: bsdlabel geometry params
whats wrong in juz using bsdlabel ? On Tue, 5 Jun 2012, Gary Aitken wrote: On 06/04/12 15:25, Warren Block wrote: On Mon, 4 Jun 2012, Gary Aitken wrote: What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 That's the Storage chapter, section Command Line Utilities. That is yet another section that needs updating. In the meantime, here: I was making some notes as I went along about that. I did decide to switch, thanks. http://www.wonkity.com/~wblock/docs/html/disksetup.html The second half of that covers using gpart(8). I suggest using GPT partitions unless your configuration does not allow them (gmirror, for example). Probably should have read mail sooner... I found the wikipedia article http://en.wikipedia.org/wiki/GUID_Partition_Table exactly what I needed to make sense of gpart. Once you understand how the dang thing is laid out, the commands make sense. Without that, it's pretty difficult (for me, anyway) to figure out how it knows what it needs to know to get it done. Thanks ___ 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: bsdlabel geometry params
On 06/05/2012 10:45, Wojciech Puchar wrote: whats wrong in juz using bsdlabel ? from the 9.0R release notes: 3.2.6 Disk Partition Management Utilities In earlier releases various utilities were available to manage disk partition information. They are deprecated in favor of the gpart(8) http://www.FreeBSD.org/cgi/man.cgi?query=gpartsektion=8manpath=FreeBSD+9.0-RELEASE utility. Specifically, the fdisk(8) http://www.FreeBSD.org/cgi/man.cgi?query=fdisksektion=8manpath=FreeBSD+9.0-RELEASE, disklabel(8) http://www.FreeBSD.org/cgi/man.cgi?query=disklabelsektion=8manpath=FreeBSD+9.0-RELEASE bsdlabel(8) http://www.FreeBSD.org/cgi/man.cgi?query=bsdlabelsektion=8manpath=FreeBSD+9.0-RELEASE, and sunlabel(8) http://www.FreeBSD.org/cgi/man.cgi?query=sunlabelsektion=8manpath=FreeBSD+9.0-RELEASE utilities are no longer supported actively though these are still available for backward compatibility. On Tue, 5 Jun 2012, Gary Aitken wrote: On 06/04/12 15:25, Warren Block wrote: On Mon, 4 Jun 2012, Gary Aitken wrote: What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 That's the Storage chapter, section Command Line Utilities. That is yet another section that needs updating. In the meantime, here: I was making some notes as I went along about that. I did decide to switch, thanks. http://www.wonkity.com/~wblock/docs/html/disksetup.html The second half of that covers using gpart(8). I suggest using GPT partitions unless your configuration does not allow them (gmirror, for example). Probably should have read mail sooner... I found the wikipedia article http://en.wikipedia.org/wiki/GUID_Partition_Table exactly what I needed to make sense of gpart. Once you understand how the dang thing is laid out, the commands make sense. Without that, it's pretty difficult (for me, anyway) to figure out how it knows what it needs to know to get it done. Thanks ___ 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 -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. ___ 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
bsdlabel geometry params
According the the handbook, one should do the following to set up a new disk: 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 2 fdisk -BI da1 #Initialize your new disk 3 bsdlabel -B -w da1s1 auto #Label it. 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. 5 mkdir -p /1 6 newfs /dev/da1s1e # Repeat this for every partition you created. 7 mount /dev/da1s1e /1 # Mount the partition(s) 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg Is it necessary to fill these in, or is there a way to get some reasonable defaults? newfs -N will give you numbers for bsize and fsize, but what about bps/cpg? What does the install process do for this step? I don't remember ever having to deal with it. Gary ___ 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: bsdlabel geometry params
On Mon, 04 Jun 2012 07:53:56 -0600, Gary Aitken wrote: According the the handbook, one should do the following to set up a new disk: 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 2 fdisk -BI da1 #Initialize your new disk 3 bsdlabel -B -w da1s1 auto #Label it. 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. 5 mkdir -p /1 6 newfs /dev/da1s1e # Repeat this for every partition you created. 7 mount /dev/da1s1e /1 # Mount the partition(s) 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg Is it necessary to fill these in, or is there a way to get some reasonable defaults? newfs -N will give you numbers for bsize and fsize, but what about bps/cpg? What does the install process do for this step? I don't remember ever having to deal with it. Maybe it's bit overcomplicated. I assume as you're creating /dev/da1s1e here (non-boot volume on 1st slice, which would be /dev/da1s1a instead), so basically you're creating a kind of data disk (one full disk, not bootable). You can have that much easier: # newfs /dev/da1 Of course you can add options to newfs if needed, and also apply tunefs afterwards. But dealing with slices (which are DOS primary partitions) is not needed if what you're creating will be a data disk as described. -- 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: bsdlabel geometry params
On 06/04/12 08:42, Polytropon wrote: In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg Is it necessary to fill these in, or is there a way to get some reasonable defaults? newfs -N will give you numbers for bsize and fsize, but what about bps/cpg? What does the install process do for this step? I don't remember ever having to deal with it. Maybe it's bit overcomplicated. I assume as you're creating /dev/da1s1e here (non-boot volume on 1st slice, which would be /dev/da1s1a instead), so basically you're creating a kind of data disk (one full disk, not bootable). Actually, no. That was a cut and paste from the handbook, IIRC. The actual disk will have a backup system and another partition for cron dump files. I don't quite understand the relationship between the params in the label and the filesystem. My impression was that the params in the label for a filesystem were mandatory, but it appears not all of them are. It seems like there should be a cmd to run to get reasonable starting point numbers. If you don't have anything to go on, you could easily stick something in there that's worse than what a default would be. ___ 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: bsdlabel geometry params
On Mon, 4 Jun 2012, Gary Aitken wrote: According the the handbook, one should do the following to set up a new disk: 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 2 fdisk -BI da1 #Initialize your new disk 3 bsdlabel -B -w da1s1 auto #Label it. 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. 5 mkdir -p /1 6 newfs /dev/da1s1e # Repeat this for every partition you created. 7 mount /dev/da1s1e /1 # Mount the partition(s) 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg Is it necessary to fill these in, or is there a way to get some reasonable defaults? newfs -N will give you numbers for bsize and fsize, but what about bps/cpg? What does the install process do for this step? I don't remember ever having to deal with it. What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. ___ 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: bsdlabel geometry params
On 06/04/12 14:26, Warren Block wrote: On Mon, 4 Jun 2012, Gary Aitken wrote: According the the handbook, one should do the following to set up a new disk: 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 2 fdisk -BI da1 #Initialize your new disk 3 bsdlabel -B -w da1s1 auto #Label it. 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. 5 mkdir -p /1 6 newfs /dev/da1s1e # Repeat this for every partition you created. 7 mount /dev/da1s1e /1 # Mount the partition(s) 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg Is it necessary to fill these in, or is there a way to get some reasonable defaults? newfs -N will give you numbers for bsize and fsize, but what about bps/cpg? What does the install process do for this step? I don't remember ever having to deal with it. What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 Thanks ___ 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: bsdlabel geometry params
On Mon, 4 Jun 2012, Gary Aitken wrote: What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 That's the Storage chapter, section Command Line Utilities. That is yet another section that needs updating. In the meantime, here: http://www.wonkity.com/~wblock/docs/html/disksetup.html The second half of that covers using gpart(8). I suggest using GPT partitions unless your configuration does not allow them (gmirror, for example). ___ 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