Create CIFS on SD card (Raspberry PI)

  • Hello.
    I install OMV on SD (Raspberry PI), nice work.
    But I Cannot use free space on my SD card for CIFS. (cannot chose device).
    I resize my SD card, mount partition, OMV show my file system on GUI.


    Code
    root@raspberrypi:~# blkid
    /dev/mmcblk0p1: LABEL="boot" UUID="CE83-8CE1" TYPE="vfat" PARTUUID="c5ac05a5-01"
    /dev/mmcblk0p2: UUID="ae708a4d-982a-4a20-965c-01ec7e1f32b3" TYPE="ext4" PARTUUID="c5ac05a5-02"
    /dev/mmcblk0p3: UUID="b49824b2-cf89-44e7-96ae-e10172a4597d" TYPE="ext4" PARTUUID="c5ac05a5-03"
    /dev/mmcblk0: PTUUID="c5ac05a5" PTTYPE="dos"
    Code
    fdisk -l
    Device         Boot    Start      End  Sectors  Size Id Type
    /dev/mmcblk0p1          8192   137215   129024   63M  c W95 FAT32 (LBA)
    /dev/mmcblk0p2        137216 15500000 15362785  7.3G 83 Linux
    /dev/mmcblk0p3      15500001 30318591 14818591  7.1G 8e Linux LVM
    Code
    root@raspberrypi:~# mount /dev/mmcblk0p3
    mount: /dev/mmcblk0p3 is already mounted or /mnt/smb busy
           /dev/mmcblk0p3 is already mounted on /mnt/smb


    Can I use my partition for CIFS?

  • Hello.
    I install OMV on SD (Raspberry PI), nice work.
    But I Cannot use free space on my SD card for CIFS. (cannot chose device).
    I resize my SD card, mount partition, OMV show my file system on GUI.


    Code
    root@raspberrypi:~# blkid
    /dev/mmcblk0p1: LABEL="boot" UUID="CE83-8CE1" TYPE="vfat" PARTUUID="c5ac05a5-01"
    /dev/mmcblk0p2: UUID="ae708a4d-982a-4a20-965c-01ec7e1f32b3" TYPE="ext4" PARTUUID="c5ac05a5-02"
    /dev/mmcblk0p3: UUID="b49824b2-cf89-44e7-96ae-e10172a4597d" TYPE="ext4" PARTUUID="c5ac05a5-03"
    /dev/mmcblk0: PTUUID="c5ac05a5" PTTYPE="dos"
    Code
    fdisk -l
    Device         Boot    Start      End  Sectors  Size Id Type
    /dev/mmcblk0p1          8192   137215   129024   63M  c W95 FAT32 (LBA)
    /dev/mmcblk0p2        137216 15500000 15362785  7.3G 83 Linux
    /dev/mmcblk0p3      15500001 30318591 14818591  7.1G 8e Linux LVM
    Code
    root@raspberrypi:~# mount /dev/mmcblk0p3
    mount: /dev/mmcblk0p3 is already mounted or /mnt/smb busy
           /dev/mmcblk0p3 is already mounted on /mnt/smb

    Can I use my partition for CIFS?


    Hi, can I know which tools to resize sdcard?
    Is it by simply converting the remaining unallocated space to ext4?

    • Official Post

    Hi, can I know which tools to resize sdcard?

    Gparted will to it. Boot up on a bootable Gparted CD or thumbdrive, on a PC, and edit the SD-card there.


    However, it would be best to leave the SD-card alone and add a data hard drive. This was the intent behind OMV - to segregate the OS boot drive from data drive(s). This is why the GUI won't let you put shares on the boot drive.

  • Gparted will to it. Boot up on a bootable Gparted CD or thumbdrive, on a PC, and edit the SD-card there.
    However, it would be best to leave the SD-card alone and add a data hard drive. This was the intent behind OMV - to segregate the OS boot drive from data drive(s). This is why the GUI won't let you put shares on the boot drive.

    i see, so it’s purposely design like that. I thought it’s quite odd how i can do it on raspbian but not by defaul with omv


    May I know how should i partition the remaining free space with gparted?


    I intend to clone the sdcard partition into an ssd, and just load ovm from there. Which is why i needed the utilize the free space for samba sharing.

    • Official Post

    I thought it’s quite odd how i can do it on raspbian but not by defaul with omv

    Raspbian, out of the box, is not optimized as a server OS. It's customized for R-PI hardware, but it's more of a hobbyist distro. While OMV uses the Raspbian (minimal) image as a base, packages are added and tweaked, and other changes are made that are more appropriate for a server.

    I intend to clone the sdcard partition into an ssd, and just load ovm from there. Which is why i needed the utilize the free space for samba sharing.

    With Gparted, you can resize the SD-card's partitions, add partitions, etc., just as you would with a spinning hard drive. With an additional partition, formatted to EXT4 while in Gparted, you'll be able to set shares.


    It's a bad idea for long term use, but that's your call.

  • Raspbian, out of the box, is not optimized as a server OS. It's customized for R-PI hardware, but it's more of a hobbyist distro. While OMV uses the Raspbian (minimal) image as a base, packages are added and tweaked, and other changes are made that are more appropriate for a server.With Gparted, you can resize the SD-card's partitions, add partitions, etc., just as you would with a spinning hard drive. With an additional partition, formatted to EXT4 while in Gparted, you'll be able to set shares.
    It's a bad idea for long term use, but that's your call.

    Thanks, just found out there’s a plugin for to add shares from root. That’s probably the more preferable way for my problem

Participate now!

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