question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

udiskie includes internal HDD

See original GitHub issue

I was under the assumption that udiskie should only include external HDDs, since it never showed my internal drives (this is of course more desirable). However, I recently added an internal HDD that is Btrfs RAID 1 on LVM on LUKS and it is listed by udiskie as a drive that I can lock and dismount.

I want to prevent udiskie from considering this drive as an external HDD because I run udiskie-umount --all && systemctl poweroff --ignore-inhibitors before shutting down the system and it exits with code 1 (thus preventing system shutdown). I have already added a /etc/crypttab entry and a /etc/fstab entry which successfully automounts the drive and decrypts it on boot.

I’m not too experienced with Linux (I’m using Arch). Please let me know how to diagnose this issue. Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
coldfixcommented, Oct 23, 2017

You need both setting because partition (/dev/sdd1) and partition table (/dev/sdd) are separate block devices. As for why you need them at all: udiskie uses the information (HintSystem) passed along from udisks which apparently did not do a good job at guessing in your particular case. Things might improve, when I add support for LVM devices probably by the beginning of next year.

0reactions
coldfixcommented, Nov 16, 2017

Oh, very sorry! I didn’t notice you had responded and now the pastebin is expired. Can you repost? (it’s best to attach directly here, so it doesn’t expire)

Read more comments on GitHub >

github_iconTop Results From Across the Web

udiskie shows my internal HDD as a removable disk--can't shutdown ...
I was under the assumption that udiskie should only include external HDDs, since it never showed my internal drives (this is of course...
Read more >
[SOLVED] Internal drive automount - Arch Linux Forums
Hi guys, is there a way to: -automatically mount all /dev in /media/$USER at boot without using fstab -unmount all previously mounted ...
Read more >
automount of internal sata drives with udisks - Mailing Lists
... Stephan Raue wrote: > Hi all, > > how is it possible to mount internal (SATA) Harddisk drives > automatically with udisks?...
Read more >
How to Mount Drives in Arch Linux & Why You Should Let ...
Udiskie : https://github.com/coldfix/udiskieMy Odysee Channel: https://odysee.com/@makc:aView My dotFiles: https://github.com/makccr/dotMy ...
Read more >
Problems with internal HDD drives - Linux Mint Forums
Udisks is for a USB drive, so is your 1TB hard drive a USB device or ... But the TB drive is an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found