[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where are wd0s1, wd0s2, wd0s3?



The reason disklabel complains is that you have the wrong number
for "total sectors" in there.  That should be the total capacity
of the disk in sectors (reported by the kernel during bootup, see
/var/run/dmesg.boot).

Now, WRT Linux partitions showing up in disklabel -- that doesn't
necessarily happen automagically.  When a disk has no real BSD
disklabel the kernel creates a fake one (so the disk can be used).

This fake label will include DOS and Linux partitions found in the
fdisk table.  That means that any subsequent changes to DOS or Linux
fdisk partitions will not be present in your label.  It also means
that if you constructed a label by hand those partitions will not
be present.  To see the default fake label you can run "disklabel -d wd0"
(or whatever your disk is).  You can then run "disklabel -e" and
paste any entries you want from the fake label into the real one.

 - todd