format slice from commandline

Jerry McAllister jerrymc at clunix.cl.msu.edu
Fri Mar 11 14:11:13 PST 2005


> 

Please post to the list and not privately.

> Hello,
>     I'm trying to add a second drive to a 5.3 system in preparation to
> gmirror raid1 the box. My problem is i'm having a heck of a time with
> sysinstall, it doesn't want to put an a partition on the second drive, so i
> thought about doing it manually, fdisk, disklabel, newfs, etc. About the
> only thing i've got working is a single slice on drive2 which is ad2 btw,

Probably it should be ad2s1.
That may make bsdlabel be unhappy.

> active i believe. The two drives are identical in size 15 gb drives, the
> master drive with a single fbsd slice and six partitions in it including c.
> I have tried to duplicate this information with disklabel piping to a file
> then loading that file on to drive2, which gives me an error about partition
> c lengths being wrong.

Partition c length should be the size of the slice.  
Look at what the block counts are.

////jerry

>     I was wondering you mentioned onlist you do this kind of stuff, if you
> could give me a procedure or a web page, the man pages are quite confusing.
> Thanks a lot.
> Dave.
> 
> 



More information about the freebsd-questions mailing list