태그 보관물: external-hdd

external-hdd

우분투에서 하드 드라이브를 끄는 방법? 않고 열을 적게 생산하고

외장 하드 드라이브에서 Kubuntu를 실행하고 있습니다. 내 내장 하드 드라이브에는 Windows가 있습니다. 우분투에서 사용하고 싶지 않고 열을 적게 생산하고 배터리를 적게 소비하기 위해 전원을 끄고 싶습니다. 하드 드라이브를 다운시키는 것이 옵션이 아니라고 생각합니다. 왜냐하면 그것은 하드 드라이브를 닳아서 HDD에 쓸 계획이 없기 때문입니다. 🙂



답변

sudo hdparm -Y /dev/sdX

여기서 / dev / sdX끄려 는 장치입니다. 또한 sudo blkid장치의 ‘지문'(UUID)을 결정하여 어떤 장치가 꺼 졌는지보다 확실하게 제어 할 수 있습니다.

이 경우 다음을 실행합니다.

sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE

남자 hdparm

   -Y     Force  an  IDE  drive  to  immediately  enter  the  lowest power
          consumption sleep mode, causing it to shut down  completely.   A
          hard  or soft reset is required before the drive can be accessed
          again (the Linux IDE driver will automatically handle issuing  a
          reset  if/when  needed).   The  current power mode status can be
          checked using the -C option.

답변

다음을 사용할 수 있습니다 (여기 sdc에서 해당 블록 장치의 이름이 있음).

sync
echo 1 > /sys/block/sdc/device/delete

답변

udisks2패키지가 설치 되었을 수 있습니다 . 당신이 사용할 수있는

udisksctl power-off -b /dev/sdX

/dev/sdX끄려는 장치는 어디에 있습니까 ?

에서 udisksctlman 페이지 (버전 2.7.6)

power-off
    Arranges for the drive to be safely removed and powered off. On the OS
    side this includes ensuring that no process is using the drive, then
    requesting that in-flight buffers and caches are committed to stable
    storage. The exact steps for powering off the drive depends on the
    drive itself and the interconnect used. For drives connected through
    USB, the effect is that the USB device will be deconfigured followed
    by disabling the upstream hub port it is connected to.

    Note that as some physical devices contain multiple drives (for
    example 4-in-1 flash card reader USB devices) powering off one drive
    may affect other drives. As such there are not a lot of guarantees
    associated with performing this action. Usually the effect is that the
    drive disappears as if it was unplugged.

답변