adding a harddisk

Christoph Harder shadowomf at arcor.de
Tue Jul 11 12:38:56 PDT 2023


Hello Matt,

thank you for the detailed description.

It worked except one minor problem with the fstab example which caused a panic.
I've had to add a /dev in front of the /serno like this
serno/S3ESNX0J219064Y-1.s1e      /data    hammer2   rw    1 1
->
/dev/serno/S3ESNX0J219064Y-1.s1e      /data    hammer2   rw    1 1
Everything else worked flawlessly.

Thank you.
-Christoph

Am 10.07.2023 um 01:16 schrieb Matthew Dillon:
> Minor corrections, the example dmesg output shows two separate drives, one
> on da1, one on nvme1, as examples, and we choose one of them for the
> example.
> 
> The empty disklabel is created on slice #1 by gpt init -f, so you don't
> have to create it.  For brevity the gpt, disklabel, newfs, etc commands
> just use the device name (e.g. nvme1) rather than the serial number path
> which is more involved, but you could just as easily do everything via the
> serial number paths too.   Note that FreeBSD's 'gpt' command is different
> from ours, the gpt step doesn't conveniently create the empty label etc in
> FreeBSD.
> 
> You then edit the label to add your partition(s) as desired, format the
> filesystem, and make the appropriate specification in /etc/fstab.  Mount it
> manually e.g. 'mount /data' to test.  A reboot is not required since you've
> tested it by mounting it via the fstab entry and know it works.
> 
> -Matt
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA362479F3F0ADC06.asc
Type: application/pgp-keys
Size: 1440 bytes
Desc: OpenPGP public key
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20230711/33f83c6e/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 321 bytes
Desc: OpenPGP digital signature
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20230711/33f83c6e/attachment.sig>


More information about the Users mailing list