--- title: "Disk Pack Configuration" slug: "fmadio-os-storage-disk-pack-configuration" updated: 2025-08-10T08:37:39Z published: 2025-08-10T08:37:39Z canonical: "docs.fmad.io/fmadio-os-storage-disk-pack-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.fmad.io/llms.txt > Use this file to discover all available pages before exploring further. # Disk Pack Configuration #### **NOTE: For FMADIO-5403 100G Portable capture system** #### The 100G Portable system is designed for use with multiple disk packs. This enables the system to cycle data storage easily and efficiently between capture cycles. For Datacenter like systems FMADIO devices have a disk storage mapping that rarely changes, this configuration is ```plaintext /opt/fmadio/etc/disk.lua ``` Once its been set at the factory it rarely gets changed. For FMADIO Portable capture devices, the disk inserted typically change frequently and dynamically. The following steps explain the process ## Autodetect Disk Packs ### Step 1) Configure boot.lua The file in ```plaintext /opt/fmadio/etc/boot.lua ``` Is a general purpose LUA script that runs early in the boot process. For multiple disk pack configuration we use this script to a) detect which disk pack is installed in the system to b) link the appropriate disk_X.lua to disk.lua c) allow the boot process to continue The reference boot.lua for auto diskpack mounting is located in ```plaintext /opt/fmadio/etc_ro/boot.lua.diskpack ``` Start by copying this to the active boot.lua per below command ```plaintext sudo cp /opt/fmadio/etc_ro/boot.lua.diskpack /opt/fmadio/etc/boot.lua ``` ### Step 2) Name all the disk packs The script works by searching for a disk serial number installed in the system, in the following disk configuration files ```plaintext /opt/fmadio/etc/disk_0.lua /opt/fmadio/etc/disk_1.lua /opt/fmadio/etc/disk_2.lua /opt/fmadio/etc/disk_3.lua /opt/fmadio/etc/disk_4.lua . . ``` Working sequentially thru all the disk_*.lua files on the system, searching each file for a disk serial number currently present in the system. Once it finds a disk serial number the system will symbolically link the disk_X.lua → disk.lua This means renaming the current disk.lua to disk_0.lua for example ```plaintext sudo mv /opt/fmadio/etc/disk.lua /opt/fmadio/etc/disk_0.lua ``` For each diskpack create the a new disk_X.lua file ### Step 3) Reboot Once the above has been completed, reboot the system ### Step 4) Confirm disk mapping Once the system has finished booting, confirm the system found the correct disk_N.lua file Run the fullowing ```plaintext ls -al /opt/fmadio/etc/disk* ``` Expecting a symlink to a spcific disk_N.lua file as shown below ```plaintext fmadio@fmadio100p3-539:/opt/fmadio/etc$ ls -al disk* lrwxrwxrwx    1 root     root            26 Aug 10 16:33 disk.lua -> /opt/fmadio/etc/disk_3.lua -rw-r--r--    1 fmadio   staff         1326 Sep  1  2023 disk_0.lua -rw-r--r--    1 fmadio   staff         1326 Sep  1  2023 disk_1.lua -rw-r--r--    1 fmadio   staff         1245 Sep  1  2023 disk_2.lua -rw-r--r--    1 fmadio   staff         1487 Mar  2 01:10 disk_3.lua fmadio@fmadio100p3-539:/opt/fmadio/etc$ ``` Finally running ```plaintext fmadiocli show disk status ``` To fully confirm all disks are present.