Thread: growfs
View Single Post
  #3   (View Single Post)  
Old 3rd October 2008
tad1214 tad1214 is offline
Real Name: Thomas Donnelly
Fdisk Soldier
 
Join Date: Jun 2008
Location: Houston, TX
Posts: 60
Default

Code:
Otter# bsdlabel /dev/mirror/gm0
bsdlabel: a -m <architecture> option must be specified

Otter# bsdlabel -m sparc64 /dev/mirror/gm0
bsdlabel: Unsupported architecture
Code:
The -m machine argument forces bsdlabel to use a layout suitable for a
     different architecture.  Current valid values are i386, amd64, ia64,
     pc98, and alpha.  If this option is omitted, bsdlabel will use a layout
     suitable for the current machine.
it would appear no sparc64 support :-\

Google time go!
Answer: sunlabel

Ok, now to stumble through this.

Code:
# /dev//mirror/gm0:
text: FreeBSD17G cyl 2200 alt 2 hd 255 sec 63
bytes/sector: 512
sectors/cylinder: 16065
sectors/unit: 35343000

8 partitions:
#
# Size is in sectors.
# Offset is in cylinders.
#    size       offset
#    ---------- ----------
  a:    1060290          0
  b:    4144770         66
  c:   35343000          0
  d:    4176900        324
  e:    1060290        584
  f:   24900750        650
ok so sunlabel -e mirror/gm0 puts me into an edit mode, cool. Now, how do I find the correct size of my new drive as this is my old drives size etc.?

Last edited by tad1214; 3rd October 2008 at 09:02 PM.
Reply With Quote