Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thunar, HAL and the removable drive.[SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
tuxwatcher
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 121
Location: USA

PostPosted: Wed Sep 03, 2008 9:11 pm    Post subject: Thunar, HAL and the removable drive.[SOLVED] Reply with quote

I bought a new NexStar 3 2 1/2 inch SATA to USB/eSATA enclosure. I installed the drive and plugged it into my system. I went into Thunar to try and mount it. No drive. I loaded a terminal searched /dev and the drive had loaded as sdd and sdd1. I ran fdisk, it was an ntfs volume, and promptly reformated the drive ext3. After unplugging and replugging the drive in, no change in Thunar. However I can mount the drive at the command line fine. I could have set the drive up in /etc/fstab but I really wanted to get it to mount in Thunar. I then ran lshal and noticed this.
Code:
storage.removable = false  (bool)
This is telling Thunar that the drive is not a removable drive. So, I did a little research on HAL, that lead me to create the file /etc/hal/fdi/policy/90-user-methods.fdi. I added following lines.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
 <device>
    <match key="volume.fsusage" string="filesystem">
       <match key="@block.storage_device:storage.serial" string="Generic_USB_Disk">
              <merge key="volume.ignore" type="bool">false</merge>
              <merge key="@block.storage_device:storage.removable" type="bool">true</merge>
              <merge key="storage.policy.should_mount" type="bool">true</merge>
        </match>
    </match>
 </device>
</deviceinfo>
The key in the line
Quote:
<match key="@block.storage_device:storage.serial" string="Generic_USB_Disk">
Find the line in the lshal output for your drive that has storage.serial and have it's value for the string. That will set your particular drive to be removable.

Hope this helps somebody.
Back to top
View user's profile Send private message
lucky_rooster
n00b
n00b


Joined: 24 Aug 2004
Posts: 28

PostPosted: Wed Oct 21, 2009 9:06 pm    Post subject: Thanks! Reply with quote

Thanks, this was a huge time saver!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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