simple documentation question (adding a disk)

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Oct 8 02:37:24 PDT 2004


On 2004-10-08 00:22, "Benjamin P. Keating" <bkeating at gmail.com> wrote:
> The 'Adding a Disk' page in the Handbook explains how to add disks to
> the system via /stand/sysinstall
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html
>
> Im running FreeBSD 5.2.1 and followed the directions on the above link
> but fdisk gave me a heads up when trying to commit my changes (w):
>
> %<---------------------------
> WARNING:This should only be used when modifying an EXISTING
> installation.  If you are installing FreeBSD for the first time
> then you should simply type Q when you're finished here and your
> changes will be committed in one batch automatically at the end of
> these questions.  If you're adding a disk, you should NOT write
> from this screen, you should do it from the label editor.
> >%---------------------------
>
> Im just curious, is the documentation out of date or the sysinstall >
> configure > fdisk?

The former is more likely.  The documentation is the one that (most of
the time) has to be fixed to match the current state of the code, not
vice versa.

 Doing it via the 'label editor', im assuming mean
> bsdlabel, correct? Then this confuses me because dmesg reports i have
> a (for example)  ad4 device (/dev/ lists no other ad4 slices). So i do
> a:
>
> %<---------------------------
> bigbang:admin> sudo bsdlabel -e ad4
> bsdlabel: /dev/ad4: no valid label found
> >%---------------------------
>
> Would anyone be so kind to share with me there notes on adding a new
> disk to a system? sysinstall > congiure > fdisk seems to work but that
> warning confuses me.

You might have to install a new label before being able to edit its fields:

        > sudo bsdlabel -w ad4

- Giorgos



More information about the freebsd-questions mailing list