dd question

William A. Mahaffey III wam at hiwaay.net
Mon Sep 28 12:58:10 UTC 2015

On 09/27/15 20:07, Warren Block wrote:
> On Sun, 27 Sep 2015, William A. Mahaffey III wrote:
>> If I use disklabel to add a 'd' slice, will that mess up what is 
>> already there ? What is the syntax for that, I don't see it in the 
>> disklabel/bsdlabel man page ? The man page for disklabel/bsdlabel 
>> shows a way to initialize a whole disk using 'fdisk -BI <dev>' & 
>> implies that this will create a 'da0s1' slice in the process. However 
>> it will also wipe out what is already there. If I do that, can I then 
>> copy the img-file contents in some way ? Thanks & TIA :-) ....
> Please stop using fdisk and bsdlabel.  gpart(8) does everything they 
> do and is easier to use.
> Messing with a bsdlabel installer image is probably a waste of time, 
> but yes, you can add a partition (a bsdlabel partition).  Or you can 
> probably use growfs to expand the filesystem to the size of the drive. 
> If you already have images on the network, consider mounting them with 
> NFS instead.

Part of the reason I ask is that I did a NetBSD 6.1.5 install early in 
the summer, & was able to resize the partitions there using their fdisk. 
However, some of the args appear to be either different functionality or 
missing in the FreeBSD version. It was quite helpful to log the install 
process & ask questions along the way with actual output info, rather 
than reconstructed from memory ....


	William A. Mahaffey III


	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                            -- Gen. George S. Patton Jr.

More information about the freebsd-questions mailing list