Spin down external disk during boot/startup

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

I’ve looked around and didn’t find an answer to an old problem I’ve got. Using a Thinkpad T410 on Xubuntu 20.04 I’ve added an external drive into the Ultrabay slot. I created some udev rules and systemd services to force the disk to spin down. Which works so far.
But: When booting, the udev rule spins down the drive pretty early in the boot process. Immediately after I log in, the disk spins up again. I could not find out which process does that. The drive is not contained in fstab, it will be mounted via gvfs (icon click).
My workaround is a systemd timer, that spins down the drive after a certain time. This I’d like to prevent.
This problem is not specific to Ubuntu, other distros behave the same…
My question is how to analyze which process is responsible for waking up the drive. This happens only in a boot process. Suspend and hibernate go different ways and it is no problem to spin down the disk in this state.

X ITM Cloud News

Marisa

Leave a Reply

Next Post

Fixing Screen Tearing on Ubuntu 20.04 LTS w/ NVIDIA GeForce GTX 1650 Mobile on a PRIME Display?

Tue Jun 30 , 2020
Spread the love          I’m really new to Ubuntu and I’m having screen tearing issues whenever I use it. I changed some settings on Firefox and that improved the tearing a little bit, but the tearing is a system-wide issue, which is really annoying. I still get tearing when I watch videos, […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM