Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Jan 2006 02:05:45 +0100
From:      =?ISO-8859-2?Q?L=E1szl=F3_Nagy?= <nagylzs@freemail.hu>
To:        freebsd-questions@freebsd.org
Subject:   Re: unable to write data to disk ad0
Message-ID:  <43B72AE9.8090801@freemail.hu>
In-Reply-To: <43B717BF.2040102@freemail.hu>
References:  <43B717BF.2040102@freemail.hu>

next in thread | previous in thread | raw e-mail | index | archive | help

> are too confusing to me. I do not want to accidentally overwrite my 
> good partitions.


I could create a new partition using

 disklabel -e ad0s1

The result is a new 'g' partition:

messias# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  2097152        0    4.2BSD     2048 16384 28552
  b:  2097152  2097152      swap
  c: 160071597        0    unused        0     0         # "raw" part, 
don't edit
  d:  6291456  4194304    4.2BSD     2048 16384 28552
  e:  4194304 10485760    4.2BSD     2048 16384 28552
  f: 83886080 14680064    4.2BSD     2048 16384 28552
  g: 61505453 98566144    4.2BSD     2048 16384 28552

When I try to format it:

messias# newfs -O2 /dev/ad0s1g
newfs: /dev/ad0s1g: failed to open disk for writing


What am I doing wrong?

Thanks

   Les




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43B72AE9.8090801>