Reference :> https://www.cyberciti.biz/faq/freebsd-adding-second-hard-disk-howto/

List all detected hard disk

[2.4.3-RELEASE][admin@pds-pfSense]/root: egrep ‘da[0-9]|cd[0-9]’ /var/run/dmesg.boot
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: ATA8-ACS SATA 1.x device
ada0: Serial Number AA00000000000110488
ada0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 512bytes)
ada0: 7641MB (15650208 512 byte sectors)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: ATA8-ACS SATA 3.x device
ada1: Serial Number S2AX20HJ
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 476940MB (976773168 512 byte sectors)
ada1: quirks=0x1

List all physical devices

[2.4.3-RELEASE][admin@pds-pfSense]/root: camcontrol devlist
at scbus0 target 0 lun 0 (pass0,ada0)
at scbus1 target 0 lun 0 (pass1,ada1)
at scbus2 target 0 lun 0 (ses0,pass2)
[2.4.3-RELEASE][admin@pds-pfSense.cattelecom.net]/root:

How do I list current partition information

[2.4.3-RELEASE][admin@pds-pfSense]/root: gpart show
=> 40    15650128 ada0  GPT (7.5G)
40             1024        1  freebsd-boot  (512K)
1064    14865408        2 freebsd-ufs      (7.1G)
14866472 782336        3 freebsd-swap (382M)
15648808      1360              – free – (680K)

=> 63     976773105 ada1 MBR (466G)
63               1985               – free – (993K)
2048          497664           1 linux-data [active] (243M)
499712            2046              – free – (1.0M)
501758 976269314           2 ebr (466G)
976771072 2096                  – free – (1.0M)

=> 0 976269314 ada1s2 EBR (466G)
0 976269314 1 linux-lvm (466G)

=> 63 976773105 diskid/DISK-S2AX20HJ MBR (466G)
63 1985 – free – (993K)
2048 497664 1 linux-data [active] (243M)
499712 2046 – free – (1.0M)
501758 976269314 2 ebr (466G)
976771072 2096 – free – (1.0M)

=> 0 976269314 diskid/DISK-S2AX20HJs2 EBR (466G)
0 976269314 1 linux-lvm (466G)

[2.4.3-RELEASE][admin@pds-pfSense]/root: gpart show ada0
=> 40 15650128 ada0 GPT (7.5G)
40 1024 1 freebsd-boot (512K)
1064 14865408 2 freebsd-ufs (7.1G)
14866472 782336 3 freebsd-swap (382M)
15648808 1360 – free – (680K)

[2.4.3-RELEASE][admin@pds-pfSense]/root: gpart show ada1
=> 63 976773105 ada1 MBR (466G)
63 1985 – free – (993K)
2048 497664 1 linux-data [active] (243M)
499712 2046 – free – (1.0M)
501758 976269314 2 ebr (466G)
976771072 2096 – free – (1.0M)

Using GEOM to probes disks

[2.4.3-RELEASE][admin@pds-pfSense.cattelecom.net]/root: sh -c ‘. /usr/share/bsdconfig/device.subr;f_device_menu “” “” “” DISK’

[2.4.3-RELEASE][admin@pds-pfSense]/var/syslog-ng: mount /dev/ada1 /var/syslog-ng/
[2.4.3-RELEASE][admin@pds-pfSense]/var/syslog-ng: pwd
/var/syslog-ng

[2.4.3-RELEASE][admin@pds-pfSense]/syslog-mk: cat /etc/fstab
/dev/gptid/d3ffa47b-85a0-11e8-af06-d43d7e7512f2 / ufs rw 1 1
/dev/gptid/d402fa05-85a0-11e8-af06-d43d7e7512f2 none swap sw 0 0
/dev/ada1 /var/syslog-ng/ ufs rw 2 2

01pfSense_Add new second harddisk

โฆษณา