Cloned data drive to larger drive size; how to resize?

    • OMV 4.x

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

    • Cloned data drive to larger drive size; how to resize?

      I have a USB3 data drive that was 4TB. I used MiniTool to clone that onto a 10TB USB3 drive. However, Minitool did not allow me to expand the data partition. It is still 4TB. Now that the 10TB drive is installed on OMV, it works great. But still at 4TB data drive size. How to I expand the partition (/dev/sdb1) to fill the entire drive?
    • I don´t know MiniTool but a quick search showed me that it should be possible to resize partitions also with MiniTool.

      Personally I always use GParted live for such kind of operations.

      Which kind of file system do you have on the target drive?
      OMV 3.0.99 (Gray style)
      ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • Minitool was not able to resize the EXT4 partition. I am familiar with gparted also and will try that. Is gparted an extension or do I install in manually in SSH? Also, I found I am unable to unmount the data drive in OMV. Is there some secret to unmounting a data drive that is referenced?

      Also, I should note that I am running headless, so cannot use live CD/USB approach. I must either remove the drive and put it on another system or find a way to unmount the drive to work on it using SSH on OMV.

      EDIT: I tried many ways to unmount the drive within OMV, but it would not budge. So I just shut down OMV and plugged the USB data drive into a Linux laptop, and used resize2fs on the laptop. There must be some way to simply unmount a drive in OMV, but I could not find it. At least, without having to remove all references to the drive which would have been rather complex and time consuming to recreate when done.

      The post was edited 1 time, last by Blueman2 ().

    • Blueman2 wrote:

      Is gparted an extension or do I install in manually in SSH?
      I always use the GParted live edition to boot from. Reading your posting in more detail I have seen that you have already resized it.

      Blueman2 wrote:

      Is there some secret to unmounting a data drive that is referenced?
      There is a plugin called "resetperms". It shows you all references of a share. All references must be removed to unmount a drive. This a restriction in OMV.

      Blueman2 wrote:

      There must be some way to simply unmount a drive in OMV, but I could not find it.
      AFAIK there is none.
      OMV 3.0.99 (Gray style)
      ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • gParted is probably the best way to go.

      If you have installed OpenMediaVault Extras (OMV-Extras), then via its [KERNEL] tab, you can add install gParted Live to your system. Once you have done this, you will have another option in the initial boot menu to boot into gParted.

      omv-extras.org/joomla/index.php/guides

      Alternatively, you could download and make a bootable cd of gParted Live.

      gparted.org/livecd.php

      I guess that you could also SSHinto the box and use the command line, but I am not a good source of info for that, other than:
      1. umount to unmount the file system
      2. fdisk to delete/create in a larger size
      3. resize2fs to resize an ext4 filesystem
      I am not sure that there is any way to keep the data using this last method. gParted will enable you to keep your data, so suggest you go with that.

      hope this helps.

      Ron