this post was submitted on 19 May 2026
36 points (97.4% liked)

Selfhosted

59343 readers
1010 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I'm running a Ubuntu server on my old laptop with an external HDD connected to it. The external HDD is powered independently from the laptop, as it is plugged into the wall.

During a power outage, my laptop remains operational due to its battery, but the HDD shuts down. When power is restored, my laptop does not automatically remount the HDD, and I have to reboot the system manually to access it.

Does anyone know how I can resolve this issue?

Edit: Not sure if this added context changes anything, but this is the HDD I'm using. It's a 3.5" HDD that gets its power directly from the wall.

you are viewing a single comment's thread
view the rest of the comments
[–] tal@lemmy.today 1 points 22 hours ago* (last edited 21 hours ago) (1 children)

Does anyone know how I can resolve this issue?

I don't know why you'd need a reboot to remount the thing. Are you just not familiar with how to add something to /etc/fstab and mount it manually and are relying on some kind of auto-mounting system that only happens to run at boot, or is it giving some kind of error?

If an error, what happens when you do:

$ sudo mount -o remount /mnt/the-mount-point

?

[–] Lenna@piefed.ca 2 points 20 hours ago (2 children)

auto-mounting system that only happens to run at boot

This is correct. I made my drive auto mount using /etc/fstab, and I believe that is only checked once during boot.

[–] tofu@lemmy.nocturnal.garden 1 points 18 hours ago (1 children)

You can run mount -a to mount all fstab entries. You could put that in a cronjob I guess

[–] Lenna@piefed.ca 2 points 17 hours ago (1 children)

If I were to make it run that command every 5 minutes, would there be any downsides?

[–] tofu@lemmy.nocturnal.garden 1 points 16 hours ago

I don't know if it has side effects when there's issues with mounting or the like.

It would also interfere if you want to unmount it and forget to disable the cronjob.

[–] tal@lemmy.today 1 points 20 hours ago (1 children)

Nah, that's good. What I mean is, if it's in /etc/fstab, it should be possible to manually mount it without a reboot. Have you tried manually remounting it after power comes back?

[–] Lenna@piefed.ca 2 points 18 hours ago (1 children)

Nope, I haven't tried that. But I will give it a try when the next power outage occurs. I actually didn't know I could manually remount until today. I'm still pretty new to selfhosting.

[–] tal@lemmy.today 2 points 18 hours ago

Gotcha. Yeah, the stuff in fstab is just a convenience; it's equivalent to running a bunch of mount commands at boot. You might be able to just run "mount" again without the '-o remount" option. I was just listing that in case you were seeing some kind of errors in trying to manually mount it.