Test Mount MBR ExFAT factory partition of a Samsung T7 500GB USB SSD disk for a Raspberry Pi 500 Keyboard, or a Raspberry Pi 5 Hardware with FreeBSD O/S

Test Mount MBR ExFAT factory partition of a Samsung T7 500GB USB SSD disk for a Raspberry Pi 500 Keyboard, or a Raspberry Pi 5 Hardware with FreeBSD O/S

Test mount Samsung T7 USB SSD normal EXFAT 7 partition as from the factory.

freebsd@generic:~ % mount
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/EFI on /boot/efi (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
freebsd@generic:~ % mount
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/EFI on /boot/efi (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
 
freebsd@generic:~ % cd /mnt/usb
freebsd@generic:/mnt/usb % ls
freebsd@generic:/mnt/usb % ls -la
total 8
drwxr-xr-x  2 root wheel 512 Nov 26 06:42 .
drwxr-xr-x  7 root wheel 512 Nov 26 06:42 ..
freebsd@generic:/mnt/usb % mount
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/EFI on /boot/efi (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
freebsd@generic:/mnt/usb % sudo mount.exfat -o ro,uid=1001,gid=1001 /dev/da0s1 /mnt/usb
Password:
FUSE exfat 1.4.0 (libfuse2)
freebsd@generic:/mnt/usb % mount
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/EFI on /boot/efi (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
/dev/da0s1 on /mnt/usb (fusefs, read-only)
freebsd@generic:/mnt/usb %

Leave OFF  option 'ro'  for mounting read and write to an EXFAT partition

Use  USER ID and GROUP ID values that match current user.  freebsd

freebsd@generic:/mnt % id
uid=1001(freebsd) gid=1001(freebsd) groups=0(wheel),1001(freebsd)
 

freebsd@generic:/mnt % sudo mount.exfat -o uid=1001,gid=1001 /dev/da0s1 /mnt/usb
FUSE exfat 1.4.0 (libfuse2)
 

Listing of the Samsung T7 500GB USB SSD factory partition with 3 files

 freebsd@generic:/mnt/usb % ls -l
total 31488
-rwxrwxrwx  1 freebsd freebsd      118 Dec 26  2019 Samsung Portable SSD SW for Android.txt
-rwxrwxrwx  1 freebsd freebsd 23890677 Sep  3  2021 SamsungPortableSSD_Setup_Mac_1.0.pkg
-rwxrwxrwx  1 freebsd freebsd  8106168 Sep  3  2021 SamsungPortableSSD_Setup_Win_1.0.exe
freebsd@generic:/mnt/usb %

So here are the directions I used to install pkg FUSEFS with help from https://x.com/i/grok


https://spmzt.net/2023/04/12/FreeBSD-Automount/   Automount NTFS EXT4 and FAT

How to Automount NTFS, EXT4, and FAT File Systems on FreeBSD and Allow Non-Root User Access

https://kflu.github.io/2018/02/03/2018-02-03-freebsd-ntfs/   Mounting FreeBSD NTFS

https://x.com/i/grok?conversation=1993557494006972693   Installing FUSEFS

 

 freebsd@generic:/mnt/usb % cat /etc/rc.conf
hostname="generic"
ifconfig_DEFAULT="DHCP inet6 accept_rtadv"
sshd_enable="YES"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
growfs_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
fuse_load="YES"
kld_list="fusefs"

Confirm It's exFAT (Since file -s Was Vague)file -s only peeked at the boot sector header and saw a generic DOS/MBR signature (normal for exFAT). Run this to check the full signature:
sh


sudo dd if=/dev/da0s1 bs=512 count=1 | hexdump -C -n 128

 TAR XZ   some directories into a single tar.xz or tar.gz file for sharing.

tar -cJvf slash_dev.tar.gz /dev

freebsd@generic:/mnt/usb % ls -l
total 31616
-rwxrwxrwx  1 freebsd freebsd      118 Dec 26  2019 Samsung Portable SSD SW for Android.txt
-rwxrwxrwx  1 freebsd freebsd 23890677 Sep  3  2021 SamsungPortableSSD_Setup_Mac_1.0.pkg
-rwxrwxrwx  1 freebsd freebsd  8106168 Sep  3  2021 SamsungPortableSSD_Setup_Win_1.0.exe
-rwxrwxrwx  1 freebsd freebsd     1788 Nov 26 10:15 slash_dev.tar.gz
freebsd@generic:/mnt/usb % mount
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/EFI on /boot/efi (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
/dev/da0s1 on /mnt/usb (fusefs)
freebsd@generic:/mnt/usb % ls -l /boot/efi
total 25380
drwxr-xr-x  1 root wheel    4096 Oct  4 13:12 EFI
-rwxr-xr-x  1 root wheel    1594 Apr  5  2023 LICENCE.broadcom
-rwxr-xr-x  1 root wheel     240 Oct  4 09:53 README
-rwxr-xr-x  1 root wheel 2031616 Nov 26 06:19 RPI_EFI.fd
-rwxr-xr-x  1 root wheel    5888 Oct  4 10:01 armstub8-gic.bin
-rwxr-xr-x  1 root wheel    5888 Oct  4 10:01 armstub8.bin
-rwxr-xr-x  1 root wheel   12115 Oct 19 09:53 audit_Oct17_2025_rpi5.txt
-rwxr-xr-x  1 root wheel   30390 Apr  5  2023 bcm2710-rpi-2-b.dtb
-rwxr-xr-x  1 root wheel   32753 Apr  5  2023 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x  1 root wheel   32142 Apr  5  2023 bcm2710-rpi-3-b.dtb
-rwxr-xr-x  1 root wheel   30285 Apr  5  2023 bcm2710-rpi-cm3.dtb
-rwxr-xr-x  1 root wheel   52593 Apr  5  2023 bcm2711-rpi-4-b.dtb
-rwxr-xr-x  1 root wheel   38182 Apr  5  2023 bcm2711-rpi-cm4-io.dtb
-rwxr-xr-x  1 root wheel   53202 Apr  5  2023 bcm2711-rpi-cm4.dtb
-rwxr-xr-x  1 root wheel   78373 Jun 11 00:24 bcm2712-d-rpi-5-b.dtb
-rwxr-xr-x  1 root wheel   78377 Jun 11 12:02 bcm2712-rpi-5-b.dtb
-rwxr-xr-x  1 root wheel   78333 Jun 11 00:24 bcm2712-rpi-500.dtb
-rwxr-xr-x  1 root wheel   79091 Jun 11 00:24 bcm2712-rpi-cm5-cm4io.dtb
-rwxr-xr-x  1 root wheel   79157 Jun 11 00:24 bcm2712-rpi-cm5-cm5io.dtb
-rwxr-xr-x  1 root wheel   79132 Jun 11 00:24 bcm2712-rpi-cm5l-cm4io.dtb
-rwxr-xr-x  1 root wheel   79198 Jun 11 00:24 bcm2712-rpi-cm5l-cm5io.dtb
-rwxr-xr-x  1 root wheel   78381 Jun 11 00:24 bcm2712d0-rpi-5-b.dtb
-rwxr-xr-x  1 root wheel   52476 Apr  5  2023 bootcode.bin
-rwxr-xr-x  1 root wheel     331 Jun 11 12:05 config.txt
-rwxr-xr-x  1 root wheel     177 Aug 21 19:54 config_4b.txt
-rwxr-xr-x  1 root wheel    2594 Oct 13 08:26 config_rpi4_rpi5.txt
-rwxr-xr-x  1 root wheel     331 Oct 13 08:26 config_rpi5.txt
drwxr-xr-x  1 root wheel    4096 Oct  4 13:12 dtb
-rwxr-xr-x  1 root wheel    7266 Apr  5  2023 fixup.dat
-rwxr-xr-x  1 root wheel    5399 Apr  5  2023 fixup4.dat
-rwxr-xr-x  1 root wheel    3173 Apr  5  2023 fixup4cd.dat
-rwxr-xr-x  1 root wheel    8381 Apr  5  2023 fixup4db.dat
-rwxr-xr-x  1 root wheel    8387 Apr  5  2023 fixup4x.dat
-rwxr-xr-x  1 root wheel    3173 Apr  5  2023 fixup_cd.dat
-rwxr-xr-x  1 root wheel   10230 Apr  5  2023 fixup_db.dat
-rwxr-xr-x  1 root wheel   10228 Apr  5  2023 fixup_x.dat
drwxr-xr-x  1 root wheel    4096 Oct  4 13:12 overlays
-rwxr-xr-x  1 root wheel 2975680 Apr  5  2023 start.elf
-rwxr-xr-x  1 root wheel 2251392 Apr  5  2023 start4.elf
-rwxr-xr-x  1 root wheel  805756 Apr  5  2023 start4cd.elf
-rwxr-xr-x  1 root wheel 3747688 Apr  5  2023 start4db.elf
-rwxr-xr-x  1 root wheel 2998888 Apr  5  2023 start4x.elf
-rwxr-xr-x  1 root wheel  805756 Apr  5  2023 start_cd.elf
-rwxr-xr-x  1 root wheel 4819624 Apr  5  2023 start_db.elf
-rwxr-xr-x  1 root wheel 3722504 Apr  5  2023 start_x.elf
-rwxr-xr-x  1 root wheel  691400 Oct  4 09:53 u-boot.bin
freebsd@generic:/mnt/usb % du -hs  /boot/efi
 28M    /boot/efi
freebsd@generic:/mnt/usb % tar -cJvf boot_efi.tar.gz /boot/efi
tar: Removing leading '/' from member names
a boot/efi
a boot/efi/EFI
a boot/efi/dtb
a boot/efi/README
a boot/efi/u-boot.bin
a boot/efi/armstub8.bin
a boot/efi/armstub8-gic.bin
a boot/efi/bootcode.bin
a boot/efi/fixup_cd.dat
a boot/efi/fixup_db.dat
a boot/efi/fixup_x.dat
a boot/efi/fixup.dat
a boot/efi/LICENCE.broadcom
a boot/efi/start_cd.elf
a boot/efi/start_db.elf
a boot/efi/start_x.elf
a boot/efi/start.elf
a boot/efi/fixup4.dat
a boot/efi/fixup4cd.dat
a boot/efi/fixup4db.dat
a boot/efi/fixup4x.dat
a boot/efi/start4.elf
a boot/efi/start4cd.elf
a boot/efi/start4db.elf
a boot/efi/start4x.elf
a boot/efi/bcm2710-rpi-2-b.dtb
a boot/efi/bcm2710-rpi-3-b.dtb
a boot/efi/bcm2710-rpi-3-b-plus.dtb
a boot/efi/bcm2710-rpi-cm3.dtb
a boot/efi/bcm2711-rpi-4-b.dtb
a boot/efi/bcm2711-rpi-cm4-io.dtb
a boot/efi/bcm2711-rpi-cm4.dtb
a boot/efi/config.txt
a boot/efi/overlays
a boot/efi/config_4b.txt
a boot/efi/config_rpi5.txt
a boot/efi/bcm2712-rpi-500.dtb
a boot/efi/bcm2712-rpi-5-b.dtb
a boot/efi/bcm2712-d-rpi-5-b.dtb
a boot/efi/config_rpi4_rpi5.txt
a boot/efi/bcm2712d0-rpi-5-b.dtb
a boot/efi/audit_Oct17_2025_rpi5.txt
a boot/efi/bcm2712-rpi-cm5-cm5io.dtb
a boot/efi/bcm2712-rpi-cm5-cm4io.dtb
a boot/efi/bcm2712-rpi-cm5l-cm5io.dtb
a boot/efi/RPI_EFI.fd
a boot/efi/bcm2712-rpi-cm5l-cm4io.dtb
a boot/efi/overlays/mmc.dtbo
a boot/efi/overlays/pwm.dtbo
a boot/efi/overlays/disable-bt.dtbo
a boot/efi/overlays/bcm2712d0.dtbo
a boot/efi/dtb/allwinner
a boot/efi/dtb/overlays
a boot/efi/dtb/rockchip
a boot/efi/dtb/freescale
a boot/efi/dtb/marvell
a boot/efi/dtb/nvidia
a boot/efi/dtb/qcom
a boot/efi/dtb/qcom/x1e78100-lenovo-thinkpad-t14s.dtb
a boot/efi/dtb/nvidia/tegra210-p2371-2180.dtb
a boot/efi/dtb/nvidia/tegra210-p3450-0000.dtb
a boot/efi/dtb/marvell/armada-3720-espressobin.dtb
a boot/efi/dtb/marvell/armada-8040-clearfog-gt-8k.dtb
a boot/efi/dtb/marvell/armada-8040-db.dtb
a boot/efi/dtb/marvell/armada-8040-mcbin.dtb
a boot/efi/dtb/marvell/armada-8040-mcbin-singleshot.dtb
a boot/efi/dtb/freescale/fsl-ls1028a-rdb.dtb
a boot/efi/dtb/freescale/fsl-lx2160a-clearfog-cx.dtb
a boot/efi/dtb/freescale/fsl-lx2160a-honeycomb.dtb
a boot/efi/dtb/freescale/fsl-lx2160a-qds.dtb
a boot/efi/dtb/freescale/fsl-lx2160a-rdb.dtb
a boot/efi/dtb/freescale/imx8mq-evk.dtb
a boot/efi/dtb/freescale/imx8mq-nitrogen.dtb
a boot/efi/dtb/rockchip/rk3399-khadas-edge-captain.dtb
a boot/efi/dtb/rockchip/rk3399-khadas-edge.dtb
a boot/efi/dtb/rockchip/rk3399-khadas-edge-v.dtb
a boot/efi/dtb/rockchip/rk3399-nanopc-t4.dtb
a boot/efi/dtb/rockchip/rk3328-nanopi-r2s.dtb
a boot/efi/dtb/rockchip/rk3399-nanopi-r4s.dtb
a boot/efi/dtb/rockchip/rk3399-rock-4c-plus.dtb
a boot/efi/dtb/rockchip/rk3399-rock-pi-4.dtb
a boot/efi/dtb/rockchip/rk3328-rock-pi-e.dtb
a boot/efi/dtb/rockchip/rk3328-rock64.dtb
a boot/efi/dtb/rockchip/rk3399-firefly.dtb
a boot/efi/dtb/rockchip/rk3399-rockpro64.dtb
a boot/efi/dtb/rockchip/rk3566-quartz64-a.dtb
a boot/efi/dtb/rockchip/rk3568-nanopi-r5s.dtb
a boot/efi/dtb/rockchip/rk3566-radxa-zero-3e.dtb
a boot/efi/dtb/rockchip/rk3566-radxa-zero-3w.dtb
a boot/efi/dtb/overlays/sun50i-a64-mmc0-disable.dtbo
a boot/efi/dtb/overlays/sun50i-a64-mmc1-disable.dtbo
a boot/efi/dtb/overlays/sun50i-a64-mmc2-disable.dtbo
a boot/efi/dtb/overlays/sun50i-a64-pwm.dtbo
a boot/efi/dtb/overlays/sun50i-a64-rpwm.dtbo
a boot/efi/dtb/overlays/sun50i-a64-spi0-spigen.dtbo
a boot/efi/dtb/overlays/sun50i-a64-timer.dtbo
a boot/efi/dtb/overlays/sun50i-h5-opp.dtbo
a boot/efi/dtb/overlays/sun50i-h5-nanopi-neo2-opp.dtbo
a boot/efi/dtb/overlays/rk3328-analog-sound.dtbo
a boot/efi/dtb/overlays/rk3328-i2c0.dtbo
a boot/efi/dtb/overlays/rk3328-uart1.dtbo
a boot/efi/dtb/overlays/rk3399-mmc0-disable.dtbo
a boot/efi/dtb/overlays/rk3399-mmc1-disable.dtbo
a boot/efi/dtb/overlays/rk3399-sdhci-disable.dtbo
a boot/efi/dtb/overlays/spigen-rpi3.dtbo
a boot/efi/dtb/overlays/spigen-rpi4.dtbo
a boot/efi/dtb/allwinner/sun50i-a64-nanopi-a64.dtb
a boot/efi/dtb/allwinner/sun50i-a64-olinuxino.dtb
a boot/efi/dtb/allwinner/sun50i-a64-pine64-lts.dtb
a boot/efi/dtb/allwinner/sun50i-a64-pine64-plus.dtb
a boot/efi/dtb/allwinner/sun50i-a64-pine64.dtb
a boot/efi/dtb/allwinner/sun50i-a64-pinebook.dtb
a boot/efi/dtb/allwinner/sun50i-a64-sopine-baseboard.dtb
a boot/efi/dtb/allwinner/sun50i-h5-orangepi-pc2.dtb
a boot/efi/dtb/allwinner/sun50i-h5-nanopi-neo2.dtb
a boot/efi/dtb/allwinner/sun50i-h6-pine-h64.dtb
a boot/efi/dtb/allwinner/sun50i-h6-pine-h64-model-b.dtb
a boot/efi/EFI/BOOT
a boot/efi/EFI/BOOT/bootaa64.efi
freebsd@generic:/mnt/usb %

freebsd@generic:/mnt/usb % 

ls -l


-rwxrwxrwx  1 freebsd freebsd 6847960 Nov 26 10:17 boot_efi.tar.gz
-rwxrwxrwx  1 freebsd freebsd    1788 Nov 26 10:15 slash_dev.tar.gz
freebsd@generic:/mnt/usb % mount
/dev/ufs/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/msdosfs/EFI on /boot/efi (msdosfs, local, noatime)
tmpfs on /tmp (tmpfs, local)
/dev/da0s1 on /mnt/usb (fusefs)
freebsd@generic:/mnt/usb %


 

 Package install md5deep auditing tool

pkg install md5deep
 
ls -lt /usr/local/bin
 
-r-xr-xr-x  1 root wheel 204320 Nov 19 05:31 hashdeep
-r-xr-xr-x  1 root wheel 204320 Nov 19 05:31 md5deep
-r-xr-xr-x  1 root wheel 204320 Nov 19 05:31 sha1deep
-r-xr-xr-x  1 root wheel 204320 Nov 19 05:31 sha256deep
-r-xr-xr-x  1 root wheel 204320 Nov 19 05:31 tigerdeep
-r-xr-xr-x  1 root wheel 204320 Nov 19 05:31 whirlpooldeep
 

 Ansible tool listing from /usr/local/bin directory

lrwxr-xr-x  1 root wheel      6 Nov  4 19:21 2to3 -> 2to3-3
lrwxr-xr-x  1 root wheel      5 Nov  4 19:21 idle -> idle3
lrwxr-xr-x  1 root wheel      6 Nov  4 19:21 pydoc -> pydoc3
lrwxr-xr-x  1 root wheel      7 Nov  4 19:21 python -> python3
lrwxr-xr-x  1 root wheel     14 Nov  4 19:21 python-config -> python3-config
lrwxr-xr-x  1 root wheel      9 Nov  1 05:44 2to3-3 -> 2to3-3.11
lrwxr-xr-x  1 root wheel      8 Nov  1 05:44 idle3 -> idle3.11
lrwxr-xr-x  1 root wheel      9 Nov  1 05:44 pydoc3 -> pydoc3.11
lrwxr-xr-x  1 root wheel     10 Nov  1 05:44 python3 -> python3.11
lrwxr-xr-x  1 root wheel     17 Nov  1 05:44 python3-config -> python3.11-config
lrwxr-xr-x  1 root wheel     12 Nov  1 01:19 ansible -> ansible-3.11
lrwxr-xr-x  1 root wheel     19 Nov  1 01:19 ansible-config -> ansible-config-3.11
lrwxr-xr-x  1 root wheel     20 Nov  1 01:19 ansible-console -> ansible-console-3.11
lrwxr-xr-x  1 root wheel     16 Nov  1 01:19 ansible-doc -> ansible-doc-3.11
lrwxr-xr-x  1 root wheel     19 Nov  1 01:19 ansible-galaxy -> ansible-galaxy-3.11
lrwxr-xr-x  1 root wheel     22 Nov  1 01:19 ansible-inventory -> ansible-inventory-3.11
lrwxr-xr-x  1 root wheel     21 Nov  1 01:19 ansible-playbook -> ansible-playbook-3.11
lrwxr-xr-x  1 root wheel     17 Nov  1 01:19 ansible-pull -> ansible-pull-3.11
lrwxr-xr-x  1 root wheel     17 Nov  1 01:19 ansible-test -> ansible-test-3.11
lrwxr-xr-x  1 root wheel     18 Nov  1 01:19 ansible-vault -> ansible-vault-3.11
-rwxr-xr-x  1 root wheel    225 Nov  1 01:19 ansible-3.11
-rwxr-xr-x  1 root wheel    226 Nov  1 01:19 ansible-config-3.11
-rwxr-xr-x  1 root wheel    227 Nov  1 01:19 ansible-console-3.11
-rwxr-xr-x  1 root wheel    223 Nov  1 01:19 ansible-doc-3.11
-rwxr-xr-x  1 root wheel    226 Nov  1 01:19 ansible-galaxy-3.11
-rwxr-xr-x  1 root wheel    229 Nov  1 01:19 ansible-inventory-3.11
-rwxr-xr-x  1 root wheel    228 Nov  1 01:19 ansible-playbook-3.11
-rwxr-xr-x  1 root wheel    224 Nov  1 01:19 ansible-pull-3.11
-rwxr-xr-x  1 root wheel    259 Nov  1 01:19 ansible-test-3.11
-rwxr-xr-x  1 root wheel    225 Nov  1 01:19 ansible-vault-3.11

 
 

 
 

Comments

Popular posts from this blog

Honey, I broke my ZFS USB SATA SSD 1 TB disk, Oops. What can I do to fix this ZFS to boot again?

FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024