Subject: Re: disklabel for a large disk
To: Mike Cheponis <mac@Wireless.Com>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 04/17/2001 08:13:23
On Tue, 17 Apr 2001, Mike Cheponis wrote:

> In an attempt to use up all the space, but "disklabel -R -r wd1 foo" yields:
>
> ioctl DIOCWLABEL: Inappropriate ioctl for device
> ioctl DIOCWLABEL: Inappropriate ioctl for device

You're trying to initialize the "raw" label, but the disk already
has a label. Try to "write enable" the in-core label first, and then
operate on that:

  disklabel -W wd1
  disklabel -R wd1 foo
  disklabel -N wd1


Frederick