View previous topic :: View next topic |
Author |
Message |
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Wed Sep 03, 2008 9:11 pm Post subject: Thunar, HAL and the removable drive.[SOLVED] |
|
|
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 |
|
|
lucky_rooster n00b
Joined: 24 Aug 2004 Posts: 28
|
Posted: Wed Oct 21, 2009 9:06 pm Post subject: Thanks! |
|
|
Thanks, this was a huge time saver! |
|
Back to top |
|
|
|
|
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
|
|