How to add new disk?
-
How to add new disk?
mount /dev/ad4/ /mnt/ - not work. โ--> mount: /dev/ad4 : Invalid argument
pfsense 2.0.3 -
Is that disk formatted at all?
Wipe the disk's old partitions
dd if=/dev/zero of=/dev/ad4 count=2 bs=1k
Give it a basic partition table
fdisk -BI ad4
Give it a disk label
bsdlabel -w ad4s1
Format the partition
newfs -L myextradrive -U /dev/ad4s1
Mount it
mount -t ufs /dev/ufs/myextradrive /mnt
You can then add a line for that to /etc/fstab to make it come back at bootup. ย (At least on a full install, NanoBSD isn't quite that easy)
-
Thanks, it works.
but i can't do automount
/etc/fstab:/dev/ufs/pfsense0 / ufs ro,sync,noatime 1 1 /dev/ufs/cf /cf ufs ro,sync,noatime 1 1 /dev/ufs/ad4 /mnt ufs rw,sync,noatime 1 1
in dmesg no errors
mount -a work properlyP.S. Sorry for my bad english