Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] udev automount Thinkpad Ultrabase hdd not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
chaoscommander
Tux's lil' helper
Tux's lil' helper


Joined: 15 Oct 2012
Posts: 84

PostPosted: Sun Jun 18, 2017 12:37 pm    Post subject: [solved] udev automount Thinkpad Ultrabase hdd not working Reply with quote

I'm trying to get udev to automatically mount the HDD inside my Ultrabase 3 when I put the ThinkPad x220t onto it, but it simply doesn't happen. Here is the rule I wrote:
Code:
/etc/udev/rules.d/50-thinkpad-ultrabay.rules:
KERNEL=="sd?1", ATTRS{model}=="HGST HTS721010A9", RUN+="/home/user/script/ultrabay_dock"


ultrabay_dock simply contains
Code:
#!/bin/bash
mount /mnt/base


and there is a corresponding entry in /etc/fstab. Manually running mount /mnt/base works.

Any idea what I might be doing wrong?


Last edited by chaoscommander on Sun Jun 18, 2017 1:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
chaoscommander
Tux's lil' helper
Tux's lil' helper


Joined: 15 Oct 2012
Posts: 84

PostPosted: Sun Jun 18, 2017 1:29 pm    Post subject: Reply with quote

never mind.. Nobody told me that udev rules need to be reloaded. For reference: udevadm control --reload
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum