How to remove inactive block device from the /dev?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I know, that the /dev/sde block device doesn't exist anymore (cause I've stopped a piece of software, which simulated it), but I still see it in the lsblk output and in the /dev directory.



When I try the fdisk -l /dev/sde command I see a lot of errors in the syslog (below):



Sep 26 16:25:41 ubuntu3 kernel: [29651.631827] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.631835] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.631838] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.631839] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.631840] Read(10): 28 00 00 00 00 00 00 00 20 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.631845] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.638989] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.639024] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.639026] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.639027] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.639029] Read(10): 28 00 00 00 00 00 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.639034] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.639039] Buffer I/O error on dev sde, logical block 0, async page read
Sep 26 16:25:41 ubuntu3 kernel: [29651.639857] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.639859] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.639861] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] Read(10): 28 00 00 01 86 98 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.639866] blk_update_request: I/O error, dev sde, sector 99992
Sep 26 16:25:41 ubuntu3 kernel: [29651.639884] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.639886] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.639888] Read(10): 28 00 00 01 86 98 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.639891] blk_update_request: I/O error, dev sde, sector 99992
Sep 26 16:25:41 ubuntu3 kernel: [29651.639892] Buffer I/O error on dev sde, logical block 12499, async page read
Sep 26 16:25:41 ubuntu3 kernel: [29651.640065] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.640068] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.640069] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.640070] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.640071] Read(10): 28 00 00 00 00 00 00 00 20 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.640075] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.640089] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.640090] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.640091] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] Read(10): 28 00 00 00 00 00 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.640095] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.640096] Buffer I/O error on dev sde, logical block 0, async page read


How should I tell Linux to remove the /dev/sde from its list of active block devices?



OS: Ubuntu 14.04.5 LTS with kernel 3.19.0-78-generic



(working as virtual machine under VMware Fusion 8.5.8 on MacBook)










share|improve this question



























    up vote
    0
    down vote

    favorite












    I know, that the /dev/sde block device doesn't exist anymore (cause I've stopped a piece of software, which simulated it), but I still see it in the lsblk output and in the /dev directory.



    When I try the fdisk -l /dev/sde command I see a lot of errors in the syslog (below):



    Sep 26 16:25:41 ubuntu3 kernel: [29651.631827] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Sep 26 16:25:41 ubuntu3 kernel: [29651.631835] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
    Sep 26 16:25:41 ubuntu3 kernel: [29651.631838] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
    Sep 26 16:25:41 ubuntu3 kernel: [29651.631839] sd 49:0:0:1: [sde] CDB:
    Sep 26 16:25:41 ubuntu3 kernel: [29651.631840] Read(10): 28 00 00 00 00 00 00 00 20 00
    Sep 26 16:25:41 ubuntu3 kernel: [29651.631845] blk_update_request: I/O error, dev sde, sector 0
    Sep 26 16:25:41 ubuntu3 kernel: [29651.638989] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639024] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639026] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639027] sd 49:0:0:1: [sde] CDB:
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639029] Read(10): 28 00 00 00 00 00 00 00 08 00
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639034] blk_update_request: I/O error, dev sde, sector 0
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639039] Buffer I/O error on dev sde, logical block 0, async page read
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639857] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639859] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639861] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] sd 49:0:0:1: [sde] CDB:
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] Read(10): 28 00 00 01 86 98 00 00 08 00
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639866] blk_update_request: I/O error, dev sde, sector 99992
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639884] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639886] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] CDB:
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639888] Read(10): 28 00 00 01 86 98 00 00 08 00
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639891] blk_update_request: I/O error, dev sde, sector 99992
    Sep 26 16:25:41 ubuntu3 kernel: [29651.639892] Buffer I/O error on dev sde, logical block 12499, async page read
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640065] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640068] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640069] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640070] sd 49:0:0:1: [sde] CDB:
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640071] Read(10): 28 00 00 00 00 00 00 00 20 00
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640075] blk_update_request: I/O error, dev sde, sector 0
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640089] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640090] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640091] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] sd 49:0:0:1: [sde] CDB:
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] Read(10): 28 00 00 00 00 00 00 00 08 00
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640095] blk_update_request: I/O error, dev sde, sector 0
    Sep 26 16:25:41 ubuntu3 kernel: [29651.640096] Buffer I/O error on dev sde, logical block 0, async page read


    How should I tell Linux to remove the /dev/sde from its list of active block devices?



    OS: Ubuntu 14.04.5 LTS with kernel 3.19.0-78-generic



    (working as virtual machine under VMware Fusion 8.5.8 on MacBook)










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I know, that the /dev/sde block device doesn't exist anymore (cause I've stopped a piece of software, which simulated it), but I still see it in the lsblk output and in the /dev directory.



      When I try the fdisk -l /dev/sde command I see a lot of errors in the syslog (below):



      Sep 26 16:25:41 ubuntu3 kernel: [29651.631827] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631835] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631838] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631839] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631840] Read(10): 28 00 00 00 00 00 00 00 20 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631845] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.638989] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639024] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639026] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639027] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639029] Read(10): 28 00 00 00 00 00 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639034] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639039] Buffer I/O error on dev sde, logical block 0, async page read
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639857] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639859] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639861] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] Read(10): 28 00 00 01 86 98 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639866] blk_update_request: I/O error, dev sde, sector 99992
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639884] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639886] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639888] Read(10): 28 00 00 01 86 98 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639891] blk_update_request: I/O error, dev sde, sector 99992
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639892] Buffer I/O error on dev sde, logical block 12499, async page read
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640065] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640068] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640069] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640070] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640071] Read(10): 28 00 00 00 00 00 00 00 20 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640075] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640089] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640090] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640091] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] Read(10): 28 00 00 00 00 00 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640095] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640096] Buffer I/O error on dev sde, logical block 0, async page read


      How should I tell Linux to remove the /dev/sde from its list of active block devices?



      OS: Ubuntu 14.04.5 LTS with kernel 3.19.0-78-generic



      (working as virtual machine under VMware Fusion 8.5.8 on MacBook)










      share|improve this question















      I know, that the /dev/sde block device doesn't exist anymore (cause I've stopped a piece of software, which simulated it), but I still see it in the lsblk output and in the /dev directory.



      When I try the fdisk -l /dev/sde command I see a lot of errors in the syslog (below):



      Sep 26 16:25:41 ubuntu3 kernel: [29651.631827] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631835] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631838] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631839] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631840] Read(10): 28 00 00 00 00 00 00 00 20 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.631845] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.638989] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639024] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639026] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639027] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639029] Read(10): 28 00 00 00 00 00 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639034] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639039] Buffer I/O error on dev sde, logical block 0, async page read
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639857] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639859] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639861] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] Read(10): 28 00 00 01 86 98 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639866] blk_update_request: I/O error, dev sde, sector 99992
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639884] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639886] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639888] Read(10): 28 00 00 01 86 98 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639891] blk_update_request: I/O error, dev sde, sector 99992
      Sep 26 16:25:41 ubuntu3 kernel: [29651.639892] Buffer I/O error on dev sde, logical block 12499, async page read
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640065] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640068] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640069] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640070] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640071] Read(10): 28 00 00 00 00 00 00 00 20 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640075] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640089] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640090] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640091] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] sd 49:0:0:1: [sde] CDB:
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] Read(10): 28 00 00 00 00 00 00 00 08 00
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640095] blk_update_request: I/O error, dev sde, sector 0
      Sep 26 16:25:41 ubuntu3 kernel: [29651.640096] Buffer I/O error on dev sde, logical block 0, async page read


      How should I tell Linux to remove the /dev/sde from its list of active block devices?



      OS: Ubuntu 14.04.5 LTS with kernel 3.19.0-78-generic



      (working as virtual machine under VMware Fusion 8.5.8 on MacBook)







      linux block-device






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 26 '17 at 21:18

























      asked Sep 26 '17 at 20:35









      HEKTO

      20819




      20819




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You can remove each path to the device from the SCSI subsystem



          echo 1 > /sys/block/sde/device/delete





          share|improve this answer




















          • Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
            – HEKTO
            Sep 27 '17 at 15:42











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394629%2fhow-to-remove-inactive-block-device-from-the-dev%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          You can remove each path to the device from the SCSI subsystem



          echo 1 > /sys/block/sde/device/delete





          share|improve this answer




















          • Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
            – HEKTO
            Sep 27 '17 at 15:42















          up vote
          1
          down vote



          accepted










          You can remove each path to the device from the SCSI subsystem



          echo 1 > /sys/block/sde/device/delete





          share|improve this answer




















          • Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
            – HEKTO
            Sep 27 '17 at 15:42













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You can remove each path to the device from the SCSI subsystem



          echo 1 > /sys/block/sde/device/delete





          share|improve this answer












          You can remove each path to the device from the SCSI subsystem



          echo 1 > /sys/block/sde/device/delete






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 26 '17 at 21:39









          Hunter.S.Thompson

          4,57431334




          4,57431334











          • Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
            – HEKTO
            Sep 27 '17 at 15:42

















          • Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
            – HEKTO
            Sep 27 '17 at 15:42
















          Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
          – HEKTO
          Sep 27 '17 at 15:42





          Sometimes I don't know if it's sde or not... What's the most reliable way to make sure it's inactive? All the tools like fdisk, blkid and lsblk don't return errors on inactive devices, only the cfdisk shows FATAL ERROR
          – HEKTO
          Sep 27 '17 at 15:42


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394629%2fhow-to-remove-inactive-block-device-from-the-dev%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)