Create CIFS on SD card (Raspberry PI)

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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.

      Source Code

      1. root@raspberrypi:~# blkid
      2. /dev/mmcblk0p1: LABEL="boot" UUID="CE83-8CE1" TYPE="vfat" PARTUUID="c5ac05a5-01"
      3. /dev/mmcblk0p2: UUID="ae708a4d-982a-4a20-965c-01ec7e1f32b3" TYPE="ext4" PARTUUID="c5ac05a5-02"
      4. /dev/mmcblk0p3: UUID="b49824b2-cf89-44e7-96ae-e10172a4597d" TYPE="ext4" PARTUUID="c5ac05a5-03"
      5. /dev/mmcblk0: PTUUID="c5ac05a5" PTTYPE="dos"

      Source Code

      1. fdisk -l
      2. Device Boot Start End Sectors Size Id Type
      3. /dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
      4. /dev/mmcblk0p2 137216 15500000 15362785 7.3G 83 Linux
      5. /dev/mmcblk0p3 15500001 30318591 14818591 7.1G 8e Linux LVM

      Source Code

      1. root@raspberrypi:~# mount /dev/mmcblk0p3
      2. mount: /dev/mmcblk0p3 is already mounted or /mnt/smb busy
      3. /dev/mmcblk0p3 is already mounted on /mnt/smb

      Can I use my partition for CIFS?
    • freeddos wrote:

      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.

      Source Code

      1. root@raspberrypi:~# blkid
      2. /dev/mmcblk0p1: LABEL="boot" UUID="CE83-8CE1" TYPE="vfat" PARTUUID="c5ac05a5-01"
      3. /dev/mmcblk0p2: UUID="ae708a4d-982a-4a20-965c-01ec7e1f32b3" TYPE="ext4" PARTUUID="c5ac05a5-02"
      4. /dev/mmcblk0p3: UUID="b49824b2-cf89-44e7-96ae-e10172a4597d" TYPE="ext4" PARTUUID="c5ac05a5-03"
      5. /dev/mmcblk0: PTUUID="c5ac05a5" PTTYPE="dos"

      Source Code

      1. fdisk -l
      2. Device Boot Start End Sectors Size Id Type
      3. /dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
      4. /dev/mmcblk0p2 137216 15500000 15362785 7.3G 83 Linux
      5. /dev/mmcblk0p3 15500001 30318591 14818591 7.1G 8e Linux LVM

      Source Code

      1. root@raspberrypi:~# mount /dev/mmcblk0p3
      2. mount: /dev/mmcblk0p3 is already mounted or /mnt/smb busy
      3. /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?

      Post by ferbulous ().

      This post was deleted by ryecoaaron ().
    • ferbulous wrote:

      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.
    • crashtest wrote:

      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.
    • ferbulous wrote:

      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.

      ferbulous wrote:

      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.
    • crashtest wrote:

      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