| From | Sent On | Attachments |
|---|---|---|
| Marc G. Fournier | Mar 28, 2007 8:26 pm | |
| Kris Kennaway | Mar 28, 2007 8:41 pm | |
| Marc G. Fournier | Mar 28, 2007 8:48 pm | |
| ill...@gmail.com | Mar 28, 2007 9:04 pm | |
| Jerry McAllister | Mar 28, 2007 9:20 pm | |
| Jerry McAllister | Mar 28, 2007 9:24 pm | |
| Jerry McAllister | Mar 28, 2007 9:29 pm | |
| RW | Mar 28, 2007 9:48 pm | |
| Jerry McAllister | Mar 28, 2007 10:13 pm | |
| Antony Mawer | Mar 29, 2007 10:07 pm | |
| Jerry McAllister | Mar 29, 2007 11:22 pm | |
| Antony Mawer | Mar 29, 2007 11:55 pm | |
| Jerry McAllister | Mar 30, 2007 3:09 pm | |
| Daniel Eriksson | Mar 31, 2007 9:35 am |
| Subject: | Why is 'disklabel'ng a new drive so difficult? | |
|---|---|---|
| From: | Jerry McAllister (jerr...@msu.edu) | |
| Date: | Mar 28, 2007 10:13:12 pm | |
| List: | org.freebsd.freebsd-questions | |
On Wed, Mar 28, 2007 at 10:49:15PM +0100, RW wrote:
On Wed, 28 Mar 2007 17:19:12 -0400 Jerry McAllister <jerr...@msu.edu> wrote:
Then, the only thing wrong is that your offsets should start at 0. They mean within the slice, not raw disk sector 0.
I was just looking at the bsdlable manpage, and it says:
"For partition `c', * will be interpreted as an offset of 0. The first partition should start at offset 16, because the first 16 sectors are reserved for metadata."
I normally use sysintall for new slices, but a few days ago I edited an old slice to turn the old root, swap, /tmp and /var partitions into a single partition d for a squid cache, and I ended-up with this:
$ bsdlabel /dev/ad0s2 # /dev/ad0s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 141853950 0 unused 0 0 # ... d: 5242880 0 4.2BSD 2048 16384 28552 f: 16777216 5242880 4.2BSD 0 0 0 g: 119833854 22020096 4.2BSD 0 0 0
I'm wondering if I should put in an offset of 16 for the d partition
I think that is only true for some old stuff in old systems. I believe I saw somewhere that it only is meaningful it the -A option is used. It might also be meaningful for the so-called 'dangerously dedicated' disk where you don't use a slice, but the raw drive. But, I never start it at an offset of 16 - always 0 if my partition is within a slice.
////jerry
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "free...@freebsd.org"





