🌐 English

    Mounting OFFS#

    Mounting is performed using the offs.fuse tool.

    Usage of offs.fuse#

    The format of the offs.fuse command is as follows:

    offs.fuse [-e] [-d <block device path>] [-f] <mountpoint>
    
    • The -d option represents the block device path. If the -d option is absent, the /dev/mmcblk0p1 device is used.
    • The -e option is used when mounting to an external HDD or SSD instead of an SD card.
    • The -f option mounts in the foreground. When the user presses the Ctrl+C keys, it unmounts and terminates. Formatting information and the current usage can be verified.

    Examples of offs.fuse Usage#

    Using an SD Card#

    Below is an example of mounting an SD card located at /dev/mmcblk0p1 to /mnt/sd:

    $ ./offs.fuse -d /dev/mmcblk0p1 /mnt/sd 
    
         version: 3.14.4(arm64) (build 48643)
        dev path: /dev/mmcblk0p1 (SDCARD)
    mounted path: /mnt/sd
         libfuse: v314 (build v310, use v34) mt 1
    

    Below is an example when using the -f option:

    $ ./offs.fuse -d /dev/mmcblk0p1 /mnt/sd -f
    
         version: 3.14.4(arm64) (build 48643)
        dev path: /dev/mmcblk0p1 (SDCARD)
    mounted path: /mnt/sd
         libfuse: v314 (build v310, use v34) mt 1
    WR chunk 131072 buf 1024K
    /dev/mmcblk0 readonly? 0
    MBR fs 8160
    PBR cl 16384, spc 32, bps 512
    OFFS(ver. 3.14, type 1) detected
    FAT 0x404000 0xb7c000 32 15296
    DAT 0x12f4000 1 1
    VOLUME: MARS
    WR align 16384 chunk 131072
    SIGNATURE: MARS
    DRIVING repairable
    PARKING repairable
    EVENT repairable
    MOTION repairable
    Configuration#5:
       DRIVING   50%   180 MB #85   -0    69 32 #43
       PARKING   20%   180 MB #34   -0    979525 75 #18
         EVENT   10%    24 MB #128  -0    1371461 93 #65
        MOTION   10%    24 MB #128  -0    1568581 158 #65
      SNAPSHOT    0%     0 MB #0    -0    1765701 0 #0
      free space: 3121528832 bytes (2976.92 MB, 2.91 GB)
    

    If a block device has not been formatted using mkfs.offs, it will not be mounted.

    Verify the mount result using the mount command.

    # mount
    /dev/root on / type squashfs (ro,relatime,errors=continue)
    devtmpfs on /dev type devtmpfs (rw,relatime,size=45476k,nr_inodes=11369,mode=755)
    proc on /proc type proc (rw,relatime)
    devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
    tmpfs on /tmp type tmpfs (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    tmpfs on /run type tmpfs (rw,relatime)
    tmpfs on /root type tmpfs (rw,nosuid,nodev,relatime)
    ubi0:ubi0_0 on /mnt/flash type ubifs (rw,relatime,assert=read-only,ubi=0,vol=0)
    offs.fuse on /mnt/sd type fuse.offs.fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
    

    Unmount using the umount command.

    $ umount /mnt/sd
    

    Using an External Storage Device#

    Below is an example of mounting to an external device.

    Verify the storage device path using commands such as lsblk. If the external hard drive is at /dev/sdk, mount it as shown in the command below:

    $ sudo ./offs.fuse -e -d /dev/sdk ~/mnt/offs -o allow_other
         version: 3.13.20(x86_64) (build 42906)
      cache size: 0(disabled)
        dev path: /dev/sdk (HDD or SSD)
    mounted path: /home/mars/mnt/offs
         libfuse: v310 (build v310, use v34) mt 1
    

    Note

    user_allow_other must be configured in /etc/fuse.conf so that general user accounts can access the file system. When using it with the root account, the -o allow_other option is not used.

    Note

    External HDDs or SSDs are supported up to a maximum of 2TB. When mounting an external storage, the OFFS kernel module driver is not required.