Rename partition label

    • OMV 4.x

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

    • Rename partition label

      I have partitions mounted as shown below and would like to change the label from 'backup' to something more appropriate.
      I have only a single shared folder which I'm prepared to delete

      1. The web interface on this and other mounts is greyed out,which does not allow unmounting.
      2. the delete button on the shared folder is similarly greyed out

      Assuming these issues can be resolved is renaming a label as simple as unmounting,, changing the label, and remounting
    • You have to do this manually via CLI if you want to do that, but notice, this will change the device file of your filesystem, thus shared folders and other things won't work anymore. Because of that the WebUI does not provide this feature to rename a filesystem label.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Well, I ran into some issue whilst I tried to rename mine.

      I run OMV4 as a VM on a ESXi host, with 2 Disks RDM from ESX as they are in fact 2 RAID arrays, one is a RAID1 3TB whilst the other is a RAID10 3TB (6x1TB)

      About a month ago I renamed the device (/dev/sdb1) from "Array1SMB" to what it is now functional "Array1_RAID1" whilst it was still not referenced yet by anything.

      I done that by CLI editing /etc/openmediavault/config.xml and /etc/fstab then rebooted OMV.

      fstab.txt
      config.xml.txt

      All went really nice. I created new shares on it, then run some Rsync jobs in between both devices, all good.

      Then I said, let me follow a consistent naming convention and rename the other device (/dev/sdc1)

      So I applied the same relevant changes on both fstab and config.xml as before, but I ended up with a new file system (named as I wanted it), all shares referencing it, but OMV was reporting it as "Missing"

      Then I believe I made the stupid decision of deleting the old file system from GUI, hoping that I'll be able to mount the new one - it obviously didn't.

      So my next step was to roll back using the snapshot I made prior of making this changes. By the way, the fstab and config file you see above are exact what I have at the moment.

      Well, I'm pretty sure my data and shared folders are still there, intact... but since I'm not mastering the UNIX system I'm a bit suck after loosing track of all the threads I read on this forum and other Linux ones.

      Is anyone able to shed some light please?

      Many thanks,
      B
      Images
      • FS.png

        21.41 kB, 1,410×142, viewed 50 times
    • If you want to change the file system label the cleanest procedure should be:

      1. remove all shares on that file system from the services
      2. remove the shares on that file system (only the share, not the content!!!)
      3. un-mount the file system
      4. change the file system label via CLI
      5. mount the file system with the new name
      6. create the shared folders
      7. add the shared folders to the services
      All steps except #4 to be performed in the GUI of OMV. You should really not change config.xml or fstab unless you really know what you are doing.
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:
    • macom wrote:

      If you want to change the file system label the cleanest procedure should be:

      1. remove all shares on that file system from the services
      2. remove the shares on that file system (only the share, not the content!!!)
      3. un-mount the file system
      4. change the file system label via CLI
      5. mount the file system with the new name
      6. create the shared folders
      7. add the shared folders to the services
      All steps except #4 to be performed in the GUI of OMV. You should really not change config.xml or fstab unless you really know what you are doing.

      Thanks for you reply macom, unfortunately that's a bit late, since I've attempted to relabel the file system by editing the 2 files with shares still referencing it and still mounted.
      The trouble is that I deleted the File System from GUI as it was reported missing (after the dodgy rename), before I restored the snapshot.
      Have I not deleted it, as soon as the snapshot was restored, it would have brought everything back in line.
      So as soon as I restored the snapshot, the old file system appeared back on GUI, but I'm unable to mount it back as it now says it's missing again, but this time for obvious (user interference) reasons.

      Any advice on that?

      Many thanks,
      B
    • Users Online 1

      1 Guest

    • Tags