LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2006, 03:29 PM   #1
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Rep: Reputation: 30
USB Pen Management


I saw a utility somewhere that ran on a Linux system that kept the same location (i.e. sda1) when you removed and reinserted a USB pen drive. Does anyone have any idea what that was? The reason I ask is sometimes I remove and reinsert my pen drive and it doesn't get mounted because it went from sda1 to sdb1. Any ideas?
 
Old 05-31-2006, 05:18 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Udev can remember fixed locations, but I find it too much work to handle.
 
Old 05-31-2006, 07:02 PM   #3
forrest44
Member
 
Registered: May 2004
Location: In the staple gun
Distribution: slackware4life
Posts: 119

Rep: Reputation: 15
I'm using KDE 3.5.2, a 2.16.16 kernel and udev-064.

I have an icon for my flash drive on the desktop.

I Don't have any problems with the device changing to /dev/sdb1 when I unplug and plug it back in.


What kernel/etc do U have?

Forrest
 
Old 06-01-2006, 02:15 AM   #4
DrBergie
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
I have a problem along those lines. Instead of having a location problem of my flash drive, I want to mount it with the 'async' option.

Open Suse 10.0 uses a submount hal daemon, and I can't seem to get it to mount it the way I want it.

Last night I tried to write a udev rule, but with little success.

In the messages file the hal-subfs-mount apparently "gathers mount options" and then mounts it with the option of 'sync', wich makes it unusably slow.
 
Old 06-01-2006, 05:09 AM   #5
TriGGer
LQ Newbie
 
Registered: Jul 2004
Location: jolt.co.uk
Posts: 3

Rep: Reputation: 0
@DrBergie


<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- disable sync for mount -->
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<match key="@info.parent:storage.bus" string="usb">
<merge key="volume.policy.mount_option.sync" type="bool">false</merge>
</match>
</match>
</match>
</device>
</deviceinfo>

Save the above as nosync.fdi and place it in /usr/share/hal/fdi/policy/20thirdparty/
and restart hal with 'rchal restart'. This turns off the synce option for any USB mounts.

Last edited by TriGGer; 06-01-2006 at 05:11 AM.
 
Old 06-01-2006, 05:30 AM   #6
DrBergie
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
The line "<match key="volume.fsusage" string="filesystem">"

wil, if I assume correctly, only turn on no syncing for usb filesystems?

USB Mice for example won't realy benifit from having all their IO buffered.

Thanks for the reply tho!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb pen is not detected abd_bela Debian 1 12-14-2005 09:42 AM
USB Pen/iPod RySk8er30 Mandriva 2 09-18-2005 07:51 AM
Usb pen not working in additional usb port ago.homer Linux - Hardware 3 07-26-2005 09:51 AM
USB Pen with Mandrake 9.0 hmartires Linux - Hardware 3 09-03-2004 04:46 AM
USB Pen Drive rlculver Linux - Hardware 1 11-08-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration