Score:0

Ignore (internal) HDDs at boot and mount when needed

ws flag

So I‘m a bit lost … hope someone can help.

My current storage setup looks like this:

  • One M.2 SSD containing my Ubuntu 22.04 installation + programs
  • One M.2 SSD where I store the data I use on a daily basis
  • One (software) RAID5 with 4 HDD containing data I want to access from all clients in my LAN (e.g. media streaming) … more or less like a NAS
  • And finally one (software) RAID5 (also 4 HDD) to where I synch all the data from the other RAID5 on a weekly basis as a backup

All HDDs are connected to the System via a Broadcom HBA 9500-8i. Currently everything is mounted at boot and works fine.

BUT: I only use the “media RAID” every other day and the “backup RAID” once a week. For reasons of power consumption, longevity of the 8 HDDs in the two RAIDs, noise reduction, boot time, etc. I would like them to be ignored and kept powered off (no spin up) at system start.

Is there a way how this can be done with the possibility to spin up and mount them (separately) only when needed from within Ubuntu (shell script?) and maybe remotely with SSH?

The data on the two RAIDs is very important to me and there are currently no other backups.

Any and all help is highly appreciated!

user10489 avatar
in flag
There are settings in the drive firmware to spin it down when not in use. However, frequent spin up and spin down can wear out some drives more than just leaving them on. It still makes sense to do this for power saving, however, especially if you run off battery. There are two issues: not mounting the drives, reducing the chance of damage, and physical drive lifetime vs power saving. How much do you care about these separate issues?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.