unable to write data to disk ad0

László Nagy nagylzs at freemail.hu
Tue Jan 3 06:51:00 PST 2006


> 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



More information about the freebsd-questions mailing list