Error when mounting 1TB micro sd card in OMV

  • Hi,


    i have flashed OMV5 to my RPi4. As a drive i chose a 1TB micro sd card which i pluged into the cardreader which again i pluged into the pi. the card is formated by fdisk to the linux (83) filesystem so it appears as ext4 in omv. When i try to mount the card i get the following error:


    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': raspberrypi: ---------- ID: create_filesystem_mountpoint_201a8f16-a628-4fd3-bc2f-3a930ee59d69 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_201a8f16-a628-4fd3-bc2f-3a930ee59d69 for file /etc/fstab was charged by text Started: 13:50:04.831417 Duration: 2.443 ms Changes: ---------- ID: mount_filesystem_mountpoint_201a8f16-a628-4fd3-bc2f-3a930ee59d69 Function: mount.mounted Name: /srv/dev-disk-by-uuid-EA24-365E Result: True Comment: Started: 13:50:04.835975 Duration: 434.299 ms Changes: ---------- ID: create_filesystem_mountpoint_873983b5-478c-4154-b7a1-e2a62094236b Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_873983b5-478c-4154-b7a1-e2a62094236b for file /etc/fstab was charged by text Started: 13:50:05.271016 Duration: 3.297 ms Changes: ---------- ID: mount_filesystem_mountpoint_873983b5-478c-4154-b7a1-e2a62094236b Function: mount.mounted Name: /srv/dev-disk-by-uuid-6e362033-d6e4-452f-aa13-b70ae9078063 Result: False Comment: mount: /srv/dev-disk-by-uuid-6e362033-d6e4-452f-aa13-b70ae9078063: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error. Started: 13:50:05.274699 Duration: 1430.595 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: Changes were made Started: 13:50:06.709927 Duration: 32.737 ms Changes: ---------- diff: --- +++ @@ -5,4 +5,5 @@ # use dphys-swapfile swap[on|off] for that # >>> [openmediavault] /dev/disk/by-uuid/EA24-365E /srv/dev-disk-by-uuid-EA24-365E vfat defaults,nofail 0 2 +/dev/disk/by-uuid/6e362033-d6e4-452f-aa13-b70ae9078063 /srv/dev-disk-by-uuid-6e362033-d6e4-452f-aa13-b70ae9078063 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 # <<< [openmediavault] Summary for raspberrypi ------------ Succeeded: 4 (changed=1) Failed: 1 ------------ Total states run: 5 Total run time: 1.903 s

    and the details:


    any ideas ? Im trying to solve this issue for days.

  • i have flashed OMV5 to my RPi5.

    the card is formated by fdisk to the linux (83) filesystem so it appears as ext4 in omv.

    I believe you mean RPi4, :)

    And if you say "...flashed OMV5...", I think you used the ISO for PC.


    To install RaspiOS (Raspbian) on a Pi, you need to flash the image from Raspberry Foundation to the SD card (on Windows with win32imager, with the RPi Imager, Balena Etcher, etc).

    Your SD card will have two partitions: one vfat (dos) where it stores the "boot" partition. This will become "/dev/mmcblk0p1" with around 512Mb.

    And a second partition formatted ext4 "root" with around 1.5Gb that is expanded to the maximum on 1st boot via a script through "cmdline.txt".

    This partition will then be "/dev/mmcblk0p2"


    You can use the Official 32bit armhf lite image on the Raspberry download page or the 64Bit arm64 Lite version (still considered BETA but very stable AFAIK)

    Index of /raspios_lite_armhf/images/raspios_lite_armhf-2021-03-25 (raspberrypi.org)

    Index of /raspios_lite_arm64/images/raspios_lite_arm64-2021-04-09 (raspberrypi.org)


    Follow the guide to install on SBC to get you going:

    Installing OMV5 on Raspberry PI's, Armbian SBC's, & i386 32-bit platforms - Guides - openmediavault

  • Assuming that your 1TB SD card is meant to store data (meaning it's not the OS system drive), wipe and then reformat it from the OMV GUI. Do not use fdisk or similar command-line tools to format it. It should mount without issue afterwards.

  • Thank you for the reply.

    Soma: Yes, i flashed the ISO to a 16gb sd card so Rpi4 (not5) can boot omv. For the ISO i picked the lite version.

    i also followed the guide but the guide dont explain how to deal with error messages. i read the guide and repeated the steps like 5 times.


    cubemin : Yes, the 1Tb is not the OS system drive. When i try to reformat the 1TB card from the OMV GUI i get this progress:



    and when im try to mount it i get this error:


    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': raspberrypi: ---------- ID: create_filesystem_mountpoint_201a8f16-a628-4fd3-bc2f-3a930ee59d69 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_201a8f16-a628-4fd3-bc2f-3a930ee59d69 for file /etc/fstab was charged by text Started: 10:45:55.977803 Duration: 2.379 ms Changes: ---------- ID: mount_filesystem_mountpoint_201a8f16-a628-4fd3-bc2f-3a930ee59d69 Function: mount.mounted Name: /srv/dev-disk-by-uuid-EA24-365E Result: True Comment: Started: 10:45:55.983436 Duration: 413.481 ms Changes: ---------- ID: create_filesystem_mountpoint_fe6c9b56-5335-47fd-b943-0c1fcacc49b2 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_fe6c9b56-5335-47fd-b943-0c1fcacc49b2 for file /etc/fstab was charged by text Started: 10:45:56.397654 Duration: 3.156 ms Changes: ---------- ID: mount_filesystem_mountpoint_fe6c9b56-5335-47fd-b943-0c1fcacc49b2 Function: mount.mounted Name: /srv/dev-disk-by-uuid-e1ca5d9d-a66a-4190-bf20-845aa5c78ea0 Result: False Comment: mount: /srv/dev-disk-by-uuid-e1ca5d9d-a66a-4190-bf20-845aa5c78ea0: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error. Started: 10:45:56.401195 Duration: 133.678 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: Changes were made Started: 10:45:56.537801 Duration: 23.561 ms Changes: ---------- diff: --- +++ @@ -5,4 +5,5 @@ # use dphys-swapfile swap[on|off] for that # >>> [openmediavault] /dev/disk/by-uuid/EA24-365E /srv/dev-disk-by-uuid-EA24-365E vfat defaults,nofail 0 2 +/dev/disk/by-uuid/e1ca5d9d-a66a-4190-bf20-845aa5c78ea0 /srv/dev-disk-by-uuid-e1ca5d9d-a66a-4190-bf20-845aa5c78ea0 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 # <<< [openmediavault] Summary for raspberrypi ------------ Succeeded: 4 (changed=1) Failed: 1 ------------ Total states run: 5 Total run time: 576.255 ms

    and this details:

    • Official Post

    It is a bit unclear what you are doing.


    It seems that you run OMV5 on a SD card connected to the RPi4 using the normal card slot? Is this correct?


    And you have connected some external card reader to a USB port and try to partition and format the 1TB SD card using this card reader? Is this correct?


    Is the above is correct, I assume that the card reader may be unable to use a 1TB SD card correctly OR the SD card is defect. Or it may be because your RPi4 does not support this specific card reader. Or it may be because OMV5 is not able to use the card reader or the 1TB card correctly.


    You need to figure out what is the problem. You do this by changing things and see if the problem stays or goes away, and use some deduction.


    I suggest that you test the card on a PC to verify that it really is a 1TB card and that it is not damaged. Then try to partition and format the SD card from the PC instead, using the card reader. You can temporarily boot linux from a USB thumb drive if you use Windows on the PC. And also run some tests on the card to verify that it works OK after partitioning and formatting. You can also try to run other Linux distros on the RPi4 and try to use them to partition and format the card. And you can try with other cards and other card readers.

    Be smart - be lazy. Clone your rootfs.
    OMV 5: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!