Clean reference from old drive removed

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

    • Clean reference from old drive removed

      Looking forward to playing with openmediavault I used old HDD from a previous NAS.
      I removed these discs since I received my new discs.

      Today when I looked at hdparm configuration files I saw references from those old drives that are no longer present in my system.


      Is there a way to clean all this?

      for example I can see reference to old drive in hdparm.conf

      Source Code

      1. quiet
      2. /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J9KB700773 {
      3. apm = 1
      4. spindown_time = 242
      5. write_cache = off
      6. }
      7. /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7JD2B213172 {
      8. apm = 1
      9. spindown_time = 242
      10. write_cache = off
      11. }
      12. /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J9KB700774 {
      13. apm = 1
      14. spindown_time = 242
      15. write_cache = off
      16. }
      17. /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7JD2B213181 {
      18. apm = 1
      19. spindown_time = 242
      20. write_cache = off
      21. }
      22. /dev/disk/by-id/ata-WDC_WD100EMAZ-00WJTA0_xxxxxx {
      23. apm = 127
      24. spindown_time = 60
      25. write_cache = on
      Display All


      You can see all old disk it's Samsung HD204UI_*



      I try to look in /dev/disk/by-id but I don't see old HD204UI


      Source Code

      1. drwxr-xr-x 2 root root 460 mars 5 17:10 .
      2. drwxr-xr-x 7 root root 140 mars 1 14:30 ..
      3. lrwxrwxrwx 1 root root 9 mars 1 14:05 ata-MATSHITADVD-ROM_UJ890AC_YK00_035910 -> ../../sr0
      4. lrwxrwxrwx 1 root root 9 mars 1 14:05 ata-SAMSUNG_SSD_PM851_2.5_7mm_128GB_S1CTNSAF928480 -> ../../sdd
      5. lrwxrwxrwx 1 root root 10 mars 1 14:05 ata-SAMSUNG_SSD_PM851_2.5_7mm_128GB_S1CTNSAF928480-part1 -> ../../sdd1
      6. lrwxrwxrwx 1 root root 10 mars 1 14:05 ata-SAMSUNG_SSD_PM851_2.5_7mm_128GB_S1CTNSAF928480-part2 -> ../../sdd2
      7. lrwxrwxrwx 1 root root 10 mars 1 14:05 ata-SAMSUNG_SSD_PM851_2.5_7mm_128GB_S1CTNSAF928480-part5 -> ../../sdd5
      8. lrwxrwxrwx 1 root root 9 mars 6 02:28 ata-WDC_WD100EMAZ-00WJTA0_xxxx -> ../../sda
      9. lrwxrwxrwx 1 root root 10 mars 1 14:30 ata-WDC_WD100EMAZ-00WJTA0_xxxx-part1 -> ../../sda1
      10. lrwxrwxrwx 1 root root 9 mars 6 02:28 ata-WDC_WD100EMAZ-00WJTA0_xxxxx -> ../../sdb
      11. lrwxrwxrwx 1 root root 10 mars 1 14:45 ata-WDC_WD100EMAZ-00WJTA0_xxxxx-part1 -> ../../sdb1
      12. lrwxrwxrwx 1 root root 9 mars 6 02:28 ata-WDC_WD80EZAZ-11TDBA0_xxxx -> ../../sdc
      13. lrwxrwxrwx 1 root root 10 mars 1 14:56 ata-WDC_WD80EZAZ-11TDBA0_xxxx-part1 -> ../../sdc1
      14. lrwxrwxrwx 1 root root 9 mars 6 02:28 wwn-0x5000cca257ee375e -> ../../sdc
      15. lrwxrwxrwx 1 root root 10 mars 1 14:56 wwn-0x5000cca257ee375e-part1 -> ../../sdc1
      16. lrwxrwxrwx 1 root root 9 mars 6 02:28 wwn-0x5000cca273cf24b1 -> ../../sda
      17. lrwxrwxrwx 1 root root 10 mars 1 14:30 wwn-0x5000cca273cf24b1-part1 -> ../../sda1
      18. lrwxrwxrwx 1 root root 9 mars 6 02:28 wwn-0x5000cca273d4ef2b -> ../../sdb
      19. lrwxrwxrwx 1 root root 10 mars 1 14:45 wwn-0x5000cca273d4ef2b-part1 -> ../../sdb1
      20. lrwxrwxrwx 1 root root 9 mars 1 14:05 wwn-0x5002538844584d30 -> ../../sdd
      21. lrwxrwxrwx 1 root root 10 mars 1 14:05 wwn-0x5002538844584d30-part1 -> ../../sdd1
      22. lrwxrwxrwx 1 root root 10 mars 1 14:05 wwn-0x5002538844584d30-part2 -> ../../sdd2
      23. lrwxrwxrwx 1 root root 10 mars 1 14:05 wwn-0x5002538844584d30-part5 -> ../../sdd5
      Display All


      If you can help ! I'm a newbie !
      I try to clean hdparm.conf but the reference comeback when I change an option on the OMV smart gui

      The post was edited 3 times, last by Revers62 ().

    • Probably you have created shared folders on this drive which are used in some services (SMB/CIFS, FTP, ...).

      So first remove all of these shared folders from the services. Then delete the shared fold ers. Then you should be able to delete the file.

      Everything to be done in the GUI of OMV.
      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 :!:
    • Sorry it's me !

      This old disk come from my old old nas the one who run on ubuntu with mdadm without OMV.

      I just plug it on my new nas for test a HBA.
      I see in OMV ( my new NAS ) the disk, and I reemove it.

      This disk were very old and I will not use them in my new nas.

      But Why I can see some traces of these disks in the configuration files
    • a big thank you for trying!

      I will do :

      Source Code

      1. grep -r ata-SAMSUNG_HD204UI_S2H7J9KB700773 *
      I will find all the files that contain information on these old disks :)

      result :

      etc/smartd.conf
      etc/openmediavault/config.xml
      etc/hdparm.conf


      I had to run a smart test on these old drives without remembering....
      So smartd and OMV keeps information even if the disks are no longer present and if of course we do not unmount the discs properly like me !

      The post was edited 3 times, last by Revers62 ().