Mounting one USB disk results in both mounted

    • OMV 2.x
    • Resolved

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

    • Mounting one USB disk results in both mounted

      I have OMV 2.0 running on Raspberry PI 2.
      I attached 2 identical USB disks (Toshiba Canvio 1TB). toshiba.eu/hard-drives/portable/canvio-basics/hdtb310ek3aa/
      Before mounting, I can see both identified by their name I set when connected to Windows laptop (TOSH1 & TOSH2).
      I can see their serial numbers from s.m.a.r.t. info tab.
      From SSH session, an lsusb shows both of them too.
      But as soon as I mount one disk (no matter which) it results in both mounted and it displays the same disk usage for both (but their content are different).
      Could it be linked to this bug?: bugtracker.openmediavault.org/view.php?id=1424
      I do not use RAID. Disk are FAT32.
      Is there a way to get around this by editing fstab ?
    • Ah.
      I guess that's an issue:

      Source Code

      1. root@raspberrypi:~# blkid
      2. /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="7D5C-A285" TYPE="vfat"
      3. /dev/mmcblk0p2: UUID="5d18be51-3217-4679-9c72-a54e0fc53d6b" TYPE="ext4" LABEL="omv"
      4. /dev/mmcblk0p3: LABEL="data" UUID="fa36508a-b3c4-4499-b30a-711dd5994225" TYPE="ext4"
      5. /dev/sdb1: LABEL="TOSH2" UUID="843671A53671993E" TYPE="ntfs"
      6. /dev/sda1: LABEL="TOSH1" UUID="843671A53671993E" TYPE="ntfs"
      7. root@raspberrypi:~#

      They both have the same UUID...

      Here the s.m.a.r.t. outpout.
      You can see they have different serial numbers

      Source Code

      1. root@raspberrypi:~# smartctl --all /dev/sda
      2. smartctl 5.41 2011-06-09 r3365 [armv6l-linux-4.1.13+] (local build)
      3. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      4. === START OF INFORMATION SECTION ===
      5. Model Family: Toshiba 2.5" HDD MQ01UBD... (USB 3.0)
      6. Device Model: TOSHIBA MQ01UBD100
      7. Serial Number: 3552THKAT
      8. LU WWN Device Id: 0 000000 000000000
      9. Firmware Version: AX001U
      10. User Capacity: 1,000,204,886,016 bytes [1.00 TB]
      11. Sector Sizes: 512 bytes logical, 4096 bytes physical
      12. Device is: In smartctl database [for details use: -P show]
      13. ATA Version is: 8
      14. ATA Standard is: Exact ATA specification draft version not indicated
      15. Local Time is: Thu Feb 11 19:34:41 2016 CET
      16. SMART support is: Available - device has SMART capability.
      17. SMART support is: Enabled
      18. <snip>
      19. root@raspberrypi:~# smartctl --all /dev/sdb
      20. smartctl 5.41 2011-06-09 r3365 [armv6l-linux-4.1.13+] (local build)
      21. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      22. === START OF INFORMATION SECTION ===
      23. Model Family: Toshiba 2.5" HDD MQ01UBD... (USB 3.0)
      24. Device Model: TOSHIBA MQ01UBD100
      25. Serial Number: 3551T2JUT
      26. LU WWN Device Id: 0 000000 000000000
      27. Firmware Version: AX001U
      28. User Capacity: 1,000,204,886,016 bytes [1.00 TB]
      29. Sector Sizes: 512 bytes logical, 4096 bytes physical
      30. Device is: In smartctl database [for details use: -P show]
      31. ATA Version is: 8
      32. ATA Standard is: Exact ATA specification draft version not indicated
      33. Local Time is: Thu Feb 11 19:35:35 2016 CET
      34. SMART support is: Available - device has SMART capability.
      35. SMART support is: Enabled
      Display All
    • Serial number won't help you here. You need to change one of the uid's.
      I know you can change it in ext4, I know you can change also in ntfs, involves writing to the mb. But atm I can't remember the command. Can you reformat one of the disks?
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • solar10 wrote:

      Well, I was pointing serials to show evidence that there are 2 different disks attached to the RaspPI.
      Re-format is not an option. I have data on it.
      I'll try to find a way to change the UUID.
      Thanx.

      Sounds risky but... ubuntuforums.org/showthread.php?t=1240146
      omv 4.0.10 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • OK.
      Since my diskspace is half used, I could shrink the partition, create a new one with a different UUID, move my data to the new partition then kill the old partition having the duplicate UUID.
      Gparted and like can handle this.

      It is strange that OMV has such behavior. Before, both disks were plugged in my Thinkpad running LinuxMint 17 and it didn't make a problem. I could move files from one to the other.
    • Many Linux flavours, many different ways...

      So here is the conclusion.
      I attached one disk to my laptop, started GParted and this was even easier than expected. There is an option to change UUID (menu /partition/new UUID).
      I now have both Canvio mounted and shared on OMV/RaspPI.
      See you in other thread for the next issue ;)
      Thanx for help.