LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Why does /media/cdrecorder pop up with "cd /media/ + tab" when I have /media/usb too? (http://www.linuxquestions.org/questions/fedora-35/why-does-media-cdrecorder-pop-up-with-cd-media-tab-when-i-have-media-usb-too-4175436566/)

SharpyWarpy 11-10-2012 11:52 AM

Why does /media/cdrecorder pop up with "cd /media/ + tab" when I have /media/usb too?
 
I'm using Fedora 16. I created the directory /media/usb. When I want to mount something there and I do
Code:

mount /dev/sdb1 /media/
and hit the tab key for completion it always brings up /media/cdrecorder without offering any other directories. I want to add other directories for other usb devices there but I have to first solve this problem so I can be shown all possible subdirectories in /media. Does anyone know why this happens and how to destroy this annoying tendency? I've tried removing the cdrecorder subdirectory and recreating it but no joy. In past versions of Fedora this was not a problem. Thanks ahead of time.

markush 11-20-2012 02:35 PM

Hi,

do you have bash-completion installed?

Markus

SharpyWarpy 11-22-2012 12:09 AM

Quote:

Originally Posted by markush (Post 4833504)
Hi,

do you have bash-completion installed?

Markus

Yes, I have bash-completion installed. Thanks. I thought just using the tab key was enough. I never knew about the package "bash-completion". I'm assuming this allows more specific usage of tab? I'll have a read of some of it's documentation.

SharpyWarpy 11-22-2012 12:26 AM

In /etc/profile.d/udisks-bash-completion.sh I see two references to the word "media":

Code:

In line #29 and line #32
They both say "--poll-for-media", which I'm not sure is what I'm looking for but there is a line in /etc/fstab referring to /media/cdrecorder, there is not a line in /etc/fstab referring to usb. So I'll edit /etc/profile.d/udisks-bash-completion.sh to exclude ":--poll-for-media" in line 32, reboot and see if it makes a difference.

markush 11-22-2012 12:30 AM

If it doesn't you could uninstall bash-completion (temporarily) in order to verify that it's really the cause for the trouble.

Markus

SharpyWarpy 11-22-2012 12:50 AM

Quote:

Originally Posted by markush (Post 4834524)
If it doesn't you could uninstall bash-completion (temporarily) in order to verify that it's really the cause for the trouble.

Markus

Removing said text in /etc/profile.d/udisks-bash-completion.sh did not help but when I commented out the line in /etc/fstab:
Code:

/dev/sr0  /media/cdrecorder  iso9660  defaults,noauto  0 0
the trouble was gone. I then restored the line in /etc/fstab to activate /media/cdrecorder, removed the package "bash-completion", rebooted and the trouble is gone. So I'll leave package "bash-completion" out of the OS and see if there are repercussions. Thank you, Markus. Rep added.

markush 11-22-2012 01:05 AM

I'm happy to read that you've solved your problem.

Markus


All times are GMT -5. The time now is 01:35 PM.