惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
D
Docker
博客园 - 聂微东
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 叶小钗
李成银的技术随笔
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
罗磊的独立博客
小众软件
小众软件
月光博客
月光博客
量子位
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Last Week in AI
Last Week in AI
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
H
Help Net Security
腾讯CDC
T
ThreatConnect
Cyberwarzone
Cyberwarzone
S
Securelist
A
Arctic Wolf
B
Blog
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
F
Fox-IT International blog
P
Proofpoint News Feed
The Register - Security
The Register - Security
G
GRAHAM CLULEY
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
P
Privacy & Cybersecurity Law Blog
美团技术团队
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
Security Latest
Security Latest
F
Full Disclosure
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity

DEV Community

DSA Application in Real Life: How Git Diff Works: LCS Intuition, Myers Algorithm, and Real Code Changes I built an AI faceless video generator in 2 months — here's the stack Diffusion Language Models: How NVIDIA Nemotron-Labs Diffusion Shatters the Autoregressive Speed Ceiling llm-nano-vm v0.8.0 — deterministic FSM runtime for LLM pipelines, now with output validation and per-step timeouts From the Renaissance to the Quantum Dawn: AI, Computation, and the Next Paradigm Shift How I Built a Review Site with 800+ Articles Using AI I Built a Smart Kitchen AI with Gemma 4 That Turns Fridge Photos Into Recipes Why your vulnerability dashboard is lying to you (and how to fix it) From Abandoned Prototype to Smart AI System: Reviving Trafiq AI with GitHub Copilot Why Country/State/City Pickers Are Weirdly Hard Node.js 22 LTS — EOL Date, Support Timeline, and What Comes Next The 7-Layer Memory Architecture Behind Modern AI Agents I Imagined Hermes Agent Running an Entire Smart City — And It Changed How I See AI One backend, four products: why we bet on platform-per-brand AI's tech debt is invisible — even to AI. I solved it at the architecture layer. Why ROAS 300% Can Still Mean Losses — Gross Margin in 5 Ecommerce Verticals You Don’t Need to Try Every AI Tool to Keep Up NovelPilot: A Novel Writing Agent Powered by Gemma 4 BoxAgnts is an Out-Of-The-Box Secure AI Agent ToolBox in a WASM SandBox Gemma 4 deep dive: why a 1.5 GB model scores 37.5% on competition mathematics, how the MoE routing actually works, and which model fits your hardware. Full breakdown inside. BeeLlama v0.2.0: 164 tok/s on a 27B model, one RTX 3090 Google Just Declared the Chat-Log Interface Dead. Here's What Neural Expressive Actually Signals for Developers. ARCHITECTURE SPECIFICATION & FORMAL SYSTEM REPORT: k501-AIONARC Notes from a Hammock What's Google Antigravity 2.0 ? Here's What the Agent Harness Actually Changes for Developers. Building an E2EE Chat App in Flask - Part 3: Keeping File Uploads Safe Google's Gemini Spark. Here's What It Actually Does for Developers. Microsoft Just Shipped MCP Governance for .NET. Here's What It Actually Enforces. How I Built a Pakistan Internet Speed Test Platform at 16 How to Build a Supervisor Agent Architecture Without Frameworks I Built My Own Corner of the Internet — Here's What It Looks Like How does VuReact compile Vue 3's defineExpose() to React? Neo-VECTR's Rift Ascent Idempotency Keys: The API Safety Net You Probably Aren't Using Building E-Commerce Sites for Niche Products: Technical Lessons from Specialty Outdoor Retailers Audit Logs: The Silent Guardian of Every Serious System Open-source SDS tooling for Japanese MHLW compliance: the gap nobody filled BetAGracevI I Built a Post-Quantum Cryptographic Identity SDK for AI Agents — Here's Why It Needs to Exist Running Claude Code across multiple repos without losing context There Are Cameras in Every Room of My House. I Put Them There. Why your AI agent loops forever (and how to break the cycle) How does VuReact compile Vue 3's defineSlots() to React? Building a Privacy-First Resume Editor with Typst WASM and React One Soul, Any Model: Portable Memory for Open-Source Agents with .klickd From Pixels to Prescriptions: Building an Autonomous Healthcare Booking Agent with LangGraph MonoGame - A Game Engine for Those Who Love Reinventing the Wheel # Day 24: In Solana, Everything is an Account Mastering Node.js HTTP Module: Build Servers, REST APIs, and Handle Requests Mastering Node.js HTTP Module: Build Servers, REST APIs, and Handle Requests RP2040 Wristwatch Tells Time With a Vintage VU Meter Needle observations about models / 2026, may From Video Transcripts to Source-Grounded AI Notes: A Practical Look at Notesnip AI Agent Dev Environment Guide — Real Experience from an AI Living Inside a Server How I Run 7 AI Models 24/7: Multi-Agent Architecture in Practice What exactly changes with the Claude Max plan? I Revived a Broken MLOps Platform — Now It's Self-Service, Policy-Guarded, and Operationally Credible OpenAI's $2M-tokens-for-equity YC deal, decoded Why DMX Infrastructure is Still Stuck in the 90s Agent Series (2): ReAct — The Most Important Agent Reasoning Paradigm Open Source Project (No.73): Sub2API - All-in-One Claude/OpenAI/Gemini Subscription-to-API Relay I Made the Wrong Bet on Event Streaming in Our Treasure Hunt Engine #ai #productivity #chatgpt #python Symbolic Constant Conundrum From Manual RAG to Real Retrieval — Embedding-Based RAG with NVIDIA NIM Building an outbound-only WebSocket bridge for local AI agents Our System's Sins in Ghana: Why We Had to Rethink Digital Product Sales Execution Governance, AI Drift, and the Security Paradox of Runtime Enforcement Differential Pair Impedance: Why USB and HDMI Routing Is a Geometry Problem Small AI database questions can become big scans Claude Code 2.1 Agent View & /goal: Autonomous Dev Guide 2026 Your AI database agent should not see every column Rust's Low-Latency Conquest: Why We Ditched C++ for a Treasure Hunt Engine Floating-point will quietly corrupt your emissions math, and 0.1 + 0.2 already warned you Autonomous Agents: what breaks first (and why that's the real product) [2026-05-23] Agent payments are the new cloud bill footgun ORA-00069 오류 원인과 해결 방법 완벽 가이드 How I Built a Local, Multimodal Gemma 4 Visual Regression & Patch Agent: Closed-Loop Validation, Canvas Pixel Diffing, and Reproducible Benchmarks Pressure-testing Ota on Supabase: from setup prose to executable repo readiness VPC CNI en EKS: cómo dejar de pagar nodos que no usás The Future of Text Analysis: Introducing TechnoHelps Semantic Engine I built a Chrome Extension that saves product images + context directly to Google Drive & Sheets 95+ browser-based dev tools that never touch a server Running Qwen 2.5 Coder 14B Locally in Cursor with Ollama From a 10,000-line OpenSearch export script to a log analysis tool Ghost Bugs Cost $40K: A Neural Debugging Postmortem SECPAC: A Lightweight CLI Tool to Password-Protect Your Environment Variables 🚀 PasteCheck v1.7 + v1.8 — Hints that tell you what to fix, and a nudge panel that tells you where to start 8 Real Ways Developers Make Money in 2026 (Ranked by Effort) I built a free AI-powered Git CLI that writes your commit messages for you sds-converter: Converting Safety Data Sheets to MHLW Standard JSON with Rust and LLMs OpenLiDARViewer: A Browser-Based LiDAR and Point-Cloud Viewer Local-First Browser Tools: What You Should Not Upload Online Why most freelancers undercharge (and the maths behind fixing it) We built a mahjong dangerous-tile predictor calibrated on 4.97M real hands Building a Chord Progression Generator in the Browser — Music Theory in JS, Sound via Web Audio API tutorial #10: 148 Opens, 0 Replies — How My Forge Cold Email v1 Completely Failed 9 in 10 Docker Compose files skip the basic security flags How to Forward Android SMS to Telegram Automatically I built the first security scanner for MCP servers — here's what I found
HDD Eksternal Tiba-Tiba Tidak Bisa Diakses di Windows? Ini Tiga Lapis Fix-nya
Tech Nubie · 2026-05-23 · via DEV Community

HDD Eksternal Tiba-Tiba Tidak Bisa Diakses di Windows? Ini Tiga Lapis Fix-nya

Kalau drive eksternal yang kamu pakai sebagai penyimpanan utama tiba-tiba tidak bisa diakses padahal kabelnya masih tercolok rapi, kemungkinan besar drive itu sedang tertidur — bukan rusak.

Masalah ini sering kejadian di drive eksternal seperti Seagate Backup Plus Hub atau WD Elements yang dipakai 24 jam non-stop sebagai file server di rumah. Pengaturan Windows "Turn off hard disk after: Never" sudah diaktifkan, tapi setelah 10-15 menit tanpa akses, drive tetap "menghilang". Begitu foldernya dibuka kembali, butuh 5-10 detik sampai bisa terbaca, kadang malah error.

Penyebabnya bukan di Windows. Drive eksternal modern punya sistem hemat daya sendiri di dalam firmware — semacam mekanisme auto-tidur yang bekerja terlepas dari pengaturan sistem operasi. Pengaturan power Windows tidak bisa mematikan fitur ini secara langsung.

Artikel ini akan menjelaskan tiga lapis solusi yang berhasil saya terapkan, lengkap dengan perintah konkret dan beberapa kesalahan yang sempat saya temui di sepanjang proses. Target pembaca: kamu yang punya drive eksternal terhubung 24 jam ke PC Windows untuk keperluan file sharing, backup, atau media server.

Gejala dan Diagnosis

Skenarionya seperti ini. Drive eksternal dipasang permanen ke PC Windows, dipakai sebagai penyimpanan media, file backup, atau tempat berbagi file di jaringan rumah. Drive selalu hidup, tidak pernah dicabut. PC tidak pernah di-suspend.

Tapi setelah idle 10-15 menit, drive seolah-olah hilang. File Explorer hang sebentar saat folder dibuka. Kadang muncul error "Lokasi tidak tersedia" atau "I/O device error". Akses dari komputer lain via share folder juga timeout.

Anehnya, kalau ditunggu beberapa detik, drive normal kembali. Tidak ada rusak fisik, kabel tidak longgar, port USB sehat.

Yang terjadi: drive baru saja "bangun" dari tidur.

Drive eksternal seperti Seagate Backup Plus Hub, WD Elements, atau Toshiba Canvio punya sistem hemat daya internal di dalam firmware. Mekanisme ini bekerja secara mandiri — terlepas dari apa yang sudah kamu atur di Windows. Saat tidak ada permintaan baca-tulis selama beberapa menit, motor spindle drive akan berhenti berputar untuk menghemat listrik dan memperpanjang umur drive.

Ini desain disengaja produsen, bukan bug. Tapi untuk drive yang dipakai sebagai server, fitur ini justru bikin masalah.

Ada tiga lapis yang harus diatur secara berurutan agar drive tidak tidur lagi:

  1. Pengaturan power Windows untuk hard disk
  2. Pengaturan USB selective suspend
  3. Tugas keep-alive otomatis yang menyentuh drive secara berkala

Lapis pertama dan kedua adalah dasar yang banyak tutorial sudah bahas. Lapis ketiga adalah yang paling penting — sayangnya, ini sering terlewat. Tanpa lapis ketiga, dua lapis pertama tidak cukup untuk drive dengan firmware spindown agresif.

Lapis 1: Pengaturan Power Windows

Buka Command Prompt sebagai administrator. Caranya: tekan tombol Windows, ketik "cmd", klik kanan di hasil pencarian "Command Prompt", lalu pilih "Run as administrator".

Jalankan dua perintah berikut:

powercfg /change disk-timeout-ac 0
powercfg /change disk-timeout-dc 0

Enter fullscreen mode Exit fullscreen mode

Angka 0 artinya "tidak pernah". Argumen disk-timeout-ac mengatur perilaku saat PC pakai listrik AC (PC desktop selalu di sini). disk-timeout-dc mengatur saat pakai baterai (untuk laptop). Keduanya kita set ke 0 agar konsisten.

Verifikasi pengaturan dengan:

powercfg /query SCHEME_CURRENT SUB_DISK

Enter fullscreen mode Exit fullscreen mode

Output akan menampilkan beberapa nilai dalam format heksadesimal. Yang penting: nilai untuk "Turn off hard disk after" harus 0x00000000 di kedua AC dan DC.

Default Windows biasanya 20 menit di AC dan 10 menit di baterai. Kalau dibiarkan, Windows akan kirim sinyal "tidur" ke drive setelah idle, dan drive akan tidur lebih cepat dari yang diharapkan.

Setting ini perlu, tapi tidak cukup. Banyak orang berhenti di sini lalu kebingungan kenapa drive masih tetap tidur. Lanjut ke lapis 2.

Lapis 2: Disable USB Selective Suspend

USB selective suspend adalah fitur Windows yang mematikan port USB tertentu saat tidak aktif. Di laptop ini berguna untuk hemat baterai, tapi untuk drive yang dipasang permanen, fitur ini bikin masalah.

Masih di Command Prompt sebagai administrator, jalankan tiga perintah ini secara berurutan:

powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
powercfg /setdcvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
powercfg /setactive SCHEME_CURRENT

Enter fullscreen mode Exit fullscreen mode

Dua kode panjang itu adalah identifier internal Windows untuk pengaturan USB selective suspend. Tidak perlu dihapal — copy paste saja. Nilai 0 artinya disable.

Setelah lapis 1 dan 2 selesai, drive eksternal akan jauh lebih stabil. Tapi dari pengalaman saya, kalau drive yang kamu pakai punya firmware spindown agresif (Seagate Backup Plus Hub adalah contoh paling sering), masalahnya belum selesai. Drive masih bisa tidur sendiri walau Windows sudah tidak menyuruh.

Inilah saat lapis ketiga jadi kunci.

Lapis 3: Tugas Keep-Alive Otomatis

Strateginya sederhana: jangan biarkan drive idle terlalu lama. Caranya, kita buat tugas otomatis yang menulis file kecil ke drive setiap beberapa menit, lalu membaca file itu kembali. Aktivitas baca-tulis ini cukup untuk mencegah firmware drive memutuskan kalau drive tidak terpakai.

Buat file PowerShell baru. Buka Notepad, lalu salin isi berikut:

$drivePath = "D:\.keep-alive.txt"
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"

# Tulis file kecil ke drive (write I/O)
Set-Content -Path $drivePath -Value "Last keep-alive: $timestamp" -ErrorAction SilentlyContinue

# Baca kembali untuk memicu read I/O
$content = Get-Content -Path $drivePath -ErrorAction SilentlyContinue

# Catat ke log lokal
$logPath = "C:\Users\$env:USERNAME\drive-keepalive.log"
Add-Content -Path $logPath -Value "[$timestamp] Keep-alive berhasil"

Enter fullscreen mode Exit fullscreen mode

Ganti D:\ dengan letter drive eksternal kamu (E:, F:, dan seterusnya). Simpan file ini sebagai drive-keepalive.ps1 di folder home kamu, misalnya C:\Users\<namamu>\drive-keepalive.ps1. Pastikan saat menyimpan di Notepad, "Save as type" dipilih "All Files" agar ekstensinya benar .ps1, bukan .ps1.txt.

Script ini bekerja dengan dua cara: pertama, menulis file kecil dengan timestamp ke drive (memicu write I/O). Kedua, membaca file itu kembali (memicu read I/O). Kombinasi keduanya cukup memberi sinyal ke firmware drive bahwa device sedang aktif.

Selanjutnya, jadwalkan script ini lewat Task Scheduler.

Buka Task Scheduler dari Start Menu (ketik "Task Scheduler"). Di panel kanan, klik "Create Task" — perhatikan, bukan "Create Basic Task" yang lebih sederhana karena kita butuh opsi advance.

Di tab General: beri nama tugas "Drive-KeepAlive". Centang "Run whether user is logged on or not".

Di tab Triggers: klik "New". Pilih "Begin the task: On a schedule", "Daily", "Recur every: 1 days". Di bagian "Advanced settings", centang "Repeat task every: 5 minutes" untuk durasi "Indefinitely". Klik OK.

Di tab Actions: klik "New". Pilih "Start a program". Isi:

  • Program/script: powershell.exe
  • Add arguments: -ExecutionPolicy Bypass -WindowStyle Hidden -File "C:\Users\<namamu>\drive-keepalive.ps1"

Ganti <namamu> dengan username Windows kamu. Klik OK.

Save tugasnya. Windows akan minta password user kamu — masukkan saja. Tugas ini sekarang akan menyentuh drive setiap 5 menit, mencegah firmware mematikan motor spindle.

Verifikasi

Setelah setup, biarkan dulu sekitar 30 menit, lalu cek hasilnya.

Pertama, buka file log di C:\Users\<namamu>\drive-keepalive.log. Harus ada entri baru setiap 5 menit, tanpa pesan error.

Kedua, cek file .keep-alive.txt di root drive eksternal kamu. Timestamp di dalamnya harus selalu update dengan waktu terakhir tugas berjalan.

Ketiga, tes akses drive. Tinggalkan PC selama 20-30 menit tanpa membuka drive, lalu coba akses folder besar yang biasanya bikin lambat. Kalau dulu ada delay 5-10 detik saat pertama buka, sekarang harus bisa langsung terbuka.

Indikator keberhasilan utama: tidak ada lagi error "Lokasi tidak tersedia" atau hang saat browsing folder, baik dari PC server itu sendiri maupun dari komputer lain via share folder.

Kesalahan yang Saya Temui Selama Proses

Beberapa hal yang sempat keliru di awal, yang mungkin berguna untuk kamu hindari.

Pertama, saya awalnya pakai PowerShell untuk menjalankan powercfg. Tidak jalan, errornya "Invalid Parameters". Ternyata powercfg lebih konsisten kalau dijalankan dari Command Prompt biasa, bukan dari PowerShell — terutama untuk perintah dengan parameter yang panjang. Solusi cepat: kalau kamu memang harus tetap di PowerShell, bungkus dengan cmd /c "powercfg ...".

Kedua, saya sempat coba ubah pengaturan device-level lewat WMI (Get-PnpDevice lalu set property MSPower_DeviceEnable). Selalu gagal. Belakangan saya sadar pendekatan ini butuh akses admin yang lebih tinggi, dan beberapa device memang tidak mengizinkan setting tersebut diubah dari user space. Untuk drive eksternal biasa, lapis 3 (keep-alive task) sudah cukup — skip saja jalan WMI ini.

Ketiga, di percobaan pertama, script keep-alive saya cuma mengubah timestamp metadata file (pakai cara seperti (Get-Item path).LastWriteTime = Get-Date). Drive tetap tidur. Ternyata firmware drive tidak menganggap update metadata sebagai I/O nyata. Yang benar adalah benar-benar menulis isi ke file (seperti script di atas), karena ini menyebabkan motor spindle benar-benar bekerja sebentar dan firmware mendeteksinya sebagai aktivitas valid.

Penutup

Tiga lapis di atas — pengaturan Windows, USB selective suspend, dan keep-alive task — adalah kombinasi yang akhirnya bikin drive eksternal saya stabil 24 jam non-stop tanpa "hilang" lagi.

Saya masih newbie di hal ini, dan mungkin ada cara yang lebih elegan untuk mencapai hasil yang sama. Misalnya, mengubah firmware drive (kalau memungkinkan), atau pakai enclosure USB-to-SATA yang punya power management lebih baik. Kalau kamu pernah coba pendekatan lain yang berhasil, saya senang sekali kalau kamu mau share di kolom komentar.

Jika tutorial ini berguna, follow Tech Nubie untuk update tutorial serupa — fokus ke trik-trik kecil yang bikin server rumah kamu lebih reliable.